Skip to content

Commit

Permalink
Add env~node
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed May 19, 2016
1 parent 4b51fbd commit 97d7052
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generators/beta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,11 @@ module.exports = yeoman.Base.extend({
calcProperties() {
const devPackages = ['onchange', 'typings', 'ts-node', 'tslint', 'tslint-config-typings'];
const typingsPackages = [];
const typingsGlobalPackages = []
if (this.props.testFramework === 'blue-tape') {
devPackages.push('tap-spec', 'blue-tape');
typingsPackages.push('registry:npm/blue-tape');
typingsGlobalPackages.push('registry:env/node');
}
switch (this.props.browserTestHarness) {
case 'tape-run+jspm':
Expand All @@ -598,6 +600,7 @@ module.exports = yeoman.Base.extend({
}
this.props.devDependencies = devPackages;
this.props.typingsDevDependencies = typingsPackages;
this.props.typingsGlobalDevDependencies = typingsGlobalPackages;
},
printProps() {
this.log('');
Expand Down Expand Up @@ -762,6 +765,9 @@ module.exports = yeoman.Base.extend({
if (this.props.typingsDevDependencies.length > 0) {
typings.installDependenciesRaw(this.props.typingsDevDependencies, { cwd: this.destinationPath(), saveDev: true });
}
if (this.props.typingsGlobalDevDependencies.length > 0) {
typings.installDependenciesRaw(this.props.typingsGlobalDevDependencies, { cwd: this.destinationPath(), saveDev: true, global: true });
}
},
// createGitHubRepo() {
// github.authenticate({
Expand Down

0 comments on commit 97d7052

Please sign in to comment.