Skip to content

Commit 106b9a8

Browse files
committed
refactor(app): remove extra npm/gulp coffee cruft
1 parent 1bf4282 commit 106b9a8

File tree

2 files changed

+17
-28
lines changed

2 files changed

+17
-28
lines changed

Diff for: app/templates/_package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@
7878
"gulp-sass": "^2.0.1",
7979
"gulp-scss-lint": "^0.2.1",<% } if(filters.less) { %>
8080
"gulp-less": "^3.0.3",
81-
"gulp-recess": "^1.1.2",<% } if(filters.coffee) { %>
82-
"gulp-coffeelint": "^0.5.0",
83-
"gulp-coffee": "^2.3.1",<% } %>
81+
"gulp-recess": "^1.1.2",<% } %>
8482
"utile": "~0.3.0",
8583
"nodemon": "^1.3.7",
8684
"run-sequence": "^1.1.0",

Diff for: app/templates/gulpfile.babel(gulp).js

+16-25
Original file line numberDiff line numberDiff line change
@@ -108,23 +108,17 @@ function sortModulesFirst(a, b) {
108108
* Reusable pipelines
109109
********************/
110110

111-
let lintClientScripts = lazypipe()<% if(filters.coffee) { %>
112-
.pipe(plugins.coffeelint)
113-
.pipe(plugins.coffeelint.reporter);<% } else { %>
111+
let lintClientScripts = lazypipe()
114112
.pipe(plugins.jshint, `${clientPath}/.jshintrc`)
115-
.pipe(plugins.jshint.reporter, 'jshint-stylish');<% } %>
113+
.pipe(plugins.jshint.reporter, 'jshint-stylish');
116114

117-
let lintServerScripts = lazypipe()<% if(filters.coffee) { %>
118-
.pipe(plugins.coffeelint)
119-
.pipe(plugins.coffeelint.reporter);<% } else { %>
115+
let lintServerScripts = lazypipe()
120116
.pipe(plugins.jshint, `${serverPath}/.jshintrc`)
121-
.pipe(plugins.jshint.reporter, 'jshint-stylish');<% } %>
117+
.pipe(plugins.jshint.reporter, 'jshint-stylish');
122118

123-
let lintServerTestScripts = lazypipe()<% if(filters.coffee) { %>
124-
.pipe(plugins.coffeelint)
125-
.pipe(plugins.coffeelint.reporter);<% } else { %>
119+
let lintServerTestScripts = lazypipe()
126120
.pipe(plugins.jshint, `${serverPath}/.jshintrc-spec`)
127-
.pipe(plugins.jshint.reporter, 'jshint-stylish');<% } %>
121+
.pipe(plugins.jshint.reporter, 'jshint-stylish');
128122

129123
let styles = lazypipe()
130124
.pipe(plugins.sourcemaps.init)<% if(filters.stylus) { %>
@@ -135,23 +129,21 @@ let styles = lazypipe()
135129
.pipe(plugins.sass)<% } if(filters.less) { %>
136130
.pipe(plugins.less)<% } %>
137131
.pipe(plugins.autoprefixer, {browsers: ['last 1 version']})
138-
.pipe(plugins.sourcemaps.write, '.');<% if(filters.babel || filters.coffee) { %>
132+
.pipe(plugins.sourcemaps.write, '.');
139133

140134
let transpileServer = lazypipe()
141135
.pipe(plugins.sourcemaps.init)<% if(filters.babel) { %>
142136
.pipe(plugins.babel, {
143137
optional: ['runtime']
144-
})<% } else { %>
145-
.pipe(plugins.coffee, {bare: true})<% } %>
138+
})<% } %>
146139
.pipe(plugins.sourcemaps.write, '.');
147140

148141
let transpileClient = lazypipe()
149142
.pipe(plugins.sourcemaps.init)<% if(filters.babel) { %>
150143
.pipe(plugins.babel, {
151144
optional: ['es7.classProperties']
152-
})<% } else { %>
153-
.pipe(plugins.coffee, {bare: true})<% } %>
154-
.pipe(plugins.sourcemaps.write, '.');<% } %>
145+
})<% } %>
146+
.pipe(plugins.sourcemaps.write, '.');
155147

156148
let mocha = lazypipe()
157149
.pipe(plugins.mocha, {
@@ -259,13 +251,13 @@ gulp.task('styles', () => {
259251
return gulp.src(paths.client.mainStyle)
260252
.pipe(styles())
261253
.pipe(gulp.dest('.tmp/app'));
262-
});<% if(filters.babel || filters.coffee) { %>
254+
});
263255

264256
gulp.task('transpile:client', () => {
265257
return gulp.src(paths.client.scripts)
266258
.pipe(transpileClient())
267259
.pipe(gulp.dest('.tmp'));
268-
});<% } %>
260+
});
269261

270262
gulp.task('transpile:server', () => {
271263
return gulp.src(_.union(paths.server.scripts, paths.server.json))
@@ -342,9 +334,9 @@ gulp.task('watch', () => {
342334
.pipe(plugins.livereload());
343335

344336
plugins.watch(paths.client.scripts) //['inject:js']
345-
.pipe(plugins.plumber())<% if(filters.babel || filters.coffee) { %>
337+
.pipe(plugins.plumber())
346338
.pipe(transpileClient())
347-
.pipe(gulp.dest('.tmp'))<% } %>
339+
.pipe(gulp.dest('.tmp'))
348340
.pipe(plugins.livereload());
349341

350342
plugins.watch(_.union(paths.server.scripts, testFiles))
@@ -358,9 +350,8 @@ gulp.task('watch', () => {
358350
gulp.task('serve', cb => {
359351
runSequence(['clean:tmp', 'constant'],
360352
['lint:scripts', 'inject'<% if(filters.jade) { %>, 'jade'<% } %>],
361-
['wiredep:client'],<% if(filters.babel || filters.coffee) { %>
362-
['transpile:client', 'styles'],<% } else { %>
363-
'styles',<% } %>
353+
['wiredep:client'],
354+
['transpile:client', 'styles'],
364355
['start:server', 'start:client'],
365356
'watch',
366357
cb);

0 commit comments

Comments
 (0)