Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
1.5.0 (#61)
Browse files Browse the repository at this point in the history
* 1.5.0
  • Loading branch information
eromano authored May 25, 2017
1 parent caf1573 commit 8140b0d
Show file tree
Hide file tree
Showing 24 changed files with 729 additions and 710 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
os:
- osx
language: node_js
node_js:
- "7"
Expand Down
73 changes: 55 additions & 18 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module.exports = yeoman.Base.extend({
licenseChecker: false
};

this.props.licenseHeader = this.fs.read(path.join(__dirname, './alfresco-license-header.ts'));
if (this.options.alfresco) {
this.props.licenseHeader = this.fs.read(path.join(__dirname, './alfresco-license-header.ts'));
this.props.licenseChecker = true;
}
},
Expand Down Expand Up @@ -141,13 +141,6 @@ module.exports = yeoman.Base.extend({
writing: function () {
this.props.projectNameCamelCase = _.chain(this.props.projectName).camelCase().upperFirst();

if (this.props.licenseChecker) {
this.fs.copyTpl(
this.templatePath('_license_header.txt'),
this.destinationPath('assets/license_header.txt')
);
}

this.fs.copyTpl(
this.templatePath('_karma.conf.js'),
this.destinationPath('karma.conf.js')
Expand All @@ -158,14 +151,64 @@ module.exports = yeoman.Base.extend({
this.destinationPath('karma-test-shim.js')
);

////config folder
//
this.fs.copy(
this.templatePath('_tsconfig.json'),
this.destinationPath('tsconfig.json')
this.templatePath('config/assets/_license_header.txt'),
this.destinationPath('config/assets/license_header.txt')
);

this.fs.copy(
this.templatePath('config/assets/_license_header_add.txt'),
this.destinationPath('config/assets/license_header_add.txt')
);

this.fs.copy(
this.templatePath('config/assets/_tslint.json'),
this.destinationPath('config/assets/tslint.json')
);

this.fs.copy(
this.templatePath('config/custom-loaders/_file-loader-multi.js'),
this.destinationPath('config/custom-loaders/file-loader-multi.js')
);

this.fs.copy(
this.templatePath('config/custom-loaders/_license-check.js'),
this.destinationPath('config/custom-loaders/license-check.js')
);

this.fs.copy(
this.templatePath('config/_helpers.js'),
this.destinationPath('config/helpers.js')
);

this.fs.copy(
this.templatePath('config/_webpack.common.js'),
this.destinationPath('config/webpack.common.js')
);

this.fs.copy(
this.templatePath('config/_webpack.test.js'),
this.destinationPath('config/webpack.test.js')
);

this.fs.copyTpl(
this.templatePath('_webpack.build.js'),
this.destinationPath('webpack.build.js'),
this.props
);

this.fs.copy(
this.templatePath('_tslint.json'),
this.destinationPath('tslint.json')
this.templatePath('_webpack.test.js'),
this.destinationPath('webpack.test.js')
);
//
////

this.fs.copy(
this.templatePath('_tsconfig.json'),
this.destinationPath('tsconfig.json')
);

this.fs.copy(
Expand All @@ -189,12 +232,6 @@ module.exports = yeoman.Base.extend({
this.props
);

this.fs.copyTpl(
this.templatePath('_gulpfile.ts'),
this.destinationPath('gulpfile.ts'),
this.props
);

this.fs.copyTpl(
this.templatePath('_sourceFile.ts'),
this.destinationPath('src/' + this.props.projectName + '.component.ts'),
Expand Down
1 change: 1 addition & 0 deletions app/templates/_.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
npm-debug.log
node_modules
.idea
.npmrc
typings
coverage
dist
Expand Down
1 change: 1 addition & 0 deletions app/templates/_.npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
npm-debug.log
.idea
.npmrc

coverage/
demo/
Expand Down
Loading

0 comments on commit 8140b0d

Please sign in to comment.