![]() ![]() Using ES6 module syntax (with path information) from user generated js files (not NPM dependecies), CK3 builds a dependency map so that changes to any of the user generated dependencies can be monitored. Options for this file include:Ī) output file/path for the combined output file (ie, build/min/)ī) whether or not you want the output file minified (I don't think there is a reason to check syntax)Ĭ) whether or not you would like a source maps enabled (-d option in browserify) Make a CK3 option to identify a file as the project input file. This would be a way to specify project NPM package dependencies to have installed in the project folder and possibly even specify dependency versions in the package.JSON file. Ultimately it would be awesome if CK3 had an NPM interface like it has with Bower. I'll give you a stab based on my exposure: Reply to this email directly, view it on GitHub, or mute the thread. You are receiving this because you are subscribed to this thread. Anyone with expertise on the matter should walk me through it here. I'm not going to implement all of them that's just ridiculous. My problem is that there are currently 78 approaches to bundling (because JavaScript and everything it touches is goddamn retarded) so I'm waiting to see which method becomes the canonical approach. I don't know, but it's looking good so far. I crash and burn for suggesting this feature I understand that many of the current user base may not use CK for bundling, but this may be a way to increase the user base going forward. As much as browserify sucks sometimes (or pick another another poison), if you use without all the options it can be somehwhat straightforward. I think there will always be reasons to bundle instead of handling natively in JS going forward. The bottom line is that modules are here to stay and getting standardized for ES6. Hooks, as much as they kick ass for non-mainstream activities, are fragile, have to be modified everytime file names and paths change, and can bring other headaches for the bash illiterate like myself (see #167). I am probably going to get crucified for this, as it was already discussed in length in #11, but CK3 is so close to being able to natively bundle modules without hooks that I thought maybe it might be worth reconsidering.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |