This project has been archived and is considered outdated and unmaintained.
With the massive rise of the CLI tools by each major JavaScript Web frameworks, it was become irrelevant to pursue the quest of being a competitive project scaffolder for modern Web project.
We officialy advise to use the coresponding CLI tools for the framework you use:
Of course, we have some regrets regarding our users, Yeoman users and some goals we had with Fountain (like giving important tool choices to users, harmonizing projects configurations between frameworks...) but still, you can use official CLI tools with confidence as they are great project which went further for development experience and Web optimization.
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 as a task manager but we'll ask you questions about:
This generator is the entry point of the Yeoman Fountain generators for webapps. It can be considered as the v2 of generator-gulp-angular.
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.
This generators can be used directly to bypass the framework question.
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
yo
:npm install -g yo
generator-fountain-webapp
:npm install -g generator-fountain-webapp
mkdir my-new-project && cd my-new-project
yo fountain-webapp
, and select desired technologies:yo fountain-webapp
npm run build
to build an optimized version of your application in /distnpm run serve
to launch a browser sync server on your source filesnpm run serve:dist
to launch a server on your optimized applicationnpm run test
to launch your unit tests with Karmanpm run test:auto
to launch your unit tests with Karma in watch modeIf you have 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
installed in global, you should have this error:
/usr/local/lib/node_modules/gulp/bin/gulp.js:121gulpInst.start.apply(gulpInst, toRun);TypeError: Cannot read property 'apply' of undefined
If you want to access sub-generators, you have to globally install one of the following generators:
Support us with a monthly donation and help us continue our activities.
Become a sponsor and get your logo on our website fountainjs.io and on our README on Github with a link to your site.
直接上我的github地址。 https://github.com/631535199/yo-react 转载于:https://www.cnblogs.com/cbp-jltx/p/9140876.html
⚠️ Unmaintained This project has been archived and is considered outdated and unmaintained. With the massive rise of the CLI tools by each major JavaScript Web frameworks, it was become irrelevant to
Fountain是监查、捕捉MySQL数据库的增量变化,分发数据变化给消费者处理的一套解决方案。 任何需要快速、准确接收MySQL数据变化增量的场景均适用,例如 广告传输流:输出到本地增量文件 数据同步:可数据库同构复制,也可以跨异构数据源sync,比如MySQL到一些NoSQL,例如redis、mongodb,或者es、solr等提供搜索服务,或者MQ如bigpipe、RabbitMQ。 缓存失
常规函数只会返回一个单一值(或者不返回任何值)。 而 Generator 可以按需一个接一个地返回(“yield”)多个值。它们可与 iterable 完美配合使用,从而可以轻松地创建数据流。 Generator 函数 要创建一个 generator,我们需要一个特殊的语法结构:function*,即所谓的 “generator function”。 它看起来像这样: function* gene
generator(生成器)是ES6标准引入的新的数据类型。一个generator看上去像一个函数,但可以返回多次。 ES6定义generator标准的哥们借鉴了Python的generator的概念和语法,如果你对Python的generator很熟悉,那么ES6的generator就是小菜一碟了。如果你对Python还不熟,赶快恶补Python教程!。 我们先复习函数的概念。一个函数是一段完整
Express' application generator. Installation $ npm install -g express-generator Quick Start The quickest way to get started with express is to utilize the executable express(1) to generate an applicat
Generator并发 正如我们在第一章和本章早先讨论过的,另个同时运行的“进程”可以协作地穿插它们的操作,而且许多时候这可以产生非常强大的异步表达式。 坦白地说,我们前面关于多个generator并发穿插的例子,展示了这真的容易让人糊涂。但我们也受到了启发,有些地方这种能力十分有用。 回想我们在第一章中看过的场景,两个不同但同时的Ajax应答处理需要互相协调,来确保数据通信不是竟合状态。我们这样