-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update ci and readme * chore: remove coverage
- Loading branch information
Showing
9 changed files
with
77 additions
and
1,172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '12' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ./node_modules | ||
key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
cache-node-modules- | ||
- name: Run ci | ||
run: | | ||
npm install | ||
npm run ci |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,20 +5,37 @@ | |
"main": "build/hierarchy.js", | ||
"browser": "build/hierarchy.js", | ||
"module": "lib/index.js", | ||
"homepage": "https://github.com/antvis/hierarchy", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:antvis/hierarchy.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/antvis/hierarchy/issues" | ||
}, | ||
"keywords": [ | ||
"antv", | ||
"hierarchy" | ||
], | ||
"author": "https://github.com/orgs/antvis/people", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "webpack", | ||
"build-lib": "babel src --out-dir lib", | ||
"ci": "npm run lint && npm run dist", | ||
"compress": "uglifyjs -c -m -o dist/hierarchy.min.js -- build/hierarchy.js", | ||
"demos-web": "node ./demos/app.js --web --port 2045", | ||
"dev": "npm run watch & npm run demos-web", | ||
"dist": "npm run mkdir-dist && npm run build && npm run compress", | ||
"lint": "eslint --ext .html,.js ./", | ||
"lint-fix": "eslint --ext .html,.js --fix ./", | ||
"mkdir-dist": "node ./bin/mkdir-dist.js", | ||
"prepublishOnly": "npm run build-lib && npm run dist", | ||
"screenshot": "node ./bin/screenshot.js", | ||
"start": "npm run dev", | ||
"watch": "webpack --config webpack-dev.config.js", | ||
"win-dev": "node ./bin/win-dev.js" | ||
}, | ||
"pre-commit": { | ||
"run": [ | ||
"lint", | ||
"test" | ||
], | ||
"silent": false | ||
}, | ||
"dependencies": { | ||
"@antv/util": "^2.0.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
|
@@ -32,7 +49,6 @@ | |
"connect": "~3.6.5", | ||
"d3-queue": "~3.0.7", | ||
"debug": "~3.1.0", | ||
"electron": "~2.0.6", | ||
"eslint": "~3.19.0", | ||
"eslint-config-airbnb": "~15.0.1", | ||
"eslint-config-egg": "~4.2.0", | ||
|
@@ -45,41 +61,17 @@ | |
"pre-commit": "~1.2.2", | ||
"serve-static": "~1.13.1", | ||
"shelljs": "~0.7.8", | ||
"torchjs": "~2.0.4", | ||
"uglify-js": "~3.1.10", | ||
"webpack": "~3.10.0" | ||
}, | ||
"scripts": { | ||
"build": "webpack", | ||
"build-lib": "babel src --out-dir lib", | ||
"ci": "npm run lint && npm run test", | ||
"compress": "uglifyjs -c -m -o dist/hierarchy.min.js -- build/hierarchy.js", | ||
"coverage": "npm run coverage-generator && npm run coverage-viewer", | ||
"coverage-generator": "torch --compile --coverage --renderer --recursive test/unit", | ||
"coverage-viewer": "torch-coverage", | ||
"demos": "electron ./demos/app.js", | ||
"demos-web": "node ./demos/app.js --web --port 2045", | ||
"dev": "npm run watch & npm run demos-web", | ||
"dist": "npm run mkdir-dist && npm run build && npm run compress", | ||
"lint": "eslint --ext .html,.js ./", | ||
"lint-fix": "eslint --ext .html,.js --fix ./", | ||
"mkdir-dist": "node ./bin/mkdir-dist.js", | ||
"prepublishOnly": "npm run build-lib && npm run dist", | ||
"screenshot": "node ./bin/screenshot.js", | ||
"start": "npm run dev", | ||
"test": "torch --renderer --recursive ./test/unit", | ||
"test-live": "torch --interactive --watch --recursive ./test/unit", | ||
"watch": "webpack --config webpack-dev.config.js", | ||
"win-dev": "node ./bin/win-dev.js" | ||
"homepage": "https://github.com/antvis/hierarchy", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:antvis/hierarchy.git" | ||
}, | ||
"pre-commit": { | ||
"run": [ | ||
"lint", | ||
"test" | ||
], | ||
"silent": false | ||
"bugs": { | ||
"url": "https://github.com/antvis/hierarchy/issues" | ||
}, | ||
"dependencies": { | ||
"@antv/util": "^2.0.7" | ||
} | ||
"author": "https://github.com/orgs/antvis/people", | ||
"license": "MIT" | ||
} |
Oops, something went wrong.