-
Notifications
You must be signed in to change notification settings - Fork 18
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 checkwith 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.
Assets 2
v4.0.0
Welcome Jest 20.0.0 🎉
Assets 2
v3.1.1
- Updated templates to use latest version of Sass loader
- Updated
apptemplate to use React Router v4
Assets 2
v3.0.1
- Added support for port entry in devServerConfig
Assets 2
v3.0.0
- Welcome Webpack v2 🎉
- Deprecated
devServer.config.jsanddevServer.config.babel.js- Please move the content of this file to
webpack.config.babel.jsunder 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
Assets 2
v.2.2.2
- Added json-loader to avoid problems with webpack v1
Big shout out to @edvinh for the contribution!
Assets 2
v2.2.1
- Only delete dist content on production mode
- Support for https on browser open
Big shout out to @coltonw for the contributions.
Assets 2
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.
Assets 2
v2.1.6
-
Added
babel-clitodevDependencies -
Added
NODE_ENV=productionto dist script in package.json.Make sure your
package.jsondist 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
Assets 2
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.