lerna-script-preset-idea
v0.1.3
Published
task for start that generates intellij project for repo
Downloads
2
Readme
lerna-script-preset-idea
lerna-script preset to generate WebStorm project for a Lerna managed project with hardcoded conventions:
- mark
node_modules
as ignored so WebStorm would not index those. Having >= 20 modules open withnode_modules
indexing pretty much kills it:/ - set source level to
es6
; - mark
lib
,src
as source rootps andtest
,tests
as test roots; - add mocha run configurations for all modules.
Note: given this preset generates WebStorm project files manually, you must close all instances of WebStorm before generating and open afterwards.
install
npm install --save-dev lerna-script-preset-idea
Usage
Add lerna-script
launcher to package.json
scripts:
{
"scripts": {
"start": "lerna-script"
}
}
Add export to lerna.js
:
module.exports.idea = require('lerna-script-preset-idea');
To generate WebStorm project run:
npm start idea
API
()
Returns a function that generates WebStorm for all modules in repo.