Skip to content

Commit 3439276

Browse files
committed
small improvements
2 parents 346708d + 671186b commit 3439276

8 files changed

Lines changed: 413 additions & 411 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v5
3030
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v5
31+
uses: actions/setup-node@v6
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
- run: npm ci
@@ -37,7 +37,7 @@ jobs:
3737
- run: npm run build --if-present
3838
- name: Save build
3939
if: matrix.node-version == '20.x'
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@v5
4141
with:
4242
name: build
4343
path: |
@@ -61,10 +61,10 @@ jobs:
6161
needs: build
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/download-artifact@v5
64+
- uses: actions/download-artifact@v6
6565
with:
6666
name: build
67-
- uses: actions/setup-node@v5
67+
- uses: actions/setup-node@v6
6868
with:
6969
node-version: 20.x
7070
- uses: rlespinasse/github-slug-action@v3.x
@@ -83,10 +83,10 @@ jobs:
8383
runs-on: ubuntu-latest
8484
if: github.ref == 'refs/heads/main'
8585
steps:
86-
- uses: actions/download-artifact@v5
86+
- uses: actions/download-artifact@v6
8787
with:
8888
name: build
89-
- uses: actions/setup-node@v5
89+
- uses: actions/setup-node@v6
9090
with:
9191
node-version: 20.x
9292
- name: Disable pre- and post-publish actions
File renamed without changes.

package-lock.json

Lines changed: 367 additions & 363 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"LICENSE"
1212
],
1313
"scripts": {
14-
"clean": "rm -rf dist dist-dev src/versionInfo.ts",
14+
"clean": "rm -rf dist src/versionInfo.ts",
1515
"build": "npm run clean && npm run build-version && npm run build-js && npm run postbuild-js",
1616
"build-version": "./timestamp.sh > src/versionInfo.ts && eslint 'src/versionInfo.ts' --fix",
1717
"build-js": "npm run build-types && npm run build-babel",
1818
"build-types": "tsc --emitDeclarationOnly",
1919
"build-babel": "babel src --out-dir dist --extensions '.ts,.js' --source-maps",
2020
"postbuild-js": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map",
21-
"build-dev": "webpack --progress --mode=development",
2221
"lint": "eslint",
22+
"lint-fix": "eslint --fix",
2323
"typecheck": "tsc --noEmit",
2424
"typecheck-test": "tsc --noEmit -p tsconfig.test.json",
2525
"test": "jest --no-coverage",
@@ -30,7 +30,8 @@
3030
"preversion": "npm run lint && npm run typecheck && npm test",
3131
"postversion": "git push origin main --follow-tags",
3232
"watch": "npm run build-version && babel src -d dist --source-maps --extensions '.ts,.js' --watch",
33-
"start": "npm install && npm run build-version && npx webpack serve --open"
33+
"start": "webpack serve --config webpack.dev.config.js --open"
34+
3435
},
3536
"repository": {
3637
"type": "git",

src/meeting/Makefile

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/types.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
"node_modules/@types",
5555
"node_modules/@testing-library",
5656
"typings",
57-
"/src/types.ts"
57+
"src/types.ts",
58+
"declarations.d.ts",
5859
] /* List of folders to include type definitions from. */,
5960
// "types": [], /* Type declaration files to be included in compilation. */
6061
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
@@ -73,7 +74,8 @@
7374
},
7475
"include": [
7576
"src/**/*",
76-
"/typings/**/*"
77+
"typings/**/*",
78+
"declarations.d.ts"
7779
],
7880
"exclude": ["node_modules", "dist"]
7981
}

webpack.dev.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import HtmlWebpackPlugin from 'html-webpack-plugin'
2+
import NodePolyfillPlugin from 'node-polyfill-webpack-plugin'
3+
4+
export default [
5+
{
6+
mode: 'development',
7+
entry: './dev/loader.ts',
8+
plugins: [
9+
new HtmlWebpackPlugin({ template: './dev/index.html' }),
10+
new NodePolyfillPlugin()
11+
],
12+
resolve: {
13+
extensions: ['.mjs', '.js', '.ts']
14+
},
15+
module: {
16+
rules: [
17+
{
18+
test: /\.(mjs|js|ts)$/,
19+
exclude: /(node_modules)/,
20+
use: {
21+
loader: 'babel-loader'
22+
}
23+
}
24+
]
25+
},
26+
devServer: {
27+
static: './dist',
28+
compress: true,
29+
port: 9000
30+
},
31+
devtool: 'source-map'
32+
}]

0 commit comments

Comments
 (0)