Skip to content

Commit 03ef450

Browse files
committed
0 parents  commit 03ef450

20 files changed

+21766
-0
lines changed

.babelrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["jaid"]
3+
}

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends browserslist-config-jaid-node

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = false
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.txt]
15+
trim_trailing_whitespace = false
16+
17+
[*.hbs]
18+
trim_trailing_whitespace = false
19+
20+
[/package.json]
21+
insert_final_newline = true # npm install rewrites the JSON file with a final newline, so we manually keep them to prevent unneeded stashes

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist/
2+
/node_modules/
3+
/test/fixtures/
4+
/build/
5+
/readme/*.js

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: "jaid"
3+
}

.github/funding.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: Jaid
2+
custom: https://twitch.tv/products/jaidchen

.github/workflows/publishPackage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Node package
2+
on:
3+
push:
4+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: actions/checkout
10+
uses: actions/checkout@v2.0.0
11+
- name: actions/setup-node
12+
uses: actions/setup-node@v1.4.1
13+
with:
14+
node-version: "13.9.0"
15+
- name: npm install
16+
uses: jaid/action-npm-install@master
17+
with:
18+
githubToken: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Jest
20+
uses: jaid/action-jest@master
21+
with:
22+
githubToken: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Publish
24+
uses: jaid/action-publish@master
25+
with:
26+
githubToken: ${{ secrets.packagesToken }}
27+
npmPrepareScript: build:prod
28+
publishDirectory: dist/package/production
29+
npmToken: ${{ secrets.npmToken }}

.github/workflows/validate.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Validate and autofix
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: actions/checkout
10+
uses: actions/checkout@v2.0.0
11+
- name: actions/setup-node
12+
uses: actions/setup-node@v1.4.1
13+
with:
14+
node-version: "13.9.0"
15+
- name: npm install
16+
uses: jaid/action-npm-install@master
17+
- name: Jest
18+
uses: jaid/action-jest@master
19+
with:
20+
githubToken: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Uptodater
22+
uses: jaid/action-uptodater@master
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
fix: "true"
26+
approve: "true"

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# dotenv
2+
.env
3+
4+
# Node packages
5+
node_modules
6+
7+
# npm
8+
package-lock.json
9+
!/package-lock.json
10+
npm-debug.log
11+
npm-debug.log.*
12+
.npmrc
13+
/report.*.json
14+
15+
# pnpm
16+
shrinkwrap.yaml
17+
!/shrinkwrap.yaml
18+
pnpm-debug.log
19+
20+
# Yarn
21+
yarn.lock
22+
!/yarn.lock
23+
yarn-error.log
24+
25+
# Generated or temporary content
26+
dist
27+
temp
28+
29+
# IDEs
30+
/.vscode/
31+
/.idea/

jest.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
testEnvironment: "node",
3+
coverageDirectory: "<rootDir>/dist/jest/coverage",
4+
collectCoverageFrom: [
5+
"<rootDir>/dist/package/development/**",
6+
"!<rootDir>/node_modules/",
7+
],
8+
coverageReporters: [
9+
"text-summary",
10+
"html",
11+
],
12+
testPathIgnorePatterns: [
13+
"<rootDir>/node_modules/",
14+
"<rootDir>/dist/",
15+
],
16+
moduleNameMapper: {
17+
"^root": "<rootDir>",
18+
"^src": "<rootDir>/src",
19+
"^lib": "<rootDir>/src/lib",
20+
},
21+
}

0 commit comments

Comments
 (0)