From 83a5fa13a51d8a1a67a46580a8c3548033eb2109 Mon Sep 17 00:00:00 2001
From: Levi Thomason
$ yarn add {pkg.name}
$ npm install {pkg.name} --save
@@ -131,9 +132,8 @@ const Usage = () => ( provided here.
- $ npm install semantic-ui --save-dev -+
$ yarn add semantic-ui --dev+
$ npm install semantic-ui --save-dev
After building the project with Gulp, you'll need to include the minified CSS file diff --git a/examples/webpack1/.gitignore b/examples/webpack1/.gitignore index c2658d7d1b..bebc926b38 100644 --- a/examples/webpack1/.gitignore +++ b/examples/webpack1/.gitignore @@ -1 +1,2 @@ +.yarn-cache/ node_modules/ diff --git a/examples/webpack1/package.json b/examples/webpack1/package.json index 7c14578887..970c311055 100644 --- a/examples/webpack1/package.json +++ b/examples/webpack1/package.json @@ -4,10 +4,10 @@ "description": "Get started with Semantic UI React and Webpack 1", "main": "index.js", "scripts": { - "analyze": "cross-env ANALYZE_ENV=true npm run build", - "analyze:production": "cross-env ANALYZE_ENV=true npm run build:production", + "analyze": "cross-env ANALYZE_ENV=true yarn build", + "analyze:production": "cross-env ANALYZE_ENV=true yarn build:production", "build": "webpack", - "build:production": "cross-env NODE_ENV=production npm run build" + "build:production": "cross-env NODE_ENV=production yarn build" }, "author": "Alexander Fedyashov ", "license": "MIT", diff --git a/examples/webpack2/.gitignore b/examples/webpack2/.gitignore index c2658d7d1b..bebc926b38 100644 --- a/examples/webpack2/.gitignore +++ b/examples/webpack2/.gitignore @@ -1 +1,2 @@ +.yarn-cache/ node_modules/ diff --git a/examples/webpack2/package.json b/examples/webpack2/package.json index 7fc298dafc..3afdc3dbd1 100644 --- a/examples/webpack2/package.json +++ b/examples/webpack2/package.json @@ -4,10 +4,10 @@ "description": "Get started with Semantic UI React and Webpack 2", "main": "index.js", "scripts": { - "analyze": "cross-env ANALYZE_ENV=true npm run build", - "analyze:production": "cross-env ANALYZE_ENV=true npm run build:production", + "analyze": "cross-env ANALYZE_ENV=true yarn build", + "analyze:production": "cross-env ANALYZE_ENV=true yarn build:production", "build": "webpack", - "build:production": "cross-env NODE_ENV=production npm run build" + "build:production": "cross-env NODE_ENV=production yarn build" }, "author": "Alexander Fedyashov ", "license": "MIT", diff --git a/package.json b/package.json index 5127b8b13e..481480ac1c 100644 --- a/package.json +++ b/package.json @@ -12,36 +12,36 @@ ], "scripts": { "docs": "gulp docs", - "build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:docs", + "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:docs", "prebuild:commonjs": "rimraf dist/commonjs", - "build:commonjs": "cross-env NODE_ENV=build babel src -d dist/commonjs && npm run tsd", + "build:commonjs": "cross-env NODE_ENV=build babel src -d dist/commonjs && yarn tsd", "prebuild:es": "rimraf dist/es", "build:es": "cross-env NODE_ENV=build-es babel src -d dist/es", - "prebuild:docs": "npm run build:docs-toc", + "prebuild:docs": "yarn build:docs-toc", "build:dll": "gulp dll", "build:docs": "gulp build:docs", "build:umd": "cross-env NODE_ENV=build gulp umd", "build:docs-toc": "doctoc ./.github/CONTRIBUTING.md --github --maxlevel 4", "build:docs-cname": "echo react.semantic-ui.com > docs/build/CNAME", - "predeploy:docs": "cross-env NODE_ENV=production npm run build:docs && npm run build:docs-cname", + "predeploy:docs": "cross-env NODE_ENV=production yarn build:docs && yarn build:docs-cname", "deploy:docs": "gh-pages -d docs/build -m 'deploy docs [ci skip]'", "lint": "cross-env NODE_ENV=production eslint .", - "lint:fix": "npm run lint -- --fix", - "prerelease": "npm run lint -s && npm run tsd:lint -s && npm test -s && cross-env NODE_ENV=production npm run build", - "postrelease": "NODE_ENV=production npm run deploy:docs", - "release:major": "npm run prerelease && ta-script npm/release.sh major", - "release:minor": "npm run prerelease && ta-script npm/release.sh minor", - "release:patch": "npm run prerelease && ta-script npm/release.sh patch", - "prestart": "npm run satisfied -s -- --fix", - "start": "npm run docs", + "lint:fix": "yarn lint -- --fix", + "prerelease": "yarn lint && yarn tsd:lint && npm test && cross-env NODE_ENV=production yarn build", + "postrelease": "NODE_ENV=production yarn deploy:docs", + "release:major": "yarn prerelease && ta-script npm/release.sh major", + "release:minor": "yarn prerelease && ta-script npm/release.sh minor", + "release:patch": "yarn prerelease && ta-script npm/release.sh patch", + "prestart": "yarn satisfied -- --fix yarn", + "start": "yarn docs", "satisfied": "satisfied --skip-invalid", - "pretest": "npm run satisfied -s && npm run build:dll", + "pretest": "yarn satisfied && yarn build:dll", "test": "cross-env NODE_ENV=test node -r babel-register ./node_modules/karma/bin/karma start karma.conf.babel.js", - "test:watch": "npm run test --silent -- --no-single-run", + "test:watch": "yarn test -- --no-single-run", "tsd": "gulp tsd", "tsd:lint": "tslint './index.d.ts' './src/**/*.d.ts' './test/typings.d.ts'", - "tsd:lint:fix": "npm run -s tsd:lint -- --fix", - "tsd:test": "npm run tsd && tsc -p ./" + "tsd:lint:fix": "yarn tsd:lint -- --fix", + "tsd:test": "yarn tsd && tsc -p ./" }, "repository": { "type": "git",