Skip to content

Commit c0708ce

Browse files
committed
2 parents 4f0c67d + 5bc5656 commit c0708ce

File tree

6 files changed

+264
-121
lines changed

6 files changed

+264
-121
lines changed

Diff for: app/generator.js

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ export default class Generator extends Base {
6363

6464
if (this.skipConfig) {
6565
this.filters = existingFilters;
66+
67+
this.scriptExt = this.filters.ts ? 'ts' : 'js';
68+
this.templateExt = this.filters.jade ? 'jade' : 'html';
69+
this.styleExt = this.filters.sass ? 'scss' :
70+
this.filters.less ? 'less' :
71+
this.filters.stylus ? 'styl' :
72+
'css';
6673
} else {
6774
this.filters = {};
6875
this.forceConfig = true;

Diff for: app/templates/_package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,31 @@
4444
"gulp-angular-templatecache": "^1.7.0",
4545
"gulp-autoprefixer": "2.3.1",<% if(filters.babel) { %>
4646
"gulp-babel": "^5.1.0",<% } %>
47+
"gulp-babel-istanbul": "^0.11.0",
4748
"gulp-cache": "^0.2.10",
4849
"gulp-concat": "^2.6.0",
50+
"gulp-env": "^0.2.0",
4951
"gulp-filter": "^2.0.2",
5052
"gulp-imagemin": "^2.2.1",
5153
"gulp-inject": "^1.3.1",
52-
"gulp-jshint": "^1.11.0",<% if(filters.less) { %>
53-
"gulp-less": "3.0.3",<% } %>
54+
"gulp-jscs": "^3.0.2",
55+
"gulp-jshint": "^1.11.0",
5456
"gulp-livereload": "^3.8.0",
5557
"gulp-load-plugins": "^1.0.0-rc.1",
5658
"gulp-minify-css": "^1.1.6",
5759
"gulp-mocha": "^2.1.3",
5860
"gulp-ng-annotate": "^1.1.0",
5961
"gulp-ng-constant": "^1.1.0",
6062
"gulp-plumber": "^1.0.1",
63+
"gulp-protractor": "^2.1.0",
6164
"gulp-rename": "^1.2.2",
6265
"gulp-rev": "^5.0.0",
6366
"gulp-rev-replace": "^0.4.2",
6467
"gulp-sort": "^1.1.1",
6568
"gulp-sourcemaps": "^1.5.2",
6669
"gulp-svgmin": "^1.1.2",
6770
"gulp-uglify": "^1.2.0",
68-
"gulp-useref": "^1.2.0",
71+
"gulp-useref": "^3.0.3",
6972
"gulp-util": "^3.0.5",
7073
"gulp-watch": "^4.3.5",<% if(filters.jade) { %>
7174
"gulp-jade": "^1.0.1",<% } if(filters.stylus) { %>
@@ -75,9 +78,7 @@
7578
"gulp-sass": "^2.0.1",
7679
"gulp-scss-lint": "^0.2.1",<% } if(filters.less) { %>
7780
"gulp-less": "^3.0.3",
78-
"gulp-recess": "^1.1.2",<% } if(filters.coffee) { %>
79-
"gulp-coffeelint": "^0.5.0",
80-
"gulp-coffee": "^2.3.1",<% } %>
81+
"gulp-recess": "^1.1.2",<% } %>
8182
"utile": "~0.3.0",
8283
"nodemon": "^1.3.7",
8384
"run-sequence": "^1.1.0",

Diff for: app/templates/e2e/account(auth)/login/login.spec(jasmine).js

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ describe('Login View', function() {
2626
if (filters.sequelizeModels) { %>return UserModel.create(testUser);<% } %>
2727
})
2828
.then(loadPage)
29-
.finally(done);
29+
.finally(function() {
30+
browser.wait(function() {
31+
//console.log('waiting for angular...');
32+
return browser.executeScript('return !!window.angular');
33+
34+
}, 5000).then(done);
35+
36+
});
3037
});
3138

3239
it('should include login form with correct inputs and submit button', function() {

Diff for: app/templates/e2e/account(auth)/logout/logout.spec(jasmine).js

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ describe('Logout View', function() {
2626
.then(function() {
2727
return login(testUser);
2828
})
29-
.finally(done);
29+
.finally(function() {
30+
browser.wait(function() {
31+
return browser.executeScript('return !!window.angular');
32+
}, 5000).then(done);
33+
});
3034
});
3135

3236
describe('with local auth', function() {

Diff for: app/templates/e2e/account(auth)/signup/signup.spec(jasmine).js

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ describe('Signup View', function() {
2020
confirmPassword: 'test'
2121
};
2222

23-
beforeEach(function() {
23+
beforeEach(function(done) {
2424
loadPage();
25+
browser.wait(function() {
26+
return browser.executeScript('return !!window.angular');
27+
}, 5000).then(done);
2528
});
2629

2730
it('should include signup form with correct inputs and submit button', function() {

0 commit comments

Comments
 (0)