Skip to content

Commit

Permalink
fix(tasks): copy lint task to scaffolded app
Browse files Browse the repository at this point in the history
the lint task, once for ts and js, is copied to the appropriate destination in the target scaffold
  • Loading branch information
zewa666 committed Aug 24, 2017
1 parent 596442a commit e16c216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/commands/new/buildsystems/cli/transpilers/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports = function(project) {
ProjectItem.resource('.eslintrc.json', 'content/eslintrc.json'),
ProjectItem.resource('.babelrc', 'content/babelrc')
).addToTasks(
ProjectItem.resource('transpile.js', 'tasks/transpile.js')
ProjectItem.resource('transpile.js', 'tasks/transpile.js'),
ProjectItem.resource('lint.js', 'tasks/lint.js')
).addToDevDependencies(
'babel-eslint',
'babel-plugin-syntax-flow',
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/new/buildsystems/cli/transpilers/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports = function(project) {
.asTemplate(project.model),
ProjectItem.directory('custom_typings')
).addToTasks(
ProjectItem.resource('transpile.ts', 'tasks/transpile.ts')
ProjectItem.resource('transpile.ts', 'tasks/transpile.ts'),
ProjectItem.resource('lint.ts', 'tasks/lint.ts')
).addToDevDependencies(
'event-stream',
'gulp-typescript',
Expand Down

0 comments on commit e16c216

Please sign in to comment.