Yarn

From Bitpost wiki
Revision as of 13:51, 2 April 2018 by M (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.