Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 252dc4286d993f0ea89ad03e03e6564c9aa41a21 @Swiip Swiip committed Dec 12, 2015
Showing with 214 additions and 0 deletions.
  1. +11 −0 .editorconfig
  2. +1 −0 .eslintignore
  3. +82 −0 .eslintrc
  4. +1 −0 .gitattributes
  5. +2 −0 .gitignore
  6. +3 −0 .travis.yml
  7. +21 −0 LICENSE
  8. +5 −0 README.md
  9. +11 −0 generators/app/index.js
  10. +33 −0 gulpfile.js
  11. +44 −0 package.json
@@ -0,0 +1,11 @@
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
@@ -0,0 +1 @@
+**/templates/
@@ -0,0 +1,82 @@
+{
+ "extends": "eslint:recommended",
+ "ecmaFeatures": {
+ "modules": true
+ },
+ "env": {
+ "es6": true,
+ "node": true
+ },
+ "rules": {
+ "array-bracket-spacing": [ 2, "never" ],
+ "brace-style": [ 2, "1tbs" ],
+ "consistent-return": 0,
+ "indent": [ 2, 2 ],
+ "no-multiple-empty-lines": [ 2, { "max": 2 } ],
+ "no-use-before-define": [ 2, "nofunc" ],
+ "one-var": [ 2, "never" ],
+ "quote-props": [ 2, "as-needed" ],
+ "quotes": [ 2, "single" ],
+ "space-after-keywords": [ 2, "always" ],
+ "space-before-function-paren": [ 2, {
+ "anonymous": "always",
+ "named": "never"
+ } ],
+ "space-in-parens": [ 2, "never" ],
+ "strict": [ 2, "global" ],
+ "curly": [ 2, "all" ],
+ "eol-last": 2,
+ "key-spacing": [ 2, {
+ "beforeColon": false,
+ "afterColon": true
+ } ],
+ "no-eval": 2,
+ "no-with": 2,
+ "space-infix-ops": 2,
+ "dot-notation": [ 2, { "allowKeywords": true } ],
+ "eqeqeq": 2,
+ "no-alert": 2,
+ "no-caller": 2,
+ "no-empty-label": 2,
+ "no-extend-native": 2,
+ "no-extra-bind": 2,
+ "no-implied-eval": 2,
+ "no-iterator": 2,
+ "no-label-var": 2,
+ "no-labels": 2,
+ "no-lone-blocks": 2,
+ "no-loop-func": 2,
+ "no-multi-spaces": 2,
+ "no-multi-str": 2,
+ "no-native-reassign": 2,
+ "no-new": 2,
+ "no-new-func": 2,
+ "no-new-wrappers": 2,
+ "no-octal-escape": 2,
+ "no-proto": 2,
+ "no-return-assign": 2,
+ "no-script-url": 2,
+ "no-sequences": 2,
+ "no-unused-expressions": 2,
+ "yoda": 2,
+ "no-shadow": 2,
+ "no-shadow-restricted-names": 2,
+ "no-undef-init": 2,
+ "camelcase": 2,
+ "comma-spacing": 2,
+ "new-cap": 2,
+ "new-parens": 2,
+ "no-array-constructor": 2,
+ "no-extra-parens": 2,
+ "no-new-object": 2,
+ "no-spaced-func": 2,
+ "no-trailing-spaces": 2,
+ "no-underscore-dangle": 2,
+ "semi": 2,
+ "semi-spacing": [ 2, {
+ "before": false,
+ "after": true
+ } ],
+ "space-return-throw-case": 2
+ }
+}
@@ -0,0 +1 @@
+* text=auto
@@ -0,0 +1,2 @@
+node_modules
+coverage
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 'stable'
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Matthieu Lux <matthieu.lux@gmail.com> (http://swiip.github.io/) & Mehdy Dara <mdara@eleven-labs.com> (https://github.com/zckrs)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,5 @@
+# Fountain React Generator
+
+Yeoman 'fountain' generator to start a webapp.
+
+## Project under heavy development
@@ -0,0 +1,11 @@
+const fountain = require('fountain-generator');
+
+module.exports = fountain.Base.extend({
+ prompting: function () {
+ this.fountainPrompting();
+ },
+
+ composing: function () {
+ this.composeWith(`fountain-${this.props.framework}`, { options: this.props });
+ }
+});
@@ -0,0 +1,33 @@
+const gulp = require('gulp');
+const gutil = require('gulp-util');
+const eslint = require('gulp-eslint');
+const excludeGitignore = require('gulp-exclude-gitignore');
+const mocha = require('gulp-mocha');
+const istanbul = require('gulp-istanbul');
+
+gulp.task('linter', eslintCheck);
+gulp.task('default', gulp.series('linter', gulp.series(istanbulCover, mochaTest)));
+
+function eslintCheck() {
+ return gulp.src('**/*.js')
+ .pipe(excludeGitignore())
+ .pipe(eslint())
+ .pipe(eslint.format())
+ .pipe(eslint.failAfterError());
+}
+
+function istanbulCover() {
+ return gulp.src('generators/**/index.js')
+ .pipe(istanbul({ includeUntested: true }))
+ .pipe(istanbul.hookRequire());
+}
+
+function mochaTest() {
+ return gulp.src('test/**/*.js')
+ .pipe(mocha({reporter: 'spec'}))
+ .once('error', function errorHandler(err) {
+ gutil.log(gutil.colors.red('[Mocha]'), err.toString());
+ process.exit(1);
+ })
+ .pipe(istanbul.writeReports());
+}
@@ -0,0 +1,44 @@
+{
+ "name": "generator-fountain-webapp",
+ "version": "0.0.1",
+ "description": "Yeoman 'fountain' generator to start a webapp",
+ "homepage": "",
+ "repository": "fountainjs/generator-fountain-webapp",
+ "author": "Matthieu Lux & Mehdy Dara",
+ "contributors": [
+ "Matthieu Lux <matthieu.lux@gmail.com> (http://swiip.github.io/)",
+ "Mehdy Dara <mdara@eleven-labs.com> (http://eleven-labs.com/)"
+ ],
+ "main": "index.js",
+ "keywords": [
+ "yeoman-generator",
+ "fountain-generator",
+ "yeoman",
+ "generator",
+ "gulp",
+ "gulpfile",
+ "fountain",
+ "cli"
+ ],
+ "engines": {
+ "node" : ">=4.0"
+ },
+ "dependencies": {
+ "lodash": "^3.10.1",
+ "fountain-generator": "^0.0.1",
+ "generator-fountain-react": "^0.0.1"
+ },
+ "devDependencies": {
+ "gulp": "gulpjs/gulp#4.0",
+ "gulp-eslint": "^1.0.0",
+ "gulp-exclude-gitignore": "^1.0.0",
+ "gulp-istanbul": "^0.10.2",
+ "gulp-mocha": "^2.1.3",
+ "gulp-util": "^3.0.7",
+ "yeoman-assert": "^2.1.0"
+ },
+ "scripts": {
+ "test": "gulp"
+ },
+ "license": "MIT"
+}

0 comments on commit 252dc42

Please sign in to comment.