@gnarlycode/react-app-tools

3.1.0 • Public • Published

GNARLY CODE Presents

REACT APP TOOLS

DESIGNED FOR CREATE-GNARLY-APP!

Helps to build universal or static react apps.

COMMANDS

🕹 npm run dev — dev server (hot reload, watch mode etc)

🕹 npm run build — build the app

🕹 npm run build-static — build the app with static html's

🕹 npm start — serve builded app

🕹 npm run tsint — check linter rules

CONFIG

You can create next files in root of your project to configure builder:

  • gnarly.config.js — default config
  • gnarly.config.local.js — local, extends default, do not commit

Available options:

module.exports = {
  // Server listening
  host: '0.0.0.0',
  port: 8080,

  // Url prefix
  baseUrl: '/base-url',

  // For static renderer, used when you run `npm run build-static` or `build-all`
  routerConfig: './src/routes',

  // Serve static with express (do not enable if static served with nginx for example)
  serveStatic: true,
}

Also you can create _env and .env for extra configurations

CREDITS

babel commander dotenv-webpack dotenv express inquirer react-helmet react-hot-loader react-router react redux astroturf svg-sprite-loader eslint typescript webpack-hot-server-middleware webpack

Author: Dmitry Podlesny

Readme

Keywords

none

Package Sidebar

Install

npm i @gnarlycode/react-app-tools

Weekly Downloads

1

Version

3.1.0

License

ISC

Unpacked Size

56.8 kB

Total Files

55

Last publish

Collaborators

  • rezed