lerna-script-preset-idea

0.1.3 • Public • Published

lerna-script-preset-idea npm

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 with node_modules indexing pretty much kills it:/
  • set source level to es6;
  • mark lib, src as source rootps and test, 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.

Readme

Keywords

none

Package Sidebar

Install

npm i lerna-script-preset-idea

Weekly Downloads

2

Version

0.1.3

License

BSD

Last publish

Collaborators

  • viliusl