@vaporweb/app
v1.0.2
Published
## App Scripts
Downloads
12
Readme
@vaporweb/app
App Scripts
app build
Builds the project for production with Webpack.
app develop
Builds the project in development mode and watches for changes.
app lint
Runs the linter.
CLI options will be forwarded to eslint or tslint. For example, app lint --fix
.
app test
Starts the test runner. CLI options will be forwarded to Jest. For example, app test --watch
.
You can override jest configuration options by adding them to the package.json file.
App Config
You can modify the config by placing a .app.js file in the root of your project. The config defaults are given in the example below.
module.exports = {
babel: true,
eslint: true,
tsc: false,
tslint: false,
server: false,
webpack(config, { target, env }) {
if (target === 'client' && env === 'development') {
// ...
}
if (target === 'server' && env === 'production') {
// ...
}
return config;
},
}