Yarn: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 85: Line 85:
* [https://yarnpkg.com/package/@fullcalendar/angular <code>yarn add @fullcalendar/angular</code>]
* [https://yarnpkg.com/package/@fullcalendar/angular <code>yarn add @fullcalendar/angular</code>]
* [https://yarnpkg.com/package/jquery.flot.tooltip <code>yarn add jquery.flot.tooltip</code>]
* [https://yarnpkg.com/package/jquery.flot.tooltip <code>yarn add jquery.flot.tooltip</code>]
* [https://jsramblings.com/how-to-upgrade-a-yarn-package-to-the-latest-version/ Upgrade a yarn package to the latest]
* [https://classic.yarnpkg.com/en/docs/getting-started Yarn Getting Started]
* [https://classic.yarnpkg.com/en/docs/getting-started Yarn Getting Started]
* [https://yarnpkg.com/cli/cache/clean <code>yarn cache clean</code>]
* [https://yarnpkg.com/package/flot <code>yarn add flot</code>]
* [https://yarnpkg.com/package/flot <code>yarn add flot</code>]
* [https://classic.yarnpkg.com/en/docs/cli/upgrade/ <code>yarn upgrade</code>]
* [https://classic.yarnpkg.com/en/docs/cli/upgrade/ <code>yarn upgrade</code>]
* [https://classic.yarnpkg.com/en/docs/cli/remove/ <code>yarn remove</code>]
* [https://classic.yarnpkg.com/en/docs/cli/remove/ <code>yarn remove</code>]
* [https://classic.yarnpkg.com/en/docs/install Yarn Installation]
* [https://yarnpkg.com/cli/config <code>yarn config</code>]
* [[Angular:4|Angular]]
* [[Angular:4|Angular]]
* [[NPM]]
* [[NPM]]
Line 96: Line 96:
| valign="top" |
| valign="top" |
* [https://askubuntu.com/questions/371579/ Exclude directories and file zipping a directory]
* [https://askubuntu.com/questions/371579/ Exclude directories and file zipping a directory]
* [https://jsramblings.com/how-to-upgrade-a-yarn-package-to-the-latest-version/ Upgrade a yarn package to the latest]
* [https://classic.yarnpkg.com/en/docs/install Yarn Installation]


| valign="top" |
| valign="top" |


|}
|}

Revision as of 06:43, 29 September 2021

yarn install <git-host>:<git-user>/<repo-name>
yarn install <alias>@npm:<name>
yarn install <git repo url>
yarn install <tarball file>
yarn install <tarball url>
yarn install <folder>
yarn install [<@scope>/]<name>@<version range>
yarn install [<@scope>/]<name>@<version>
yarn install [<@scope>/]<name>@<tag>
yarn install [<@scope>/]<name>

yarn install

aliases: yarn i, yarn add
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]

Angular

zip -r angular_20211010_1010.zip angular -x '**/node_modules/*' -x '**/dist/*'
yarn install -g @angular/cli
ng serve --open
yarn install
yarn upgrade

ReactJS

zip -r reactjs_20211010_1010.zip reactjs -x '**/node_modules/*' -x '**/dist/*'
yarn upgrade
yarn install
yarn start

Knowledge

yarn config set key=value [key=value...]
yarn config delete key [key ...]
yarn config get [key ...]
yarn config list
yarn config edit

npm install yarn@latest -g
yarn list -g --depth 0
node -v
yarn -v
yarn cache clean -f && yarn install -g n && n stable
yarn install -g npm
yarn upgrade -g
yarn update -g

yarn install -g serve
serve -s build

References