Currently, I have two .kt files in a Kotlin/JS project I'm working on. These two .kt files compile to one single .js file (the one in "out/production/myprojectfolder/myproject.js" which is the default directory).
Each of the .kt files represent two separate html pages. I want each of the html page to have its own single .js file.
My question is that, is there a way the two .kt files compile to two separate .js files?
It would seem that this is not possible at the moment [source], you can workaround the issue by using multiple modules, but that would mean 1 module per page, which may get complicated quickly.
Related
I have various small apps which I would like to to gather under a new application where they can all be accessed from one "exe" file. I have merged the projects into a solution called "ETABS SUIT" and referenced the projects.
I was expecting and hoping to have just one executable file in the debug folder when I build the solution, but it seems like all projects are built separately with standalone exe files.
Is there a different way to combine all my projects under a new solution and get a single exe file when built? (It may be also okay if I can check a boolean value provided in the main solution before starting the other projects but what I define in the main solution is not recognized in added projects)
I am in the process of evaluating a couple of web component libraries/helpers/frameworks and based on its simplicity as well as its robustness I am inclined to select stenciljs but...
I am having a second thoughts since I don't know how to solve that the project created with npm init stencil and selecting component as part of the presented options containing two components generates about 17 files.
If those files are needed, I really don't care how many are generated.
However I noticed that by creating another project for another set of components, the setup generate files with same name and content as in the other project, and also files with different names but content about 90% similar.
Both set of components (from each project) will be used from the same page and I am wonder if there is a way to deploy both projects output to the same location avoiding files and code duplication.
Any idea in how to solve the deployment issue without me having the set of components in the same project?
When I do a find all (Ctrl-Shift-F) it takes very long, because I have some autogenerated js files in my project that are quite large.
How can I exclude those files from my searches?
Obviously I don't want to exclude all js files.
IntelliJ let's you pick one or more file types to search, but is there any way to search everything except 2 or 3 known files.
I tried marking them as ignored, but they still show up in searches.
The help is here https://www.jetbrains.com/help/idea/2018.3/finding-and-replacing-text-in-project.html#limit_search
It recommends restricting to a directory, or a module, but there are quite a few directories and it's all in the same module, so that does not work for me.
In the File Mask you can use ! oparand to exclude the files for example for not in js file then the file mask would be !*.js. You can use , to add multiple conditions to exclude or select the file types you are interested into.
!*.json, !*.txt,!*.js,!*Test*.java,*.java
In IntelliJ 2021, you can include specific file type by .ext1 separated with commas and to exclude !.ext2
Refer image, I need only .java file and not !.js
you can also exclude !Test.java as well.
I am migrating one site into another and need to merge the styles for both sets of templates into a single CSS file (for company workflow reasons). My problem is that both templates use Less files with many identical variable names, so I can't just combine the files to compile. I'm a novice with Less, so if there is an obvious solution, I'm not seeing it.
I've been able to easily get all my headers and source files organized using filters like so:
source_group(Source\ Files\\network FILES
network/lobbylist.cpp
network/network.cpp
network/networkenet.cpp
network/networkfactory.cpp
network/networklinux.cpp
network/networkraw.cpp
network/networkwin.cpp
)
However, today I started adding Lua scripts to my project and found that, although no errors were displayed during project generation and everything seemed to be spelled correctly, CMake didn't add a new filter for the scripts in the solution at all.
source_group(Source\ Files\\scripts FILES
scripts/en_lang.lua
)
I also tried putting the group under the Header Files filter and under the project root, but no go. Does CMake simply not recognize or know what to do with non-.h/.hpp/.c/.cpp/etc files? Is there any way to get around this? Obviously I can still edit the scripts in a separate window or open it manually in VS, but having it right there in the solution explorer would be preferable.
You have to add the lua files to ADD_EXECUTABLE