Skip to content

Commit

Permalink
Removing pegakit-core initial dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt-bot committed Mar 7, 2017
1 parent 5820c9f commit 7e75958
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
54 changes: 30 additions & 24 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);
}
},

Expand Down Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/bower/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
6 changes: 3 additions & 3 deletions generators/app/templates/readme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e75958

Please sign in to comment.