Skip to content

Commit 3f08857

Browse files
authored
Update the docs (#41041)
1 parent 7db61ae commit 3f08857

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ For some of these operations, conventions were established to simplify and speed
1717
There are three options here:
1818
- Modern Javascript files must have an extension `.es6.js`.
1919
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.
2222

2323
- 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+.
2626

2727
- Legacy Javascript files must have an extension `.es5.js`.
2828
This instructs ESLint to skip checking this file.

0 commit comments

Comments
 (0)