Yarn: Difference between revisions
Jump to navigation
Jump to search
(54 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
|} | |} | ||
==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 | |||
<source lang="bash" highlight="4"> | |||
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 | |||
</source> | |||
<source lang="bash" highlight="3"> | |||
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 | |||
</source> | |||
==ReactJS== | |||
zip -r reactjs_20211010_1010.zip reactjs -x '**/node_modules/*' -x '**/dist/*' | |||
yarn upgrade | |||
yarn install | |||
yarn start | |||
==Knowledge== | ==Knowledge== | ||
Line 41: | Line 72: | ||
yarn config list | yarn config list | ||
yarn config edit | yarn config edit | ||
rm -rf ~/.yarn* | |||
'''current & active version''' | |||
yarn set version berry | |||
|- | |- | ||
| valign="top" colspan="2"| | | valign="top" colspan="2"| | ||
Line 46: | Line 81: | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
npm install --global yarn | |||
yarn list -g --depth 0 | yarn list -g --depth 0 | ||
node -v | node -v | ||
Line 52: | Line 87: | ||
| valign="top" | | | valign="top" | | ||
yarn cache clean - | yarn cache clean --all && yarn global add n && n stable | ||
yarn | yarn global add npm | ||
yarn upgrade -g | yarn upgrade -g | ||
yarn update -g | yarn update -g | ||
|- | |||
| valign="top" colspan="2"| | |||
---- | |||
|- | |||
| valign="top"| | |||
yarn global add serve | |||
serve -s build | |||
| valign="top"| | |||
sudo snap install serve | |||
serve -d build | |||
|} | |} | ||
Line 62: | Line 109: | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
* [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://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://classic.yarnpkg.com/en/docs/cli/upgrade/ <code>yarn upgrade</code>] | |||
* [https://classic.yarnpkg.com/en/docs/cli/remove/ <code>yarn remove</code>] | |||
* [https://yarnpkg.com/cli/config <code>yarn config</code>] | |||
* [[Angular:4|Angular]] | |||
* [[NPM]] | |||
| valign="top" | | |||
* [https://codeburst.io/javascript-wtf-is-es6-es8-es-2017-ecmascript-dca859e4821c ES5(2009) vs. ES6(2015) vs. ES7(20216) vs. ES8(2017)] | |||
* [https://askubuntu.com/questions/371579/ Exclude directories and file zipping a directory] | |||
* [https://stackoverflow.com/questions/42461279/ Deploy a React App on Apache Web Server] | |||
* [[Develop GitHub Pages Site Locally by Jekyll]] | |||
* [https://medium.com/jeremy-gottfrieds-tech-blog/tutorial-how-to-deploy-a-production-react-app-to-heroku-c4831dfcfa08 Deploy a Production React app to Heroku] | |||
* [https://jsramblings.com/how-to-upgrade-a-yarn-package-to-the-latest-version/ Upgrade a yarn package to the latest] | * [https://jsramblings.com/how-to-upgrade-a-yarn-package-to-the-latest-version/ Upgrade a yarn package to the latest] | ||
* [[ | * [https://snapcraft.io/serve <code>snap install serve</code>] | ||
* [https://classic.yarnpkg.com/en/docs/install Yarn Installation] | |||
* [https://angular.io/cli/build Angular Build] | |||
* [[VSCode]] | |||
| valign="top" | | |||
* [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://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>] | |||
* [[Google Closure Compiler]] | |||
* [[JSON Schema Validation]] | |||
* [https://yarnpkg.com/getting-started Yarn 2 Getting Started] | |||
* [https://classic.yarnpkg.com/en/docs/cli/install <code>yarn install</code>] | |||
* [https://www.npmjs.com/package/yarn?activeTab=versions Yarn Versions] | |||
* [[Rhino]] | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [https://classic.yarnpkg.com/lang/en/docs/cli/self-update/ yarn self-update] | |||
| valign="top" | | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [[React Native]] | |||
* [[PrimeFaces]] | |||
* [[JavaScript]] | |||
* [[Angular:4]] | |||
* [[ReactJS]] | |||
* [[ExtJS]] | |||
| valign="top" | | |||
| valign="top" | | |||
| valign="top" | | | valign="top" | | ||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [[CocoaPods]] | |||
* [[Maven]] | |||
* [[Conan]] | |||
* [[Bazel]] | |||
* [[NPM]] | |||
* [[Ant]] | |||
* [[Ivy]] | |||
| valign="top" | | | valign="top" | | ||
| valign="top" | | |||
|} | |} |
Latest revision as of 20:58, 18 January 2024
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 rm -rf ~/.yarn* current & active version yarn set version berry | |
| |
npm install --global yarn yarn list -g --depth 0 node -v yarn -v |
yarn cache clean --all && yarn global add n && n stable yarn global add npm yarn upgrade -g yarn update -g |
| |
yarn global add serve serve -s build |
sudo snap install serve serve -d build |