Skip to content

Commit

Permalink
chore: update ci and readme (#23)
Browse files Browse the repository at this point in the history
* chore: update ci and readme

* chore: remove coverage
  • Loading branch information
hustcc authored Sep 28, 2023
1 parent 3109434 commit 0e9e4dd
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 1,172 deletions.
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

19 changes: 0 additions & 19 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/build.yml
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/checkout@v2.3.4

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
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
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# hierarchy
<h1 align="center">
<b>@antv/hierarchy</b>
</h1>

> Layout algorithms for visualizing hierarchical data.
[![Build Status](https://github.com/antvis/hierarchy/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/hierarchy/actions)
[![npm Version](https://img.shields.io/npm/v/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)
[![npm Download](https://img.shields.io/npm/dm/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)
[![npm License](https://img.shields.io/npm/l/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)

layout algorithms for visualizing hierarchical data.

## API

Expand Down
78 changes: 35 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "git@github.com: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",
Expand All @@ -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",
Expand All @@ -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": "git@github.com: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"
}
Loading

0 comments on commit 0e9e4dd

Please sign in to comment.