# generator-fountain-webapp

> Yeoman Fountain generator to scaffold a webapp with React or Angular written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma

Latest version **1.0.0** (published 2017-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-fountain-webapp
pnpm add generator-fountain-webapp
yarn add generator-fountain-webapp
bun add generator-fountain-webapp
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-21 |
| First published | 2015-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 954 |
| Author | The Fountain Team |
| Maintainers | swiip, zckrs |
| Keywords | yeoman-generator, fountain-generator, yeoman, generator, gulp, gulpfile, fountain, cli |

## Links

- npm: https://www.npmjs.com/package/generator-fountain-webapp
- Repository: https://github.com/fountainjs/generator-fountain-webapp
- Homepage: http://fountainjs.io/
- Issues: https://github.com/fountainjs/generator-fountain-webapp/issues
- npm.io page: https://npm.io/package/generator-fountain-webapp

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [yosay](https://npm.io/package/yosay.md) ^2.0.0
- [fountain-generator](https://npm.io/package/fountain-generator.md) ^1.0.0
- [generator-fountain-vue](https://npm.io/package/generator-fountain-vue.md) ^1.0.0
- [generator-fountain-react](https://npm.io/package/generator-fountain-react.md) ^1.0.0
- [generator-fountain-angular1](https://npm.io/package/generator-fountain-angular1.md) ^1.0.0
- [generator-fountain-angular2](https://npm.io/package/generator-fountain-angular2.md) ^1.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-21
- 1.0.0-rc2 — 2016-12-09
- 1.0.0-rc1 — 2016-09-23
- 0.7.2 — 2016-08-25
- 0.7.1 — 2016-08-23
- 0.7.0 — 2016-08-19
- 0.6.0 — 2016-07-05
- 0.5.4 — 2016-06-15
- 0.5.3 — 2016-06-07
- 0.5.2 — 2016-05-31
- 0.5.1 — 2016-05-30
- 0.5.0 — 2016-05-25
- 0.4.0 — 2016-04-13
- 0.3.0 — 2016-04-06
- 0.2.2 — 2016-01-25
- … 5 more at https://npm.io/package/generator-fountain-webapp/versions

## README

<p align="center">
  <a href="http://fountainjs.io/">
    <img alt="FountainJS" src="http://fountainjs.io/assets/imgs/fountain.png" width="200">
  </a>
</p>

# Fountain Webapp Generator
[![Build Status](https://travis-ci.org/FountainJS/generator-fountain-webapp.svg?branch=master)](https://travis-ci.org/FountainJS/generator-fountain-webapp)
[![codecov](https://codecov.io/gh/FountainJS/generator-fountain-webapp/branch/master/graph/badge.svg)](https://codecov.io/gh/FountainJS/generator-fountain-webapp)
[![Slack](http://slackin.fountainjs.io/badge.svg)](http://slackin.fountainjs.io/)
[![OpenCollective Backers][backer-badge]][backer-url]
[![OpenCollective Sponsors][sponsor-badge]][sponsor-url]

> This Yeoman generator allows you to start any Webapp with the best Developer Experience out of the box!

> No matter what framework or module management you want to use, we got you covered with a cutting edge working configuration.

> We use [Gulp 4](http://gulpjs.com/) as a task manager but we'll ask you questions about:
- Framework: React, Angular 2, Angular 1, Vue 2
- Modules management: Webpack, SystemJS, none
- JS preprocessor: Babel, TypeScript, none
- CSS preprocessor: Sass, Stylus, Less, none

This generator is the entry point of the Yeoman Fountain generators for webapps. It can be considered as the v2 of [generator-gulp-angular](https://github.com/Swiip/generator-gulp-angular).

## Generator Fountain Webapp structure

To take profit of the best of the Yeoman infrastructure, we heavily relies on the composability natures of the generators.

Thereby, each needs of your future application will be addressed by a dedicated Yeoman generator (each will be used depending of the options you selected or not).

More informations in [DESIGN.md](http://fountainjs.io/doc/design).


### Web framework layer
This generators can be used directly to bypass the framework question.

[![React](http://fountainjs.io/assets/imgs/react.png)](https://github.com/FountainJS/generator-fountain-react)
[![Angular 1](http://fountainjs.io/assets/imgs/angular1.png)](https://github.com/FountainJS/generator-fountain-angular1)
[![Angular 2](http://fountainjs.io/assets/imgs/angular2.png)](https://github.com/FountainJS/generator-fountain-angular2)
[![Vue 2](http://fountainjs.io/assets/imgs/vue.png)](https://github.com/FountainJS/generator-fountain-vue)

### Web tooling layer
[![Gulp](http://fountainjs.io/assets/imgs/gulp.png)](https://github.com/FountainJS/generator-fountain-gulp)
[![ESLint](http://fountainjs.io/assets/imgs/eslint.png)](https://github.com/FountainJS/generator-fountain-eslint)
[![BrowserSync](http://fountainjs.io/assets/imgs/browsersync.png)](https://github.com/FountainJS/generator-fountain-browsersync)
[![Karma](http://fountainjs.io/assets/imgs/karma.png)](https://github.com/FountainJS/generator-fountain-karma)

### Module management layer
[![Webpack](http://fountainjs.io/assets/imgs/webpack.png)](https://github.com/FountainJS/generator-fountain-webpack)
[![SystemJS](http://fountainjs.io/assets/imgs/systemjs.png)](https://github.com/FountainJS/generator-fountain-systemjs)
[![Bower](http://fountainjs.io/assets/imgs/bower.png)](https://github.com/FountainJS/generator-fountain-inject)


### Usage

### Requirement Node 6+ && NPM 3+
This generator is targeted to be used with Node >= 6.0.0 and NPM => 3.0.0. You can check your version number with the command
```
node --version && npm --version
```

### Install

##### Install required tools `yo`:
```
npm install -g yo
```

##### Install `generator-fountain-webapp`:
```
npm install -g generator-fountain-webapp
```


### Run

##### Create a new directory, and go into:
```
mkdir my-new-project && cd my-new-project
```

##### Run `yo fountain-webapp`, and select desired technologies:
```
yo fountain-webapp
```
#### Use NPM scripts

- `npm run build` to build an optimized version of your application in /dist
- `npm run serve` to launch a browser sync server on your source files
- `npm run serve:dist` to launch a server on your optimized application
- `npm run test` to launch your unit tests with Karma
- `npm run test:auto` to launch your unit tests with Karma in watch mode


#### Or Gulp tasks

If you have [`gulp-cli`](https://www.npmjs.com/package/gulp-cli) installed in global packages you can use equivalent:

- `gulp` or `gulp build`
- `gulp serve`
- `gulp serve:dist`
- `gulp test`
- `gulp test:auto`

**If you don't have [`gulp-cli`](https://www.npmjs.com/package/gulp-cli) installed in global, you should have this error:**
> /usr/local/lib/node_modules/gulp/bin/gulp.js:121
    gulpInst.start.apply(gulpInst, toRun);
TypeError: Cannot read property 'apply' of undefined

### Sub-generators

If you want to access sub-generators, you have to globally install one of the following generators:
- [generator-fountain-react](https://github.com/FountainJS/generator-fountain-react)
- [generator-fountain-angular2](https://github.com/FountainJS/generator-fountain-angular2)
- [generator-fountain-angular1](https://github.com/FountainJS/generator-fountain-angular1)
- [generator-fountain-vue](https://github.com/FountainJS/generator-fountain-vue)

### [Start development](http://fountainjs.io/doc/usage/#use-npm-scripts)

***

## Backers

Support us with a monthly donation and help us continue our activities.

[![Backers][backers-image]][support-url]

## Sponsors

Become a sponsor and get your logo on our website fountainjs.io and on our README on Github with a link to your site.

[![Sponsors][sponsors-image]][support-url]

## [Changelog](https://github.com/FountainJS/generator-fountain-webapp/releases)


## [Contributing](http://fountainjs.io/doc/contributing)

[backer-url]: #backers
[backer-badge]: https://opencollective.com/fountainjs/backers/badge.svg?color=blue
[sponsor-url]: #sponsors
[sponsor-badge]: https://opencollective.com/fountainjs/sponsors/badge.svg?color=blue
[support-url]: https://opencollective.com/fountainjs#support
[backers-image]: https://opencollective.com/fountainjs/backers.svg
[sponsors-image]: https://opencollective.com/fountainjs/sponsors.svg

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