-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d43bb0
commit ab71887
Showing
13 changed files
with
89 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: build | ||
run-name: Build triggered by @${{ github.actor }} | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --check-cache | ||
- name: Run build | ||
run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>IPM</title> | ||
<link id="favicon" rel="icon" href=""/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<meta charset="UTF-8"> | ||
<title>IPMC</title> | ||
<link id="favicon" rel="icon" href="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
</head> | ||
|
||
<body class="dx-viewport" style="margin: 0"> | ||
<script>var global = global || window</script> | ||
<script type="module" src="/src/index.tsx"></script> | ||
<div id="root"></div> | ||
<script>var global = global || window</script> | ||
<script type="module" src="/src/index.tsx"></script> | ||
<div id="root"></div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"declaration": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"lib": [ | ||
"esnext", | ||
"dom", | ||
"dom.iterable" | ||
], | ||
"moduleResolution": "node", | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"resolveJsonModule": true, | ||
"module": "esnext", | ||
"target": "ESNext", | ||
"downlevelIteration": true, | ||
"isolatedModules": true | ||
}, | ||
"include": [ | ||
"src", | ||
"typings.d.ts", | ||
"vite.config.ts", | ||
".eslintrc.js", | ||
".prettierrc.js" | ||
] | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"declaration": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"lib": [ | ||
"esnext", | ||
"dom", | ||
"dom.iterable" | ||
], | ||
"moduleResolution": "node", | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true, | ||
"module": "esnext", | ||
"target": "ESNext", | ||
"downlevelIteration": true, | ||
"isolatedModules": true | ||
}, | ||
"include": [ | ||
"src", | ||
"typings.d.ts", | ||
"vite.config.ts", | ||
".eslintrc.js", | ||
".prettierrc.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import {defineConfig} from 'vite'; | ||
import { defineConfig } from 'vite'; | ||
import { nodePolyfills } from 'vite-plugin-node-polyfills' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig(({ command, mode }) => { | ||
const isProd = mode === 'production'; | ||
return { | ||
build: { | ||
outDir: 'dist', | ||
emptyOutDir: true, | ||
minify: isProd, | ||
sourcemap: command === 'serve', | ||
rollupOptions: { treeshake: true } | ||
}, | ||
plugins: [ | ||
nodePolyfills({ | ||
include: ['crypto', 'buffer', 'stream', 'util'], | ||
globals: { | ||
Buffer: true, | ||
global: true, | ||
process: true, | ||
}, | ||
protocolImports: true, | ||
}) | ||
], | ||
}; | ||
const isProd = mode === 'production'; | ||
return { | ||
build: { | ||
outDir: 'dist', | ||
emptyOutDir: true, | ||
minify: isProd, | ||
sourcemap: command === 'serve', | ||
rollupOptions: { treeshake: true } | ||
}, | ||
plugins: [ | ||
nodePolyfills({ | ||
include: ['crypto', 'buffer', 'stream', 'util'], | ||
globals: { | ||
Buffer: true, | ||
global: true, | ||
process: true, | ||
}, | ||
protocolImports: true, | ||
}) | ||
], | ||
}; | ||
}); |