1.5.5 • Published 4 years ago

ve-react-cli v1.5.5

Weekly downloads
26
License
MIT
Repository
github
Last release
4 years ago

ve-react-cli

The ve stands for Visiba Engineering. The entire thing is a play on one of our company motto, "we act" -> "ve React". Clever uh? Okey, it was a bit silly.

A modern React toolkit with primary focus on TypeScript.

Getting started

Installation

Install ve-react-cli globally:

$ npm install -g ve-react-cli

# or with Yarn
$ yarn global add ve-react-cli --prefix /usr/local

Creating a new application

After it's been installed globally, we can create a new application with it.

$ ve new my-project
$ cd my-project/
$ yarn install

Commands

List of available ve commands.

Global

  • new application: new {name of application}

Local

  • development: dev {options}
  • production: build {options}
  • run production: start {options}

Optional

  • override default port (default: 8000): -p, --port
  • override default input (default: ./src): -i, --input
  • override default output (default: ./dist): -o, --output

Plugins

For advanced customization, plugins can be made to alter each build configuration.

Plugins can be created by adding an .verc.js file in the root directory.

// .verc.js
const { createPlugin } = require('ve-react-cli');

const myPlugin = () => createPlugin({
  modifyBabelRc: (babelrc) => {    
    return babelrc;
  },
  modifyWebpackDev: (webpack) => {
    return webpack;
  },
  modifyWebpackProd: (webpack) => {
    return webpack;
  },
});

module.exports = {
  plugins: [myPlugin()],
};

Provide Babel config for third party

To expose the Babel config for modules that might need it, e.g. Jest.

// babel.config.js
const { getBabelConfig } = require('ve-react-cli');

module.exports = getBabelConfig();

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.5.5

4 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago