freshpack
Version:
Command line scaffolding tool for react apps
71 lines (56 loc) • 1.43 kB
Markdown
freshpack [](https://www.npmjs.com/package/freshpack) [](https://travis-ci.org/freshpack/freshpack)  
Command line tool for generating react apps with current stable dependencies.
# Install
To Install (you'll need at least node v6):
```bash
yarn global add freshpack
or
npm install freshpack -g
```
Using freshpack will scaffold out a project and generate additional files.
It also generates common scripts you can use to lint, test or start the dev server with hot reloding.
# Usage
Generate a new project folder, comes with package.json, readme, and minimal recommended structure and configuration
```bash
freshpack
```
Add sass files and configuration
```bash
freshpack --sass
```
Add lint files and configuration
```bash
freshpack --lint
```
Add jest/enzyme files and configuration
```bash
freshpack --test
```
Combine options
```bash
freshpack --sass --lint --test
```
Change to build dir
```bash
cd my-project
```
Test your app
```bash
yarn test
or
npm test
```
Lint your app
```bash
yarn lint
or
npm run lint
```
Run your app in dev mode
```bash
yarn start
or
npm start
```
# License
MIT ©