@enact/cli 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +1 -1
- package/CHANGELOG.md +4 -0
- package/README.md +8 -4
- package/npm-shrinkwrap.json +5617 -5505
- package/package.json +5 -5
package/.travis.yml
CHANGED
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @enact/cli [](https://app.travis-ci.com/github/enactjs/cli) [](https://www.npmjs.com/package/@enact/cli)
|
|
2
2
|
|
|
3
3
|
> A standalone toolkit for rapid Enact app development.
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ All that's needed to install @enact/cli is to use npm to install it globally. Fo
|
|
|
9
9
|
npm install -g @enact/cli
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
>Note: Node
|
|
12
|
+
>Note: Node 16 or greater required.
|
|
13
13
|
|
|
14
14
|
## Creating a new App
|
|
15
15
|
|
|
@@ -65,7 +65,8 @@ The @enact/cli tool will check the project's **package.json** looking for an opt
|
|
|
65
65
|
* `alias` _[object]_ - String mapping of webpack alias paths to use when building.
|
|
66
66
|
* `theme` _[object]_ - A simplified string name to extrapolate `fontGenerator`, `ri`, and `screenTypes` preset values from. For example, `"sandstone"`.
|
|
67
67
|
* `fontGenerator` _[string]_ - Filepath to a CommonJS fontGenerator module which will build locale-specific font CSS to inject into the HTML. By default, will use any preset for a specified theme or fallback to sandstone.
|
|
68
|
-
* `ri` _[object]_ - Resolution independence options to be forwarded to the [
|
|
68
|
+
* `ri` _[object]_ - Resolution independence options to be forwarded to the [postcss-resolution-independence](https://github.com/enactjs/postcss-resolution-independence). By default, will use any preset for a specified theme or fallback to sandstone.
|
|
69
|
+
* `baseSize` _[number]_ - The root font-size to use when converting the value of the base unit to a resolution-independent unit. For example, when `baseSize` is set to 24, 48px in the LESS file will be converted to 2rem.
|
|
69
70
|
* `screenTypes` _[array|string]_ - Array of 1 or more screentype definitions to be used with prerender HTML initialization. Can alternatively reference a json filepath to read for screentype definitions. By default, will use any preset for a specified theme or fallback to sandstone.
|
|
70
71
|
* `nodeBuiltins` _[object]_ - Configuration settings for polyfilling NodeJS built-ins. See `node` [webpack option](https://webpack.js.org/configuration/node/).
|
|
71
72
|
* `resolveFallback` _[object]_ - Configuration settings for redirecting module requests when normal resolving fails. See `resolve.fallback` [webpack option](https://webpack.js.org/configuration/resolve/#resolvefallback).
|
|
@@ -94,7 +95,7 @@ For example:
|
|
|
94
95
|
|
|
95
96
|
## Displaying Lint Output in the Editor
|
|
96
97
|
|
|
97
|
-
Some editors, including Sublime Text,
|
|
98
|
+
Some editors, including Visual Studio Code, Sublime Text, and Atom provide plugins for ESLint.
|
|
98
99
|
|
|
99
100
|
They are not required for linting. You should see the linter output right in your terminal. However, if you prefer the lint results to appear right in your editor, there are some extra steps you can do.
|
|
100
101
|
|
|
@@ -130,6 +131,9 @@ Then, you will need to uninstall any previous globally-installed Enact linting p
|
|
|
130
131
|
npm uninstall -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-babel @babel/eslint-parser eslint-plugin-jest eslint-plugin-enact eslint-config-enact
|
|
131
132
|
```
|
|
132
133
|
|
|
134
|
+
## Documentation
|
|
135
|
+
* [Enact CLI Development Tool](https://enactjs.com/docs/developer-tools/cli/)
|
|
136
|
+
|
|
133
137
|
## Copyright and License Information
|
|
134
138
|
|
|
135
139
|
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
|