DESIGNED FOR CREATE-GNARLY-APP!
Helps to build universal
or static
react apps.
🕹 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
You can create next files in root of your project to configure builder:
gnarly.config.js
— default configgnarly.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
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