Yarn: Difference between revisions

From Bitpost wiki
(Created page with "Yarn is an alternative to npm. === Create yarn project in Intellij === * if you load an existing yarn project, intellij should set this build type: ** build type: File > sett...")
 
No edit summary
 
Line 5: Line 5:
** build type: File > settings > Lang. and FW > Node.js and NPM > package manager > yarn
** build type: File > settings > Lang. and FW > Node.js and NPM > package manager > yarn
* to build: Project navigator > package.json > rclick > Run 'yarn install'
* to build: Project navigator > package.json > rclick > Run 'yarn install'
* Run > Edit config >
* to run:
** Open the package.json file in the editor
** click run in the gutter next to the script
** choose Run <script_name> or Debug <script_name> on the context menu.

Latest revision as of 13:51, 2 April 2018

Yarn is an alternative to npm.

Create yarn project in Intellij

  • if you load an existing yarn project, intellij should set this build type:
    • build type: File > settings > Lang. and FW > Node.js and NPM > package manager > yarn
  • to build: Project navigator > package.json > rclick > Run 'yarn install'
  • to run:
    • Open the package.json file in the editor
    • click run in the gutter next to the script
    • choose Run <script_name> or Debug <script_name> on the context menu.