Skip to content

Commit c445448

Browse files
committed
0 parents  commit c445448

19 files changed

+19393
-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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
[/package.json]
12+
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
test/fixtures/

.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/[email protected]
11+
- name: actions/setup-node
12+
uses: actions/[email protected]
13+
with:
14+
node-version: "12.13.1"
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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Validate and autofix
2+
on:
3+
push:
4+
branches: [master]
5+
schedule:
6+
- cron: 0 0 * * 1 # Every monday
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: actions/checkout
12+
uses: actions/[email protected]
13+
- name: actions/setup-node
14+
uses: actions/[email protected]
15+
with:
16+
node-version: "12.13.1"
17+
- name: npm install
18+
uses: jaid/action-npm-install@master
19+
- name: Jest
20+
uses: jaid/action-jest@master
21+
with:
22+
githubToken: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Uptodater
24+
uses: jaid/action-uptodater@master
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
fix: "true"
28+
approve: "true"
29+
- name: Build readme
30+
uses: jaid/action-readme@master
31+
with:
32+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
testEnvironment: "node",
3+
coverageDirectory: "dist/jest/coverage",
4+
collectCoverageFrom: ["src/**"],
5+
testPathIgnorePatterns: [
6+
"/node_modules/",
7+
"/dist/",
8+
],
9+
moduleNameMapper: {
10+
"^root": "<rootDir>",
11+
"^src": "<rootDir>/src",
12+
"^lib": "<rootDir>/src/lib",
13+
},
14+
}

0 commit comments

Comments
 (0)