File tree Expand file tree Collapse file tree 10 files changed +1534
-0
lines changed
Expand file tree Collapse file tree 10 files changed +1534
-0
lines changed Original file line number Diff line number Diff line change 1+ module . exports = {
2+ extends : [ 'eslint:recommended' , 'plugin:prettier/recommended' ] ,
3+ plugins : [ 'unused-imports' ] ,
4+ parserOptions : {
5+ ecmaVersion : 11 ,
6+ } ,
7+ env : {
8+ node : true ,
9+ } ,
10+ ignorePatterns : [
11+ '.eslintrc.js' , // https://stackoverflow.com/q/63118405
12+ 'jest.config.js' ,
13+ 'dist/**' ,
14+ ] ,
15+
16+ rules : {
17+ curly : [ 'error' , 'multi-line' ] ,
18+ 'no-unused-vars' : 'off' ,
19+ 'unused-imports/no-unused-imports' : 'error' ,
20+ 'unused-imports/no-unused-vars' : [
21+ 'error' ,
22+ {
23+ vars : 'all' ,
24+ varsIgnorePattern : '^_' ,
25+ args : 'after-used' ,
26+ argsIgnorePattern : '^_' ,
27+ } ,
28+ ] ,
29+ } ,
30+ } ;
31+
Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ pull_request :
5+
6+ jobs :
7+ lint :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v3
11+
12+ - name : Set up Node
13+ uses : actions/setup-node@v3
14+ with :
15+ node-version : ' 16'
16+ cache : ' yarn'
17+
18+ - name : Install dependencies
19+ run : |
20+ yarn install
21+
22+ - name : Lint
23+ run : |
24+ yarn lint
25+
26+ build :
27+ runs-on : ubuntu-latest
28+ if : ${{ github.ref == 'refs/heads/main' }}
29+ steps :
30+ - uses : actions/checkout@v3
31+
32+ - name : Set up Node
33+ uses : actions/setup-node@v3
34+ with :
35+ node-version : ' 16'
36+ cache : ' yarn'
37+
38+ - name : Install dependencies
39+ run : |
40+ yarn install
41+
42+ - name : Build dist
43+ run : |
44+ yarn build
45+
46+ - name : Push changes
47+ uses : stefanzweifel/git-auto-commit-action@v4
48+ with :
49+ commit_message : " chore(build): auto-generate dist"
50+ commit_user_name : " github-actions[bot]"
51+ commit_user_email : " github-actions[bot]@users.noreply.github.com"
52+ commit_author : " github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
53+
54+ release :
55+ name : release
56+ if : ${{ github.ref == 'refs/heads/main' }}
57+ needs : build
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : google-github-actions/release-please-action@v3
61+ id : release
62+ with :
63+ release-type : simple
64+ package-name : retrieve-github-access-token
65+ include-v-in-tag : true
66+
Original file line number Diff line number Diff line change 1+ # copied from https://github.com/actions/checkout/blob/main/.github/workflows/update-main-version.yml
2+ name : Update Main Version
3+ run-name : Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}
4+
5+ on :
6+ workflow_dispatch :
7+ inputs :
8+ target :
9+ description : The tag or reference to use
10+ required : true
11+ major_version :
12+ type : choice
13+ description : The major version to update
14+ options :
15+ - v1
16+
17+ jobs :
18+ tag :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v3
22+ with :
23+ fetch-depth : 0
24+ - name : Git config
25+ run : |
26+ git config user.name github-actions
27+ git config user.email [email protected] 28+ - name : Tag new target
29+ run : git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
30+ - name : Push new tag
31+ run : git push origin ${{ github.event.inputs.major_version }} --force
Original file line number Diff line number Diff line change 1+ # Logs
2+ logs
3+ * .log
4+ npm-debug.log *
5+ yarn-debug.log *
6+ yarn-error.log *
7+ lerna-debug.log *
8+ .pnpm-debug.log *
9+
10+ # Diagnostic reports (https://nodejs.org/api/report.html)
11+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
12+
13+ # Runtime data
14+ pids
15+ * .pid
16+ * .seed
17+ * .pid.lock
18+
19+ # Directory for instrumented libs generated by jscoverage/JSCover
20+ lib-cov
21+
22+ # Coverage directory used by tools like istanbul
23+ coverage
24+ * .lcov
25+
26+ # nyc test coverage
27+ .nyc_output
28+
29+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+ .grunt
31+
32+ # Bower dependency directory (https://bower.io/)
33+ bower_components
34+
35+ # node-waf configuration
36+ .lock-wscript
37+
38+ # Compiled binary addons (https://nodejs.org/api/addons.html)
39+ build /Release
40+
41+ # Dependency directories
42+ node_modules /
43+ jspm_packages /
44+
45+ # Snowpack dependency directory (https://snowpack.dev/)
46+ web_modules /
47+
48+ # TypeScript cache
49+ * .tsbuildinfo
50+
51+ # Optional npm cache directory
52+ .npm
53+
54+ # Optional eslint cache
55+ .eslintcache
56+
57+ # Optional stylelint cache
58+ .stylelintcache
59+
60+ # Microbundle cache
61+ .rpt2_cache /
62+ .rts2_cache_cjs /
63+ .rts2_cache_es /
64+ .rts2_cache_umd /
65+
66+ # Optional REPL history
67+ .node_repl_history
68+
69+ # Output of 'npm pack'
70+ * .tgz
71+
72+ # Yarn Integrity file
73+ .yarn-integrity
74+
75+ # dotenv environment variable files
76+ .env
77+ .env.development.local
78+ .env.test.local
79+ .env.production.local
80+ .env.local
81+
82+ # parcel-bundler cache (https://parceljs.org/)
83+ .cache
84+ .parcel-cache
85+
86+ # Next.js build output
87+ .next
88+ out
89+
90+ # Nuxt.js build / generate output
91+ .nuxt
92+
93+ # Gatsby files
94+ .cache /
95+ # Comment in the public line in if your project uses Gatsby and not Next.js
96+ # https://nextjs.org/blog/next-9-1#public-directory-support
97+ # public
98+
99+ # vuepress build output
100+ .vuepress /dist
101+
102+ # vuepress v2.x temp and cache directory
103+ .temp
104+ .cache
105+
106+ # Docusaurus cache and generated files
107+ .docusaurus
108+
109+ # Serverless directories
110+ .serverless /
111+
112+ # FuseBox cache
113+ .fusebox /
114+
115+ # DynamoDB Local files
116+ .dynamodb /
117+
118+ # TernJS port file
119+ .tern-port
120+
121+ # Stores VSCode versions used for testing VSCode extensions
122+ .vscode-test
123+
124+ # yarn v2
125+ .yarn /cache
126+ .yarn /unplugged
127+ .yarn /build-state.yml
128+ .yarn /install-state.gz
129+ .pnp. *
Original file line number Diff line number Diff line change 1+ {
2+ "singleQuote" : true ,
3+ "arrowParens" : " always" ,
4+ "trailingComma" : " all" ,
5+ "printWidth" : 110
6+ }
You can’t perform that action at this time.
0 commit comments