-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build = compile + bundle #226
Comments
I think that the compiling makes sense here. We use Babel for it and Babel is "The compiler for writing next generation JavaScript". The compiling in IT is transforming one code into another what we do here, even if, in some cases, it is only path fixing. Also, as far I understand it, in some cases we may do bigger changes in the code at this step, for instance to support IE 11. Then we may compile ES6 to ES5. Anyway, this step to is transforming our human-readable code, into code which can by understand by the machine. This is even compiling in the popular meaning. It does not matter both are JavaScript. |
I was thinking about directory structure because I think we should keep the
Or we may keep |
For me keeping everything in one directory is nice. You have only one "messy" directory, where you have code not tracked by git hub. I think that when you compline any project it is common that all semi-finished products and the final build land in one place. What I unclear for me is the fact that we have a separate directory for each compilation, but only one for all bundles (as far I understand we may have different types of bundles too). I think we should have it same way so:
or:
or:
|
I was wondering if people will not get a bit confused on finding all those folders inside “build” and not understanding really which one to use. Maybe we should group them in a clearer way. For instance |
@pjasiun, I don't want to use the name
But would you put it inside |
Yes, I would leave it inside
A readme file may be welcome at this point, as an introduction to the contents of |
LGTM |
I also do not like "compilation", I simply did not find anything better. |
Another idea – instead of |
Still, note that these paths should be configurable. The structure described above is fine for CKEditor main repo, but if I use it as a dependency I may want to have compiled modules in |
After merging #287 directory structure looks like this:
I am wondering if next step should be to rename |
Since there is But
|
As I know bundler can but don't have to use our building. When I was talking with @Reinmar his idea was to give possibility to on/off (by some configuration) building in bundling in case of someone will have his own build and will want only to use bundler for bundling. |
Builder package is renamed to |
Currently we call the first step building and the second bundling. So the whole process doesn't have a good name. Also, we can't talk about CKEditor releases in a reasonable way. Normally you would use the word "package" or "build" but package is taken but npm packages and build by the building step.
Therefore, to clarify the naming, we're going to have building (and builds) which are a result of compiling and optional bundling. There may be an optimised build (which is bundled and minified) and dev build which is basically what you can find currently in the
build/
directory.One thing that I'd make sure before we make any changes is that we can use the word "compile" in this sense.
In programming compiling is understood as transforming source code into byte code. The meaning used about books or other type of media makes sense in our case, but taken the usual meaning of that word in the programming world, I'm afraid that we may cause a confusion. Any thoughts?
The text was updated successfully, but these errors were encountered: