Releases: grommet/grommet-cli
v5.1.0
-
Welcome eslint
4.3.0
-
Welcome Webpack
3.4.1
-
Updated dependencies
-
Now it is possible to run
grommet check
with 3 optional arguments:grommet check -t
: only runs testgrommet check -j
: only runs js lintgrommet check -s
: only runs sass lintgrommet check -j -s
: only runs js lint and sass lint
"scripts": {
"dev": "cross-env NODE_ENV=development grommet pack",
"dist": "cross-env NODE_ENV=production grommet pack",
"lint": "grommet check -j",
"lint:fix": "grommet check -j -- --fix",
"sass-lint": "grommet check -s",
"start": "npm run dev",
"test": "cross-env NODE_ENV=test grommet check",
"test:watch": "grommet check -t -- --watch",
"test:update": "grommet check -t -- --update",
},
You can notice that all arguments for eslint
, sasslint
, and jest
are now passed through. For example:
grommet check -t -- --watch
will run jest in watch mode.
v4.0.0
Welcome Jest 20.0.0 🎉
v3.1.1
- Updated templates to use latest version of Sass loader
- Updated
app
template to use React Router v4
v3.0.1
- Added support for port entry in devServerConfig
v3.0.0
- Welcome Webpack v2 🎉
- Deprecated
devServer.config.js
anddevServer.config.babel.js
- Please move the content of this file to
webpack.config.babel.js
under the devConfig object
- Please move the content of this file to
Migrating type=basic
Check out this new webpack config file
Migrating type=app
Check out this new webpack config file
Migrating type=docs
Check out this new webpack config file
Additional webpack v2 docs
v.2.2.2
v2.2.1
v2.2.0
- Remove copy task in favor of copy-webpack-plugin
You will need to modify your webpack.babel.config.js
to include the following:
...
import webpack from 'webpack';
import CopyWebpackPlugin from 'copy-webpack-plugin';
...
let plugins = [
new CopyWebpackPlugin([{ from: './public' }]),
...
];
Also remember to run npm install copy-webpack-plugin --save-dev
To verify this change you can run npm run dist
or npm run dev
.
v2.1.6
-
Added
babel-cli
todevDependencies
-
Added
NODE_ENV=production
to dist script in package.json.Make sure your
package.json
dist and start scripts are like follows:{ "scripts": { "dist": "cross-env NODE_ENV=production grommet pack", "start": "npm run dist-server && npm run dist && node ./dist-server/server.js" } }
To verify this change you can run npm run dist
or npm run start
v.2.1.5
- Updated .eslint global properties.
See this file for the updated .eslint rules:
https://github.com/grommet/grommet-cli/blob/master/templates/app/.eslintrc
To verify the changes you can run npm check
, if passes everything is good.