Skip to content

Commit a96874b

Browse files
Use esbuild and minor reconfig
1 parent f9dc79d commit a96874b

24 files changed

+9956
-10539
lines changed

.eslintignore

-4
This file was deleted.

.eslintrc.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
root: true,
3+
plugins: ['@typescript-eslint/eslint-plugin'],
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:prettier/recommended',
8+
'plugin:jest/recommended'
9+
],
10+
env: {
11+
node: true,
12+
jest: true,
13+
},
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
project: 'tsconfig.json',
17+
sourceType: 'module',
18+
},
19+
rules: {
20+
'@typescript-eslint/require-await': 'error',
21+
'@typescript-eslint/no-floating-promises': 'error',
22+
},
23+
ignorePatterns: [".eslintrc.js", "dist", "jest.config.ts", "node_modules"]
24+
};

.eslintrc.json

-55
This file was deleted.

.gitattributes

-1
This file was deleted.

.github/CODEOWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CODEOWNERS for this repository
2+
* @cortexcompiler

.github/workflows/check-dist.yml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333

3434
- name: Rebuild the dist/ directory
3535
run: |
36-
npm run build
3736
npm run package
3837
3938
- name: Compare the expected and actual dist/ directories

.github/workflows/test.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- run: |
15-
npm install
15+
npm ci
1616
- run: |
17-
npm run all
17+
npm run lint:ci
18+
npm run package
19+
npm run test
1820
test: # make sure the action works on a clean machine without building
1921
runs-on: ubuntu-latest
2022
steps:
21-
- uses: actions/checkout@v2
23+
- uses: cortexcompiler/example-typescript-action
2224
- uses: ./
2325
with:
2426
milliseconds: 1000

.gitignore

+4-86
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,17 @@
1-
# Dependency directory
2-
node_modules
3-
4-
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
5-
# Logs
6-
logs
7-
*.log
8-
npm-debug.log*
9-
yarn-debug.log*
10-
yarn-error.log*
11-
lerna-debug.log*
12-
13-
# Diagnostic reports (https://nodejs.org/api/report.html)
14-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15-
16-
# Runtime data
17-
pids
18-
*.pid
19-
*.seed
20-
*.pid.lock
21-
22-
# Directory for instrumented libs generated by jscoverage/JSCover
23-
lib-cov
24-
251
# Coverage directory used by tools like istanbul
262
coverage
273
*.lcov
28-
29-
# nyc test coverage
4+
test-report.html
305
.nyc_output
316

32-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33-
.grunt
34-
35-
# Bower dependency directory (https://bower.io/)
36-
bower_components
37-
38-
# node-waf configuration
39-
.lock-wscript
40-
41-
# Compiled binary addons (https://nodejs.org/api/addons.html)
42-
build/Release
43-
447
# Dependency directories
45-
jspm_packages/
46-
47-
# TypeScript v1 declaration files
48-
typings/
49-
50-
# TypeScript cache
51-
*.tsbuildinfo
8+
node_modules/
529

5310
# Optional npm cache directory
5411
.npm
5512

5613
# Optional eslint cache
5714
.eslintcache
5815

59-
# Optional REPL history
60-
.node_repl_history
61-
62-
# Output of 'npm pack'
63-
*.tgz
64-
65-
# Yarn Integrity file
66-
.yarn-integrity
67-
68-
# dotenv environment variables file
69-
.env
70-
.env.test
71-
72-
# parcel-bundler cache (https://parceljs.org/)
73-
.cache
74-
75-
# next.js build output
76-
.next
77-
78-
# nuxt.js build output
79-
.nuxt
80-
81-
# vuepress build output
82-
.vuepress/dist
83-
84-
# Serverless directories
85-
.serverless/
86-
87-
# FuseBox cache
88-
.fusebox/
89-
90-
# DynamoDB Local files
91-
.dynamodb/
92-
93-
# OS metadata
94-
.DS_Store
95-
Thumbs.db
96-
97-
# Ignore built ts files
98-
__tests__/runner/*
99-
lib/**/*
16+
# Other files and folders
17+
.settings/

.prettierrc.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"printWidth": 80,
3-
"tabWidth": 2,
4-
"useTabs": false,
5-
"semi": false,
2+
"arrowParens": "always",
3+
"printWidth": 120,
64
"singleQuote": true,
7-
"trailingComma": "none",
8-
"bracketSpacing": false,
9-
"arrowParens": "avoid"
5+
"trailingComma": "all",
6+
"endOfLine": "lf",
7+
"tabWidth": 2,
8+
"useTabs": false
109
}

CODEOWNERS

-1
This file was deleted.

__tests__/main.test.ts

-29
This file was deleted.

action.yml renamed to action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Your name here'
1+
name: 'CortexCompiler'
22
description: 'Provide a description here'
33
author: 'Your name or organization here'
44
inputs:

0 commit comments

Comments
 (0)