Skip to content

Commit 367a974

Browse files
committed
first version
0 parents  commit 367a974

File tree

405 files changed

+39286
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+39286
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/lib

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
plugins: ['@typescript-eslint/eslint-plugin'],
4+
extends: [
5+
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
6+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
7+
],
8+
parserOptions: {
9+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10+
sourceType: 'module', // Allows for the use of imports
11+
},
12+
rules: {
13+
'@typescript-eslint/no-non-null-assertion': 'off',
14+
'@typescript-eslint/interface-name-prefix': 'off',
15+
'@typescript-eslint/camelcase': 'off',
16+
// TODO fix all the warnings
17+
'@typescript-eslint/no-explicit-any': 'off',
18+
},
19+
};

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Auto-detect text vs. binary files and ensure newlines are always LF for
2+
# text files on check-out and check-in.
3+
* text=auto eol=lf
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
To reproduce the behavior:
15+
1. Write the full executed command or script
16+
2. Include the content of any custom preset file.
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Logs**
22+
If applicable, add the full or partial logs to help explain your problem.
23+
24+
**Desktop (please complete the following information):**
25+
- OS: [e.g. MacOs, Ubuntu]
26+
- Tool Version
27+
- Docker Version
28+
- Node Version
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+
22+
**Pull Requests are considered!**

.github/workflows/alpha.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Alpha
2+
on:
3+
push:
4+
branches: [dev]
5+
jobs:
6+
doc:
7+
name: Github Pages Deploy
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: 12.x
14+
registry-url: https://registry.npmjs.org
15+
- run: npm ci
16+
- run: npm run doc
17+
- name: Deploy Docs
18+
uses: JamesIves/github-pages-deploy-action@v4.2.2
19+
with:
20+
branch: gh-pages
21+
folder: ts-docs
22+
alpha:
23+
name: Alpha NPM Deploy
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions/setup-node@v2
28+
with:
29+
node-version: 12.x
30+
registry-url: https://registry.npmjs.org
31+
- run: npm ci
32+
- run: npm pack
33+
- id: version
34+
run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV
35+
- id: newVersion
36+
run: echo "newVersion=${{ env.version }}-alpha-${GITHUB_SHA::7}" >> $GITHUB_ENV
37+
- run: echo "Deploying version ${{ env.newVersion }}"
38+
- run: npm version "${{ env.newVersion }}" --commit-hooks false --git-tag-version false
39+
- run: npm publish --tag alpha
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
on: [push]
3+
jobs:
4+
build:
5+
name: Build, Test, Coverage
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node-version: [12.x, 14.x, 15.x]
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js ${{ matrix.node-version }}
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
registry-url: https://registry.npmjs.org
17+
- run: npm ci
18+
- run: npm pack
19+
- run: npm test
20+
- name: Coveralls
21+
uses: coverallsapp/github-action@master
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
lint:
25+
name: Lint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-node@v2
30+
with:
31+
node-version: 12.x
32+
registry-url: https://registry.npmjs.org
33+
- run: npm ci
34+
- run: npm run lint

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
publish:
6+
name: NPM Publish
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: 12.x
14+
registry-url: https://registry.npmjs.org
15+
- run: npm ci
16+
- id: version
17+
run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV
18+
- run: echo "Deploying version ${{ env.version }}"
19+
- run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
tag:
23+
name: Tag and Release
24+
needs: publish
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Get current date
29+
id: date
30+
run: echo "::set-output name=date::$(date +'%^b-%d-%Y')"
31+
- id: version
32+
run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV
33+
- uses: 'marvinpinto/action-automatic-releases@latest'
34+
name: Create tag and release
35+
with:
36+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
37+
automatic_release_tag: 'v${{ env.version }}'
38+
prerelease: false
39+
draft: true
40+
title: '[${{ env.version }}] - ${{ steps.date.outputs.date }}'
41+
postRelease:
42+
name: Version Upgrade
43+
needs: tag
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v2
48+
- uses: actions/setup-node@v2
49+
with:
50+
node-version: 12.x
51+
registry-url: https://registry.npmjs.org
52+
- run: npm ci
53+
- run: npm version patch -m "Increasing version to %s" --git-tag-version false
54+
- id: newVersion
55+
run: echo "newVersion=$(npm run version --silent)" >> $GITHUB_ENV
56+
- run: echo "Upgraded to version ${{ env.newVersion }}"
57+
- run: npm run oclif-doc
58+
- uses: EndBug/add-and-commit@v7
59+
with:
60+
message: Creating new version ${{ env.newVersion }}

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/.nyc_output
2+
/dist
3+
/lib
4+
/tmp
5+
node_modules
6+
/target/
7+
/.idea/
8+
/logs.log
9+
symbol-*.tgz
10+
/.eslintcache
11+
coverage
12+
/ts-docs/
13+
/oclif.manifest.json
14+
*.iml

0 commit comments

Comments
 (0)