Permalink
Browse files

fix(jsconfig): only create jsconfig for babel+vscode

closes #723
  • Loading branch information...
JeroenVinke committed Sep 3, 2017
1 parent 238b863 commit 173898c78a3ff7e07566fc53de3e4421f47ee8e4
@@ -2,6 +2,12 @@
const ProjectItem = require('../../../../../project-item').ProjectItem;
module.exports = function(project) {
if (project.model.transpiler.id !== 'typescript') {
project.addToContent(
ProjectItem.resource('jsconfig.json', 'content/jsconfig-webpack.json')
);
}
project.addToContent(
ProjectItem.directory('.vscode').add(
ProjectItem.resource('settings.json', 'content/settings.json'),
@@ -11,8 +11,7 @@ module.exports = function(project) {
project.addToContent(
ProjectItem.resource('.eslintrc.json', 'content/eslintrc.json'),
ProjectItem.resource('.babelrc.js', 'content/babelrc.webpack.js'),
ProjectItem.resource('.babelrc', 'content/babelrc.webpack'),
ProjectItem.resource('jsconfig.json', 'content/jsconfig-webpack.json')
ProjectItem.resource('.babelrc', 'content/babelrc.webpack')
)
.addToDevDependencies(
'babel-eslint@7.2.3',

0 comments on commit 173898c

Please sign in to comment.