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

Commit 8140b0d

Browse files
authored
1.5.0 (#61)
* 1.5.0
1 parent caf1573 commit 8140b0d

24 files changed

+729
-710
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
os:
2-
- osx
31
language: node_js
42
node_js:
53
- "7"

app/index.js

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = yeoman.Base.extend({
1919
licenseChecker: false
2020
};
2121

22+
this.props.licenseHeader = this.fs.read(path.join(__dirname, './alfresco-license-header.ts'));
2223
if (this.options.alfresco) {
23-
this.props.licenseHeader = this.fs.read(path.join(__dirname, './alfresco-license-header.ts'));
2424
this.props.licenseChecker = true;
2525
}
2626
},
@@ -141,13 +141,6 @@ module.exports = yeoman.Base.extend({
141141
writing: function () {
142142
this.props.projectNameCamelCase = _.chain(this.props.projectName).camelCase().upperFirst();
143143

144-
if (this.props.licenseChecker) {
145-
this.fs.copyTpl(
146-
this.templatePath('_license_header.txt'),
147-
this.destinationPath('assets/license_header.txt')
148-
);
149-
}
150-
151144
this.fs.copyTpl(
152145
this.templatePath('_karma.conf.js'),
153146
this.destinationPath('karma.conf.js')
@@ -158,14 +151,64 @@ module.exports = yeoman.Base.extend({
158151
this.destinationPath('karma-test-shim.js')
159152
);
160153

154+
////config folder
155+
//
161156
this.fs.copy(
162-
this.templatePath('_tsconfig.json'),
163-
this.destinationPath('tsconfig.json')
157+
this.templatePath('config/assets/_license_header.txt'),
158+
this.destinationPath('config/assets/license_header.txt')
159+
);
160+
161+
this.fs.copy(
162+
this.templatePath('config/assets/_license_header_add.txt'),
163+
this.destinationPath('config/assets/license_header_add.txt')
164+
);
165+
166+
this.fs.copy(
167+
this.templatePath('config/assets/_tslint.json'),
168+
this.destinationPath('config/assets/tslint.json')
169+
);
170+
171+
this.fs.copy(
172+
this.templatePath('config/custom-loaders/_file-loader-multi.js'),
173+
this.destinationPath('config/custom-loaders/file-loader-multi.js')
174+
);
175+
176+
this.fs.copy(
177+
this.templatePath('config/custom-loaders/_license-check.js'),
178+
this.destinationPath('config/custom-loaders/license-check.js')
179+
);
180+
181+
this.fs.copy(
182+
this.templatePath('config/_helpers.js'),
183+
this.destinationPath('config/helpers.js')
184+
);
185+
186+
this.fs.copy(
187+
this.templatePath('config/_webpack.common.js'),
188+
this.destinationPath('config/webpack.common.js')
189+
);
190+
191+
this.fs.copy(
192+
this.templatePath('config/_webpack.test.js'),
193+
this.destinationPath('config/webpack.test.js')
194+
);
195+
196+
this.fs.copyTpl(
197+
this.templatePath('_webpack.build.js'),
198+
this.destinationPath('webpack.build.js'),
199+
this.props
164200
);
165201

166202
this.fs.copy(
167-
this.templatePath('_tslint.json'),
168-
this.destinationPath('tslint.json')
203+
this.templatePath('_webpack.test.js'),
204+
this.destinationPath('webpack.test.js')
205+
);
206+
//
207+
////
208+
209+
this.fs.copy(
210+
this.templatePath('_tsconfig.json'),
211+
this.destinationPath('tsconfig.json')
169212
);
170213

171214
this.fs.copy(
@@ -189,12 +232,6 @@ module.exports = yeoman.Base.extend({
189232
this.props
190233
);
191234

192-
this.fs.copyTpl(
193-
this.templatePath('_gulpfile.ts'),
194-
this.destinationPath('gulpfile.ts'),
195-
this.props
196-
);
197-
198235
this.fs.copyTpl(
199236
this.templatePath('_sourceFile.ts'),
200237
this.destinationPath('src/' + this.props.projectName + '.component.ts'),

app/templates/_.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
npm-debug.log
22
node_modules
33
.idea
4+
.npmrc
45
typings
56
coverage
67
dist

app/templates/_.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
npm-debug.log
22
.idea
3+
.npmrc
34

45
coverage/
56
demo/

0 commit comments

Comments
 (0)