0.1.3 • Published 8 years ago
lerna-script-preset-idea v0.1.3
lerna-script-preset-idea 
lerna-script preset to generate WebStorm project for a Lerna managed project with hardcoded conventions:
- mark
node_modulesas ignored so WebStorm would not index those. Having >= 20 modules open withnode_modulesindexing pretty much kills it:/ - set source level to
es6; - mark
lib,srcas source rootps andtest,testsas 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-ideaUsage
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 ideaAPI
()
Returns a function that generates WebStorm for all modules in repo.