diff --git a/generators/app/index.js b/generators/app/index.js index 8b9e6c3..697fbca 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -283,6 +283,12 @@ module.exports = yeoman.Base.extend({ this.destinationPath(this.folders.src + '/' + this.props.names.kebabcase.default + '.twig'), { props: this.props } ); + + this.fs.copyTpl( + this.templatePath('twig/component.yml'), + this.destinationPath(this.folders.src + '/' + this.props.names.kebabcase.default + '.yml'), + { props: this.props } + ); } }, @@ -437,48 +443,48 @@ module.exports = yeoman.Base.extend({ process.chdir(elementDir); var npmDevDependencies = [ - 'gulp', - 'gulp-size', - 'gulp-load-plugins', - 'gulp-prettify', - 'run-sequence', - 'browser-sync', - 'gulp-notify', - 'gulp-sourcemaps', - 'gulp-sass', - 'gulp-autoprefixer', - 'gulp-cssmin', - 'gulp-rename', - 'babel', - 'babel-cli', - 'babel-core', - 'babel-loader', - 'babel-preset-es2015', + // 'gulp', + // 'gulp-size', + // 'gulp-load-plugins', + // 'gulp-prettify', + // 'run-sequence', + // 'browser-sync', + // 'gulp-notify', + // 'gulp-sourcemaps', + // 'gulp-sass', + // 'gulp-autoprefixer', + // 'gulp-cssmin', + // 'gulp-rename', + // 'babel', + // 'babel-cli', + // 'babel-core', + // 'babel-loader', + // 'babel-preset-es2015', ]; var bowerDependencies = [ - 'pegakit-core', - 'sassy-maps' + // 'pegakit-core', + // 'sassy-maps' ]; if (this.props.twig) { npmDevDependencies.push( - 'gulp-twig', - 'gulp-ext-replace' + // 'gulp-twig', + // 'gulp-ext-replace' ); } if (this.props.javascript) { npmDevDependencies.push( - 'gulp-babel' + // 'gulp-babel' ); } if (!this.options.noinstall) { - this.npmInstall(['pegakit-core'], { 'save': true }, function() { + this.npmInstall([''], { 'save': true }, function() { this.npmInstall(npmDevDependencies, { 'saveDev': true }, function() { this.runInstall('yarn', null, function() { - this.bowerInstall(['pegakit-core'], { 'save': true }); + // this.bowerInstall(['pegakit-css'], { 'save': true }); }.bind(this)); }.bind(this)); }.bind(this)); diff --git a/generators/app/templates/bower/bower.json b/generators/app/templates/bower/bower.json index 2aac864..d87e445 100644 --- a/generators/app/templates/bower/bower.json +++ b/generators/app/templates/bower/bower.json @@ -9,6 +9,7 @@ "<%= folders.src %>_components.<%= props.names.kebabcase.default %>.scss",<% if (props.twig) { %> "<%= folders.src %><%= props.names.kebabcase.default %>.twig",<% } %><% if (props.javascript) { %> "<%= folders.dest %><%= props.names.kebabcase.default %>.js",<% } %> + "injector.json" ], <% if (props.javascript) { %>"moduleType": "globals",<% } %> "keywords": [ diff --git a/generators/app/templates/readme/README.md b/generators/app/templates/readme/README.md index 4cd2c4b..c27de85 100644 --- a/generators/app/templates/readme/README.md +++ b/generators/app/templates/readme/README.md @@ -40,10 +40,10 @@ The main scss file to include to your main `.scss` file is located at the `./<%= The javascript file is located at the `./<%= folders.dest %>/javascript/<%= props.names.kebabcase.plural %>.js`. The optimized and minified version is available at `<%= folders.dest %>/javascript/<%= props.names.kebabcase.plural %>.min.js`.<% } %> <% if (props.twig) { %>#### *Twig files* -The twig file is located at the `./<%= folders.src %>/twig/<%= props.names.kebabcase.singular %>.html.twig`.<% } %> +The twig file is located at the `./<%= folders.src %><%= props.names.kebabcase.singular %>.twig`.<% } %> ## Usage -to be written +@TODO: Usage info. ## License -MIT © [PegaKit](pegakit.github.io) +MIT © Pegasystems