1.1.0 • Published 6 years ago

sails-react-webpack v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Sails + React + Webpack CLI

A CLI for scaffolding a Sails + React boilerplate.

Includes


Install

Install the module globally:

$ npm install -g sails-react-webpack

Generating a New Project

To generate a new project, run:

sails-react-webpack [project-name]

cd [project-name]

npm install

// or

yarn

Run (development)

npm start will run all processes in the Procfile. It will start both Sails AND the Webpack Dev Server simultaneously.

npm start

To view your app, go to http://localhost:3000 in your browser.


Run (Production)

Webpack builds the bundle files on postinstall and sails is lifted the same way it's always lifted in production:

sails lift --prod

You can run this script manually with npm run dist.


Generate Components

Use react-component-gen to generate new components on the fly.

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago