forked from GregRos/parjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GregRos#60 from sp3ctum/feature/project-maintenance
Various project maintenance related improvements
- Loading branch information
Showing
22 changed files
with
301 additions
and
260 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
name: Node.js CI | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: npm | ||
registry-url: https://registry.npmjs.org | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run lint:check | ||
- run: npm test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
cache: npm | ||
registry-url: https://registry.npmjs.org | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run lint:check | ||
- run: npm test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,56 +1,56 @@ | ||
name: Node.js CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build_deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: npm | ||
registry-url: https://registry.npmjs.org | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run lint:check | ||
- run: npm test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: node_modules/.bin/typedoc --out docs | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'docs' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
- name: publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
build_deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
cache: npm | ||
registry-url: https://registry.npmjs.org | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run lint:check | ||
- run: npm test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: node_modules/.bin/typedoc --out docs | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: "docs" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
- name: publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
instrumentation: | ||
root: . | ||
extensions: | ||
- .js | ||
default-excludes: true | ||
excludes: | ||
- "**/*.no-cover.js" | ||
- "**/test/**" #no need to instrument this test code! Things references by it remain covered. | ||
- "**/functions/**" #many indicators are not utilized so let's ignore them. | ||
- "**/implementation/issues.js" #contains things like exception throws, not executable code | ||
- "**/basics/result.js" #should not be instrumented | ||
- ".obsidian/**" #not executable code | ||
- ".github/**" #not executable code | ||
root: . | ||
extensions: | ||
- .js | ||
default-excludes: true | ||
excludes: | ||
- "**/*.no-cover.js" | ||
- "**/test/**" #no need to instrument this test code! Things references by it remain covered. | ||
- "**/functions/**" #many indicators are not utilized so let's ignore them. | ||
- "**/implementation/issues.js" #contains things like exception throws, not executable code | ||
- "**/basics/result.js" #should not be instrumented | ||
- ".obsidian/**" #not executable code | ||
- ".github/**" #not executable code |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,16 @@ | ||
# Development instructions | ||
|
||
This project is using [Yarn](https://yarnpkg.com/) as a package manager. The recommendation is to install the latest version of Yarn globally on your system. The version of yarn used for development is specified in the package.json file. The latest versions of yarn will choose the correct version to use automatically. | ||
|
||
Common development commands: | ||
|
||
```sh | ||
# install dependencies | ||
yarn | ||
|
||
# build (must be done before testing) | ||
yarn build | ||
|
||
# test (remember to build first to make sure the code is up to date) | ||
yarn build && yarn test | ||
``` |
Oops, something went wrong.