Skip to content

Commit eb93d4e

Browse files
author
Michael Recachinas
committed
Update config and rc files
1 parent 6a2acbb commit eb93d4e

File tree

8 files changed

+3183
-3543
lines changed

8 files changed

+3183
-3543
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
doc/*
2+
/**/*.d.ts

.eslintrc

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/docgen.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Deploy Docs
2+
on: [push]
3+
jobs:
4+
build-and-deploy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout 🛎️
8+
uses: actions/checkout@v2
9+
with:
10+
persist-credentials: false
11+
12+
- name: Install and Build 🔧
13+
run: |
14+
npm install
15+
npm run generate-docs
16+
ln -s ./doc/react-sigplot/latest
17+
- name: Set doc version
18+
id: vars
19+
run: echo ::set-output name=doc_version::$(grep '"version"' package.json | cut -d '"' -f 4)
20+
- name: Deploy 🚀
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./doc/sigfile/${{ steps.vars.outputs.doc_version }}

.github/workflows/npm_publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm test
20+
publish-npm:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
registry-url: https://registry.npmjs.org/
29+
- run: npm ci
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
doc/
2+
13
.idea/
24
dist/
35

.jsdoc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"tags": {
3+
"allowUnknownTags": true,
4+
"dictionaries": ["jsdoc"]
5+
},
6+
"source": {
7+
"include": ["src", "package.json", "README.md"],
8+
"includePattern": ".js$",
9+
"excludePattern": "(node_modules/|doc)"
10+
},
11+
"plugins": ["plugins/markdown"],
12+
"opts": {
13+
"destination": "./doc",
14+
"encoding": "utf8",
15+
"private": true,
16+
"recurse": true,
17+
"template": "./node_modules/minami"
18+
}
19+
}

0 commit comments

Comments
 (0)