Command line interface for automating common tasks when building React.js components.
$ npm install -g rackt-cli
The motivation for this CLI is to make it simple to get started when creating a new component, and eliminate the boilerplate that is commonly copy/pasted from one project to another. This CLI provides all config, dev dependencies, and scripts for building, testing, and releasing. There is even a command for generating a new component structure. By leveraging
rackt-cli, you are able to focus on writing code.
||Prints out a list of available commands.|
||Creates a folder called
||Builds the component to
||Starts the dev server using port
||Publish a new release to npm. Use
||Runs the test suite. Use
||Deploys the examples to gh-pages.|
init command generates a component structure based on the opinions of this CLI.
It provides a basic working component, along with a simple example, and a failing test.
This command will generate two new folders within your component's folder.
dist/ folder contains a UMD version of your project, which is ideal for releasing to bower.
build/ folder will contain a transpiled version of your original source, un-bundled, for releasing to npm.
server command uses webpack-dev-server to serve your examples in the browser.
You may also run
npm start as an alias to this command.
release command runs
build command, then updates your CHANGELOG, creates a new tag, and releases to npm.
pages command will deploy your examples to a