-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from kmkzt/release/v2
- Loading branch information
Showing
8 changed files
with
377 additions
and
1,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.13.0] | ||
|
||
steps: | ||
- name: Begin CI... | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Use cached node_modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
nodeModules- | ||
- name: Install dependencies | ||
# TODO: add check yarn.lock | ||
# run: yarn install --frozen-lockfile | ||
run: yarn install | ||
env: | ||
CI: true | ||
|
||
- name: Lint | ||
run: yarn lint | ||
env: | ||
CI: true | ||
|
||
- name: Test | ||
run: yarn test | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
"name": "react-hooks-svgdrawing", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
"description": "react svg drawing library.", | ||
"description": "React svg drawing library. This library is a React extension of svg-drawing.", | ||
"author": "kmkzt<[email protected]>", | ||
"keywords": [ | ||
"react", | ||
"svg", | ||
"drawing", | ||
"two.js" | ||
"svg-drawing" | ||
], | ||
"type": "module", | ||
"types": "lib/index.d.ts", | ||
|
@@ -30,49 +30,45 @@ | |
"email": "[email protected]" | ||
}, | ||
"scripts": { | ||
"dev": "NODE_ENV=development webpack-dev-server", | ||
"prod": "npm-run-all lib:*", | ||
"lib:clear": "rimraf lib/*", | ||
"lib:rollup": "NODE_ENV=production rollup -c", | ||
"lib:tsc": "NODE_ENV=production tsc --emitDeclarationOnly", | ||
"demo:dev": "NODE_ENV=development webpack-dev-server", | ||
"demo:prod": "NODE_ENV=production webpack -p", | ||
"test": "NODE_ENV=test jest --passWithNoTests", | ||
"test": "npm-run-all test:*", | ||
"test:unit": "NODE_ENV=test jest --passWithNoTests", | ||
"test:type": "NODE_ENV=production tsc --noEmit", | ||
"lint": "eslint ./src --ext .js,.ts,.tsx", | ||
"prepare": "yarn prod", | ||
"release": "release-it" | ||
}, | ||
"dependencies": { | ||
"svg-drawing": "1.8.6", | ||
"two.js": "0.7.0-beta.3" | ||
"svg-drawing": "2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.9.6", | ||
"@babel/plugin-transform-runtime": "7.9.6", | ||
"@babel/polyfill": "7.8.7", | ||
"@babel/preset-env": "7.9.6", | ||
"@babel/preset-react": "7.9.4", | ||
"@babel/preset-typescript": "7.9.0", | ||
"@rollup/plugin-commonjs": "11.0.2", | ||
"@rollup/plugin-json": "4.0.2", | ||
"@rollup/plugin-node-resolve": "7.1.1", | ||
"@rollup/plugin-replace": "2.3.1", | ||
"@types/autoprefixer": "9.6.1", | ||
"@types/babel-core": "6.25.6", | ||
"@types/babel__core": "7.1.2", | ||
"@types/dotenv-webpack": "1.7.0", | ||
"@types/eslint": "6.8.0", | ||
"@types/eslint-plugin-prettier": "3.1.0", | ||
"@types/html-webpack-plugin": "3.2.1", | ||
"@types/jest": "24.0.18", | ||
"@types/node": "12.7.3", | ||
"@types/node-sass": "4.11.0", | ||
"@types/prettier": "1.18.2", | ||
"@types/react": "16.9.2", | ||
"@types/react-dom": "16.9.0", | ||
"@types/rimraf": "2.0.2", | ||
"@types/two.js": "0.7.2", | ||
"@types/uglifyjs-webpack-plugin": "1.1.0", | ||
"@types/webpack": "4.39.1", | ||
"@types/webpack-dev-server": "3.1.7", | ||
|
@@ -81,14 +77,10 @@ | |
"@typescript-eslint/eslint-plugin": "2.31.0", | ||
"@typescript-eslint/parser": "2.31.0", | ||
"@typescript-eslint/typescript-estree": "2.31.0", | ||
"autoprefixer": "9.6.1", | ||
"babel-core": "6.26.3", | ||
"babel-jest": "24.9.0", | ||
"babel-loader": "8.0.6", | ||
"babel-plugin-add-module-exports": "1.0.2", | ||
"babel-plugin-transform-react-remove-prop-types": "0.4.24", | ||
"babel-preset-es2015": "6.24.1", | ||
"css-loader": "3.2.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-loader": "4.0.2", | ||
|
@@ -98,9 +90,7 @@ | |
"html-loader": "0.5.5", | ||
"html-webpack-plugin": "3.2.0", | ||
"jest": "24.9.0", | ||
"node-sass": "4.12.0", | ||
"npm-run-all": "4.1.5", | ||
"postcss-loader": "3.0.0", | ||
"pressure": "2.1.2", | ||
"prettier": "1.18.2", | ||
"react": "16.9.0", | ||
|
@@ -113,9 +103,6 @@ | |
"rollup-plugin-size-snapshot": "0.11.0", | ||
"rollup-plugin-sourcemaps": "0.5.0", | ||
"rollup-plugin-terser": "5.2.0", | ||
"sass-loader": "8.0.0", | ||
"style-loader": "1.0.0", | ||
"ts-jest": "24.0.2", | ||
"ts-loader": "6.0.4", | ||
"tsconfig-paths-webpack-plugin": "3.2.0", | ||
"typescript": "3.6.2", | ||
|
Oops, something went wrong.