# generator-simple-reactapp-gulp

> Simple generator for creating ReactApp

Latest version **0.1.3** (published 2017-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-simple-reactapp-gulp
pnpm add generator-simple-reactapp-gulp
yarn add generator-simple-reactapp-gulp
bun add generator-simple-reactapp-gulp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2017-09-15 |
| First published | 2017-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | gLeip |
| Maintainers | gleip |
| Keywords | yeoman-generator |

## Links

- npm: https://www.npmjs.com/package/generator-simple-reactapp-gulp
- Repository: https://github.com/gleip/SimpleReactAppAndGulp
- Homepage: https://github.com/gleip/SimpleReactAppAndGulp#readme
- Issues: https://github.com/gleip/SimpleReactAppAndGulp/issues
- npm.io page: https://npm.io/package/generator-simple-reactapp-gulp

## Dependencies (1)

- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^2.0.0

## Recent versions

- 0.1.3 (latest) — 2017-09-15
- 0.1.2 — 2017-09-15
- 0.1.1 — 2017-09-15
- 0.1.0 — 2017-09-15

## README

# generator-simple-reactapp-gulp
Simple generator for creating ReactApp

__yeoman:__ &nbsp; http://yeoman.io/ <br>
__react:__ &nbsp; https://facebook.github.io/react/ <br>
__redux:__ &nbsp; http://redux.js.org/

# Configuration
The generator includes a framework Hapi

```
const Hapi = require('hapi');
const Inert = require('inert');
const Vision = require('vision');
const Handlebars = require('handlebars');
const path = require('path');
const logger = require('pino')();

// routes
const routs = require('./routes');

const server = new Hapi.Server();

server.connection({
  port: process.env.PORT || 5000,
  routes: {
    cors: true,
  },
});

server.register([Inert, Vision], () => {});

server.views({
  engines: { html: Handlebars },
  path: path.resolve(__dirname, './templates'),
});

server.route(routs);

server.start((err) => {
  if (err) {
    throw err;
  }
  logger.info('Server running at:', server.info.uri);
});

```
routes

```
module.exports = [
  {
    method: 'GET',
    path: '/js/{param*}',
    handler: {
      directory: {
        path: './public/js',
        redirectToSlash: true,
        index: true,
      },
    },
  },
  {
    method: 'GET',
    path: '/css/{param*}',
    handler: {
      directory: {
        path: './public/css',
        redirectToSlash: true,
        index: true,
      },
    },
  },
  {
    method: 'GET',
    path: '/img/{param*}',
    handler: {
      directory: {
        path: './public/img',
        redirectToSlash: true,
        index: true,
      },
    },
  },
  {
    method: 'GET',
    path: '/fonts/{param*}',
    handler: {
      directory: {
        path: './public/fonts',
        redirectToSlash: true,
        index: true,
      },
    },
  },
  {
    method: 'GET',
    path: '/media/{param*}',
    handler: {
      directory: {
        path: './public/media',
        redirectToSlash: true,
        index: true,
      },
    },
  },
  {
    method: 'GET',
    path: '/{path*}',
    handler: (request, reply) => {
      reply.view('index');
    },
  },
];
```

# Usage:

## Install

```
yo simple-reactapp-gulp
```

## Start developer server
```
npm start
```

## Production build
```
npm run build
```

## Build Docker container
```
npm run buildContainer
```

---
_Source: https://npm.io/package/generator-simple-reactapp-gulp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
