From e16c2166dc962640b8041ca230fa00f5f61bd84a Mon Sep 17 00:00:00 2001 From: vsoftic Date: Thu, 24 Aug 2017 15:36:32 +0200 Subject: [PATCH] fix(tasks): copy lint task to scaffolded app the lint task, once for ts and js, is copied to the appropriate destination in the target scaffold --- lib/commands/new/buildsystems/cli/transpilers/babel.js | 3 ++- lib/commands/new/buildsystems/cli/transpilers/typescript.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/commands/new/buildsystems/cli/transpilers/babel.js b/lib/commands/new/buildsystems/cli/transpilers/babel.js index f95688573..9c2baad44 100644 --- a/lib/commands/new/buildsystems/cli/transpilers/babel.js +++ b/lib/commands/new/buildsystems/cli/transpilers/babel.js @@ -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', diff --git a/lib/commands/new/buildsystems/cli/transpilers/typescript.js b/lib/commands/new/buildsystems/cli/transpilers/typescript.js index 01bd1af04..a59c92593 100644 --- a/lib/commands/new/buildsystems/cli/transpilers/typescript.js +++ b/lib/commands/new/buildsystems/cli/transpilers/typescript.js @@ -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',