Skip to content

Commit dbefc0f

Browse files
committed
docs: fix various spelling mistakes in Javascript doc and deploy scripts
Reviewed in #11516
1 parent 9ff3e50 commit dbefc0f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/pages/javascript.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Know that they all require `foundation.core.js` to be loaded *first*. Some plugi
3939

4040
### Import in JavaScript
4141

42-
By default, Foundation is exported as [UMD modules](http://bob.yexley.net/umd-javascript-that-runs-anywhere/). This means that Foundation and its plugins can be imported and used in any JavaScript environnement.
42+
By default, Foundation is exported as [UMD modules](http://bob.yexley.net/umd-javascript-that-runs-anywhere/). This means that Foundation and its plugins can be imported and used in any JavaScript environment.
4343

4444
For example with [ES6](https://github.com/lukehoban/es6features#readme) (the ESM format):
4545
```js
@@ -65,10 +65,10 @@ var $dropdown = new Dropdown('#mydropdown');
6565

6666
#### Available formats
6767

68-
Foundation is proposed in bundles of various module formats so you can pick the one that match the best your needs. If you don't know these terms yet, take a look at this [10-minute introduction to module formats in JavaScript](https://www.jvandemo.com/a-10-minute-primer-to-javascript-modules-module-formats-module-loaders-and-module-bundlers/). You will find in the `dist/js` folder the following bundles:
68+
Foundation is provided in bundles of various module formats so you can pick the one that matches the best your needs. If you don't know these terms yet, take a look at this [10-minute introduction to module formats in JavaScript](https://www.jvandemo.com/a-10-minute-primer-to-javascript-modules-module-formats-module-loaders-and-module-bundlers/). You will find in the `dist/js` folder the following bundles:
6969

7070
* `foundation.js` <span class="label secondary">UMD</span> <span class="label">Default</span><br>
71-
Compatible with most environments and tools (AMD, CJS, ESM...). It works almost everywhere by checking the module format of your environments and then using it, which make the bundle a little heavier.
71+
Compatible with most environments and tools (AMD, CJS, ESM...). It works almost everywhere by checking the module format of your environments and then using it, which makes the bundle a little heavier.
7272

7373
* `foundation.cjs.js` <span class="label secondary">CommonJS</span><br>
7474
Dedicated to Node.js and older bundlers like Browserify or Webpack v1.
@@ -77,7 +77,7 @@ Foundation is proposed in bundles of various module formats so you can pick the
7777
Everything is transpiled to ES5 but the modules. Dedicated to modern bundlers, like Webpack 2+ or Rollup. They will automatically use this bundle and parse the ES6 modules to remove the unused code (see [tree shaking](#tree-shaking) below).
7878

7979
* `foundation.es6.js` <span class="label secondary">ES6</span> (`esnext` in `package.json`)<br>
80-
Unlike the others bundles, this bundle is not transpiled. It contains all the Foundation sources in ES6 in a single file. Use it if you want to manually transpile it for your own targets.
80+
Unlike the other bundles, this bundle is not transpiled. It contains all the Foundation sources in ES6 in a single file. Use it if you want to manually transpile it for your own targets.
8181

8282
#### Tree Shaking
8383

gulp/tasks/deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ gulp.task('deploy:dist:files', function() {
9999
// Generates JS bundles and puts them in the dist/ folder.
100100
//
101101
// In addition to the UMD bundle coming from the build task, the following
102-
// formats are generared: CJS, ESM, ES6.
103-
// See "rollup.config.js" for more informations.
102+
// formats are generated: CJS, ESM, ES6.
103+
// See "rollup.config.js" for more information.
104104
//
105105
gulp.task('deploy:dist:bundles', gulp.series(
106106
// Create a subtask for each Rollup config

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var baseConfig = {
1414
module.exports = [
1515

1616
// UMD
17-
// Compatible with most environements and tools (AMD, CJS, ESM...),
17+
// Compatible with most environments and tools (AMD, CJS, ESM...),
1818
// > Generated with Webpack. See the "javascript:foundation" gulp task.
1919
// > TODO: factorize the assets generation.
2020

0 commit comments

Comments
 (0)