Skip to content

Commit

Permalink
[build] use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed Nov 14, 2018
1 parent 3839f65 commit 7851063
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ node_js:
- 10.7

cache:
directories:
- node_modules
- npm: true
- yarn: true

matrix:
fast_finish: true
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"bootstrap": "lerna bootstrap",
"jest": "lerna run test",
"lint": "lerna run lint",
"prepare-release": "git checkout master && git pull --rebase origin master && npm run test",
"release": "npm run prepare-release && lerna publish && lerna run gh-pages",
"test": "lerna bootstrap && npm run lint && npm run jest"
"prepare-release": "git checkout master && git pull --rebase origin master && yarn run test",
"release": "yarn run prepare-release && lerna publish && lerna run gh-pages",
"test": "lerna bootstrap && yarn run lint && yarn run jest"
},
"repository": "https://github.com/williaster/data-ui.git",
"keywords": [
Expand All @@ -26,7 +26,8 @@
"license": "MIT",
"devDependencies": {
"coveralls": "^3.0.0",
"lerna": "^3.0.0"
"lerna": "^3.0.0",
"yarn": "^1.12.3"
},
"engines": {
"node": ">=8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/data-table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ See the <a href="https://williaster.github.io/data-ui" target="_blank">@data-ui/

```
npm install
npm run build
yarn run build
```
8 changes: 4 additions & 4 deletions packages/data-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react --minify",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm --minify",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": "https://github.com/williaster/data-ui",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions packages/data-ui-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --minify",
"build:esm": "beemo babel ./src --out-dir esm/ --esm --minify",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"jest": "beemo jest --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\"",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": "https://github.com/williaster/data-ui.git",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"gh-pages:clean": "rm -rf _gh-pages && lerna run dev:nowatch",
"gh-pages:build": "build-storybook -o _gh-pages -c ./storybook-config -s ../../assets/",
"gh-pages:publish": "git-directory-deploy --directory _gh-pages",
"gh-pages": "npm run gh-pages:clean && npm run gh-pages:build && npm run gh-pages:publish && npm run gh-pages:clean",
"gh-pages": "yarn run gh-pages:clean && yarn run gh-pages:build && yarn run gh-pages:publish && yarn run gh-pages:clean",
"dev": "start-storybook -p 9001 -c ./storybook-config -s ../../assets/",
"test": "echo no tests in @data-ui/demo",
"eslint": "beemo eslint \"./examples/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"lint": "beemo create-config prettier && yarn run eslint",
"prettier": "beemo prettier \"./examples/**/*.{js,jsx,json,md}\""
},
"repository": "https://github.com/williaster/data-ui.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/event-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"build": "webpack -p",
"dev": "webpack --progress --colors --watch",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"lint": "beemo create-config prettier && yarn run eslint",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build",
"prepublish": "yarn run build",
"test": "jest --colors --verbose --coverage"
},
"repository": "https://github.com/williaster/data-ui.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ demo at <a href="https://williaster.github.io/data-ui" target="_blank">williaste
## Development
```shell
npm install
npm run dev # or 'prod'
yarn run dev # or 'prod'
```
6 changes: 3 additions & 3 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "A package of form elements for data-rich UIs. https://williaster.github.io/data-ui",
"main": "build/index.js",
"scripts": {
"build": "webpack -p && npm run copy-styles",
"build": "webpack -p && yarn run copy-styles",
"copy-styles": "cp ./node_modules/react-select/dist/react-select.min.css ./build/react-select.min.css",
"dev": "webpack --progress --colors --watch",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"lint": "beemo create-config prettier && yarn run eslint",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build",
"prepublish": "yarn run build",
"test": "jest --colors --verbose --coverage"
},
"repository": "https://github.com/williaster/data-ui",
Expand Down
2 changes: 1 addition & 1 deletion packages/histogram/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,5 @@ export const themeShape = PropTypes.shape({
## Development
```
npm install
npm run dev # or 'build'
yarn run dev # or 'build'
```
8 changes: 4 additions & 4 deletions packages/histogram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"dev": "beemo babel --watch ./src --out-dir esm/ --react --esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react --minify",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm --minify",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions packages/radial-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react --minify",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm --minify",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": "https://github.com/williaster/data-ui",
"keywords": [
Expand Down
10 changes: 5 additions & 5 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react --minify",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm --minify",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,7 +49,7 @@
"react-dom": "^15.0.0-0 || ^16.0.0-0"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.1.5",
"@data-ui/theme": "^0.0.69",
"@vx/event": "^0.0.165",
"@vx/group": "^0.0.165",
Expand Down
35 changes: 18 additions & 17 deletions packages/sparkline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"dev": "beemo babel --watch ./src --out-dir esm/ --react --esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -51,20 +51,21 @@
"react-dom": "^15.0.0-0 || ^16.0.0-0"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"@babel/runtime": "^7.1.5",
"@data-ui/shared": "^0.0.69",
"@data-ui/theme": "0.0.8",
"@vx/axis": "0.0.140",
"@vx/curve": "0.0.140",
"@vx/event": "0.0.143",
"@vx/glyph": "0.0.140",
"@vx/gradient": "0.0.140",
"@vx/group": "0.0.140",
"@vx/pattern": "0.0.140",
"@vx/point": "0.0.136",
"@vx/responsive": "0.0.140",
"@vx/scale": "0.0.140",
"@vx/shape": "0.0.140",
"@data-ui/theme": "^0.0.8",
"@vx/axis": "^0.0.179",
"@vx/curve": "^0.0.165",
"@vx/event": "^0.0.179",
"@vx/glyph": "^0.0.179",
"@vx/gradient": "^0.0.165",
"@vx/group": "^0.0.170",
"@vx/pattern": "^0.0.179",
"@vx/point": "^0.0.165",
"@vx/responsive": "^0.0.179",
"@vx/scale": "^0.0.179",
"@vx/shape": "^0.0.179",
"@vx/text": "^0.0.179",
"d3-array": "^1.2.0",
"prop-types": "^15.5.10"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/xy-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,5 @@ See the storybook for example usage!

```
npm install
npm run dev # or 'build'
yarn run dev # or 'build'
```
8 changes: 4 additions & 4 deletions packages/xy-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"scripts": {
"build:cjs": "beemo babel ./src --out-dir lib/ --react",
"build:esm": "beemo babel ./src --out-dir esm/ --react --esm",
"build": "npm run build:cjs && npm run build:esm",
"build": "yarn run build:cjs && yarn run build:esm",
"dev": "beemo babel --watch ./src --out-dir esm/ --react --esm",
"jest": "beemo jest --react --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\" --fix",
"lint": "beemo create-config prettier && npm run eslint",
"test": "npm run jest",
"lint": "beemo create-config prettier && yarn run eslint",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"prepublish": "npm run build"
"prepublish": "yarn run build"
},
"repository": "https://github.com/williaster/data-ui",
"keywords": [
Expand Down

0 comments on commit 7851063

Please sign in to comment.