![]() ![]() How possible to keep these files up-to-date (marked as API.etc)? ![]() Commentsīefore commit, I have a general question. Without additional tools, bash is needed to find all the matching files and compute their new ES5 file names. Currently this build process is slightly slow.# when working on a core patch, compile on the fly Then to compile ES6 back to ES5: # install all nodejs deps To move all js files, run the core/scripts/migrate-js.sh. Create a script to transpile ES6 files to ES5 code, generating ES5 equivalent files and source maps.Create a script that rename all the existing JavaScript files to *.es6.js.There are two parts to this proposed resolution– In order to attract JavaScript developers to our ecosystem, moving to a more modern toolchain based on the current standard ES6 is important. ES6 offers a number of advantages over ES5, not the least of which is enabling us to write unit-testable, modular JS code.Ĭurrently Drupal's core JavaScript is written completely in ES5, the previous standard, which prevents us from exploiting new language features.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |