1.0.2 • Published 5 years ago

@vaporweb/app v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@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.

ESLint CLI options

TSLint CLI options

app test

Starts the test runner. CLI options will be forwarded to Jest. For example, app test --watch.

Jest CLI options

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;
    },
  }