-
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.
- Loading branch information
Showing
8 changed files
with
366 additions
and
1,548 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,43 +30,40 @@ | |
"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", | ||
"prepare": "yarn prod", | ||
"release": "release-it" | ||
}, | ||
"dependencies": { | ||
"svg-drawing": "2.0.0-alpha.4" | ||
"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", | ||
|
@@ -79,14 +76,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", | ||
|
@@ -96,9 +89,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", | ||
|
@@ -111,9 +102,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.