You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ For some of these operations, conventions were established to simplify and speed
17
17
There are three options here:
18
18
- Modern Javascript files must have an extension `.es6.js`.
19
19
This allows ESLint to check the code style, Joomla is using the Airbnb preset https://github.com/airbnb/javascript.
20
-
It also instructs Rollup to do the transforms for ES2017 and then transpile to ES5. This step creates both normal and minified files.
21
-
Production code WILL NOT have the `.es6` part for ES2017+ files but WILL HAVE a `-es5.js` for the ES5 ones.
20
+
It also instructs Rollup to do the transforms for ES2017. This step creates both normal and minified files.
21
+
Production code WILL NOT have the `.es6` part for ES2017+ files.
22
22
23
23
- Web Component Javascript files must have an extension `.w-c.es6.js`.
24
-
This allows ESLint to check the code style and instructs Rollup to do the transforms for ES2017 and then transpile to ES5. This step creates normal and minified files. The difference with the `.es6` files is that the tools will automate the minification of the CSS (assuming that the appropriate SCSS file exists), which is then injected into the JS file in place of the placeholder `{{CSS_CONTENTS_PLACEHOLDER}}` (ie: `build/media_source/system/js/joomla-core-loader.w-c.es6.js`)
25
-
Production code WILL NOT have the `.w-c.es6` part for ES2017+ files but WILL HAVE a `-es5.js` for the ES5 ones.
24
+
This allows ESLint to check the code style and instructs Rollup to do the transforms for ES2017. This step creates normal and minified files. The difference with the `.es6` files is that the tools will automate the minification of the CSS (assuming that the appropriate SCSS file exists), which is then injected into the JS file in place of the placeholder `{{CSS_CONTENTS_PLACEHOLDER}}` (ie: `build/media_source/system/js/joomla-core-loader.w-c.es6.js`)
25
+
Production code WILL NOT have the `.w-c.es6` part for ES2017+.
26
26
27
27
- Legacy Javascript files must have an extension `.es5.js`.
0 commit comments