Skip to content

Commit 05d8a37

Browse files
committed
Merge branch 'master' of github.com:angular-fullstack/generator-angular-fullstack into canary
2 parents 78426f1 + 221f7a4 commit 05d8a37

File tree

22 files changed

+69
-41
lines changed

22 files changed

+69
-41
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
angular-fullstack-deps
22
test
3+
.idea

angular-fullstack-deps

app/generator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ export default class Generator extends Base {
144144

145145
this.scriptExt = answers.transpiler === 'ts' ? 'ts' : 'js';
146146
this.templateExt = answers.markup;
147-
this.styleExt = answers.stylesheet === 'sass' ? 'scss' : answers.stylesheet;
147+
148+
var styleExt = {sass: 'scss', stylus: 'styl'}[answers.stylesheet];
149+
this.styleExt = styleExt ? styleExt : answers.stylesheet;
148150

149151
cb();
150152
}.bind(this));

app/templates/Gruntfile(grunt).js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = function (grunt) {
161161
},
162162
src: ['<%%= yeoman.server %>/**/*.{spec,integration}.js']
163163
},
164-
all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js'],
164+
all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock|app.constant).js'],
165165
test: {
166166
src: ['<%%= yeoman.client %>/{app,components}/**/*.{spec,mock}.js']
167167
}
@@ -424,7 +424,8 @@ module.exports = function (grunt) {
424424
dest: '<%%= yeoman.dist %>',
425425
src: [
426426
'package.json',
427-
'<%%= yeoman.server %>/**/*'
427+
'<%%= yeoman.server %>/**/*',
428+
'!<%%= yeoman.server %>/config/local.env.sample.js'
428429
]
429430
}]
430431
},
@@ -636,7 +637,7 @@ module.exports = function (grunt) {
636637
files: [{
637638
expand: true,
638639
cwd: '<%%= yeoman.server %>',
639-
src: ['**/*.{js,json}'],
640+
src: ['**/*.js'],
640641
dest: '<%%= yeoman.dist %>/<%%= yeoman.server %>'
641642
}]
642643
}

app/templates/_bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"angular-cookies": "~1.4.0",
1313
"angular-sanitize": "~1.4.0",<% if (filters.ngroute) { %>
1414
"angular-route": "~1.4.0",<% } if (filters.uibootstrap) { %>
15-
"angular-bootstrap": "~0.13.0",<% } %>
15+
"angular-bootstrap": "~1.1.2",<% } %>
1616
"font-awesome": ">=4.1.0",
1717
"lodash": "~2.4.1"<% if(filters.socketio) { %>,
1818
"angular-socket-io": "~0.7.0"<% } if (filters.uirouter) { %>,

app/templates/_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
"karma-ng-jade2js-preprocessor": "^0.2.0",<% } else { %>
151151
"karma-ng-html2js-preprocessor": "~0.2.0",<% } %>
152152
"karma-spec-reporter": "~0.0.20",
153-
"sinon-chai": "^2.8.0",<% if (filters.mocha) { %>
154-
"mocha": "^2.2.5",
153+
"sinon-chai": "^2.8.0",
154+
"mocha": "^2.2.5",<% if (filters.mocha) { %>
155155
"karma-mocha": "^0.2.0",
156156
"karma-chai-plugins": "^0.6.0",<% } if (filters.jasmine) { %>
157157
"jasmine-core": "^2.3.4",

app/templates/client/app/app(less).less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
}
2525
<% } %>
2626
// injector
27-
@import 'account/login/login.less';
2827
@import 'admin/admin.less';
2928
@import 'main/main.less';
3029
// endinjector

app/templates/client/app/app(sass).scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<% } %>
2525
// Component styles are injected through grunt
2626
// injector
27-
@import 'account/login/login.scss';
2827
@import 'admin/admin.scss';
2928
@import 'main/main.scss';
3029
// endinjector

app/templates/client/app/app(stylus).styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<% } %>
4646
// Component styles are injected through grunt
4747
// injector
48-
@import "account/login/login"
4948
@import "admin/admin"
5049
@import "main/main"
5150
// endinjector

app/templates/client/app/main/main(html).html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>'Allo, 'Allo!</h1>
1111
<div class="col-lg-12">
1212
<h1 class="page-header">Features:</h1>
1313
<ul class="nav nav-tabs nav-stacked col-md-4 col-lg-4 col-sm-6" ng-repeat="thing in main.awesomeThings">
14-
<li><a href="#" tooltip="{{thing.info}}">{{thing.name}}<% if (filters.socketio) { %><button type="button" class="close" ng-click="main.deleteThing(thing)">&times;</button><% } %></a></li>
14+
<li><a href="#" uib-tooltip="{{thing.info}}">{{thing.name}}<% if (filters.socketio) { %><button type="button" class="close" ng-click="main.deleteThing(thing)">&times;</button><% } %></a></li>
1515
</ul>
1616
</div>
1717
</div><% if (filters.socketio) { %>

0 commit comments

Comments
 (0)