Skip to content

Commit ef045c9

Browse files
committed
feat(module): first commit
0 parents  commit ef045c9

File tree

99 files changed

+13023
-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.

99 files changed

+13023
-0
lines changed

.editorconfig

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

.eslintignore

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

.eslintrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"standard",
5+
"standard-react",
6+
"plugin:prettier/recommended",
7+
"prettier/standard",
8+
"prettier/react"
9+
],
10+
"env": {
11+
"node": true
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2020,
15+
"ecmaFeatures": {
16+
"legacyDecorators": true,
17+
"jsx": true
18+
},
19+
"babelOptions": {
20+
"parserOpts": {
21+
"plugins": [
22+
"importAssertions"
23+
]
24+
}
25+
}
26+
},
27+
"settings": {
28+
"react": {
29+
"version": "16"
30+
}
31+
},
32+
"rules": {
33+
"space-before-function-paren": 0,
34+
"react/prop-types": 0,
35+
"react/jsx-handler-names": 0,
36+
"react/jsx-fragments": 0,
37+
"react/no-unused-prop-types": 0,
38+
"import/export": 0
39+
}
40+
}

.github/workflows/release.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# https://github.com/parse-community/parse-server/blob/alpha/.github/workflows/ci.yml
2+
3+
name: Release
4+
5+
on:
6+
push:
7+
branches: [ main, next, next-major, beta, alpha, 'release-[0-9]+.x.x', release ]
8+
pull_request:
9+
branches: '*'
10+
paths-ignore:
11+
- '**/**.md'
12+
13+
jobs:
14+
check-code-analysis:
15+
name: Code Analysis 👀
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'javascript' ]
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v2
30+
with:
31+
languages: ${{ matrix.language }}
32+
source-root: src
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v2
35+
36+
check-lock-file-version:
37+
name: Check Yarn Lock File Version 🔒
38+
timeout-minutes: 5
39+
runs-on: ubuntu-latest
40+
needs: [check-code-analysis]
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Check JS Lockfile
44+
uses: ChromaticHQ/javascript-lockfile-check-action@v1.1.0
45+
with:
46+
package-manager: yarn
47+
# working-directory: web/themes/custom/my-custom-theme
48+
49+
quality:
50+
name: Quality 🐳
51+
runs-on: ${{ matrix.os }}
52+
needs: [check-code-analysis,check-lock-file-version]
53+
strategy:
54+
matrix:
55+
# node-version: [10.x, 12.x, 14.x, 15.x]
56+
node-version: [16.x]
57+
# os: [ubuntu-latest, windows-latest]
58+
os: [ubuntu-latest]
59+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v3
63+
- uses: mskelton/setup-yarn@v1
64+
- name: Install dependencies
65+
run: yarn --frozen-lockfile
66+
# - run: yarn test
67+
68+
publish:
69+
name: Publish 🚀
70+
runs-on: ubuntu-latest
71+
# if: ${{ github.ref == 'refs/heads/main' }}
72+
needs: [quality,check-code-analysis,check-lock-file-version]
73+
permissions:
74+
contents: write # to be able to publish a GitHub release
75+
issues: write # to be able to comment on released issues
76+
pull-requests: write # to be able to comment on released pull requests
77+
id-token: write # to enable use of OIDC for npm provenance
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v3
81+
with:
82+
fetch-depth: 0
83+
- name: Setup yarn
84+
uses: mskelton/setup-yarn@v1
85+
- name: Install dependencies
86+
run: yarn --frozen-lockfile
87+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
88+
run: npm audit signatures
89+
- name: Release
90+
run: yarn semantic-release
91+
env:
92+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sizelimit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Size limit"
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
size:
8+
runs-on: ubuntu-latest
9+
env:
10+
CI_JOB_NUMBER: 1
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: andresz1/size-limit-action@v1
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
*.pem
17+
18+
# debug
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
package.dist.json
23+
.npmrc
24+
dist
25+
_archive

.npmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
*.pem
17+
18+
# debug
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
.npmrc

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"singleQuote": true,
3+
"jsxSingleQuote": true,
4+
"semi": false,
5+
"tabWidth": 2,
6+
"bracketSpacing": true,
7+
"jsxBracketSameLine": false,
8+
"arrowParens": "always",
9+
"trailingComma": "none"
10+
}

.releaserc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
4+
"main",
5+
"next",
6+
"next-major",
7+
{
8+
"name": "beta",
9+
"prerelease": true
10+
},
11+
{
12+
"name": "alpha",
13+
"prerelease": true
14+
}
15+
]
16+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#0F332B",
4+
"titleBar.activeBackground": "#15483C",
5+
"titleBar.activeForeground": "#F5FCFB"
6+
}
7+
}

0 commit comments

Comments
 (0)