Yarn: Difference between revisions
Jump to navigation
Jump to search
Line 134: | Line 134: | ||
* [https://medium.com/@hardikkumar.ce/build-java-script-standalone-library-with-typescript-691e4a6acd9 Build Java Script Standalone Library With Typescript] | * [https://medium.com/@hardikkumar.ce/build-java-script-standalone-library-with-typescript-691e4a6acd9 Build Java Script Standalone Library With Typescript] | ||
* [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-the-yarn-package-manager-for-node-js Install & Use the Yarn Package Manager] | * [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-the-yarn-package-manager-for-node-js Install & Use the Yarn Package Manager] | ||
* [https://stackoverflow.com/questions/39634954/ <code>nvm</code> uninstall node version manually] | |||
* [https://packages.debian.org/sid/golang-golang-x-tools <code>golang-golang-x-tools</code>] | * [https://packages.debian.org/sid/golang-golang-x-tools <code>golang-golang-x-tools</code>] | ||
* [[Google Closure Compiler]] | * [[Google Closure Compiler]] |
Revision as of 02:56, 7 March 2023
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 --port 4300 ng serve --open yarn install yarn upgrade
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk=false --named-chunks=false --common-chunk=false
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk=false --named-chunks=false --common-chunk=true
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk=false --named-chunks=false
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk=false
ng build --aot --build-optimizer --output-hashing=none
ng build --aot --build-optimizer
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk --named-chunks --common-chunk
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk --named-chunks
ng build --aot --build-optimizer --output-hashing=none --vendor-chunk
ng build --aot --build-optimizer --output-hashing=none
ng build --aot --build-optimizer
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 current & active version yarn set version berry | |
| |
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 global add serve serve -s build |
sudo snap install serve serve -d build |