Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markmur/sails-react-webpack
A Sails, React & Webpack scaffolding CLI
https://github.com/markmur/sails-react-webpack
react sails webpack
Last synced: 2 days ago
JSON representation
A Sails, React & Webpack scaffolding CLI
- Host: GitHub
- URL: https://github.com/markmur/sails-react-webpack
- Owner: markmur
- License: mit
- Created: 2016-04-19T11:26:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T16:37:51.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T12:19:39.024Z (7 days ago)
- Topics: react, sails, webpack
- Language: JavaScript
- Homepage:
- Size: 902 KB
- Stars: 51
- Watchers: 7
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Sails + React + Webpack CLI
A CLI for scaffolding a [Sails](http://sailsjs.org) + [React](https://facebook.github.io/react/) boilerplate.
## Includes
- [Sails](http://sailsjs.org)
- [React](https://facebook.github.io/react/)
- [Babel](https://babeljs.io)
- [React Router](https://github.com/reactjs/react-router)
- [sails-hook-autoreload](https://github.com/sgress454/sails-hook-autoreload)
- [Sass](https://github.com/jtangelder/sass-loader)
- [Autoprefixer](https://github.com/passy/autoprefixer-loader)
- [React Hot Loader](https://github.com/gaearon/react-hot-loader)---
### Install
Install the module globally:
```sh
$ npm install -g sails-react-webpack
```---
### Generating a New Project
To generate a new project, run:
```sh
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.
```sh
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:
```sh
sails lift --prod
```You can run this script manually with `npm run dist`.
---
### Generate Components
Use [react-component-gen](https://github.com/markmur/react-component-gen) to generate new components on the fly.