Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ci and readme #23

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[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
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": "[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",
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": "[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"
}
Loading
Loading