Skip to content

Commit 7a07de2

Browse files
author
Kewin Polok
committed
Merge branch 'v2'
2 parents e5a2d76 + 9517558 commit 7a07de2

File tree

196 files changed

+11710
-7788
lines changed

Some content is hidden

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

196 files changed

+11710
-7788
lines changed

.editorconfig

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# EditorConfig is awesome: http://EditorConfig.org
2-
3-
# top-most EditorConfig file
41
root = true
52

63
[*]
7-
indent_style = space
8-
tab_width = 4
9-
charset = UTF-8
10-
trim_trailing_whitespace = true
114
insert_final_newline = true
5+
indent_style = space
6+
indent_size = 2

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
dist/

.eslintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"es2020": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:import/errors",
9+
"plugin:import/warnings",
10+
"plugin:import/typescript",
11+
"plugin:@typescript-eslint/eslint-recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:prettier/recommended",
14+
"prettier",
15+
"prettier/@typescript-eslint"
16+
],
17+
"parser": "@typescript-eslint/parser",
18+
"parserOptions": {
19+
"ecmaVersion": 11,
20+
"sourceType": "module"
21+
},
22+
"rules": {
23+
"prettier/prettier": "error",
24+
"sort-keys": "error",
25+
"import/order": [
26+
"error",
27+
{
28+
"newlines-between": "always"
29+
}
30+
],
31+
"import/no-default-export": "error"
32+
}
33+
}

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node.js CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
node-version: [10.x, 12.x, 14.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Install deps and build (with cache)
21+
uses: bahmutov/npm-install@v1
22+
- name: Test package
23+
run: yarn tsdx test

.gitignore

Lines changed: 118 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,118 @@
1-
.idea
2-
node_modules
3-
test/config.dist.js
4-
npm-debug.log
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Next.js build output
80+
.next
81+
out
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and not Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
107+
# Stores VSCode versions used for testing VSCode extensions
108+
.vscode-test
109+
110+
# yarn v2
111+
.yarn/cache
112+
.yarn/unplugged
113+
.yarn/build-state.yml
114+
.yarn/install-state.gz
115+
.pnp.*
116+
117+
# TypeScript build output
118+
dist/

.huskyrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "yarn lint",
4+
"pre-push": "yarn test"
5+
}
6+
}

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,3 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-

Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.PHONY: help
2+
3+
help:
4+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
5+
6+
.DEFAULT_GOAL := help
7+
8+
NODE_ENV ?= development
9+
10+
export NODE_ENV
11+
12+
APP_VOLUME=${PWD}:/app
13+
NODE_IMAGE=node:12.8-alpine
14+
USERID=$(shell id -u)
15+
16+
DOCKER_RUN = docker run \
17+
--volume "${APP_VOLUME}" \
18+
--workdir /app \
19+
--env NODE_ENV \
20+
--user ${USERID}:${USERID} \
21+
--rm \
22+
--tty \
23+
--interactive
24+
25+
DOCKER_RUN_NODE = ${DOCKER_RUN} \
26+
${NODE_IMAGE}
27+
28+
install: ## install dependencies
29+
${DOCKER_RUN_NODE} yarn install
30+
31+
lint: ## scss and js linter
32+
${DOCKER_RUN_NODE} yarn lint
33+
34+
build: ## build
35+
${DOCKER_RUN_NODE} yarn build
36+
37+
build-watch: ## build with watch
38+
${DOCKER_RUN_NODE} yarn start
39+
40+
test: ## run test
41+
${DOCKER_RUN_NODE} yarn test

0 commit comments

Comments
 (0)