layusoft-ui 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.github/workflows/main.yml +0 -30
- package/eslint.config.js +0 -23
- package/index.html +0 -13
- package/tsconfig.json +0 -31
- package/tsconfig.tsbuildinfo +0 -1
- package/vite.config.ts +0 -36
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout Code
|
|
13
|
-
uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- name: Setup Node.js
|
|
16
|
-
uses: actions/setup-node@v4
|
|
17
|
-
with:
|
|
18
|
-
node-version: '24'
|
|
19
|
-
registry-url: 'https://registry.npmjs.org'
|
|
20
|
-
|
|
21
|
-
- name: Install Dependencies
|
|
22
|
-
run: npm ci --force
|
|
23
|
-
|
|
24
|
-
- name: Build Library
|
|
25
|
-
run: npm run build
|
|
26
|
-
|
|
27
|
-
- name: Publish to NPM
|
|
28
|
-
run: npm publish
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/eslint.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
globalIgnores(['dist']),
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
extends: [
|
|
13
|
-
js.configs.recommended,
|
|
14
|
-
tseslint.configs.recommended,
|
|
15
|
-
reactHooks.configs.flat.recommended,
|
|
16
|
-
reactRefresh.configs.vite,
|
|
17
|
-
],
|
|
18
|
-
languageOptions: {
|
|
19
|
-
ecmaVersion: 2020,
|
|
20
|
-
globals: globals.browser,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
])
|
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>layusoft-ui-test</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2023",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["vite/client"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
"jsx": "react-jsx",
|
|
17
|
-
|
|
18
|
-
/* Linting */
|
|
19
|
-
"strict": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
|
|
24
|
-
"declaration": true,
|
|
25
|
-
"declarationMap": true,
|
|
26
|
-
"emitDeclarationOnly": false,
|
|
27
|
-
"rootDir": "lib",
|
|
28
|
-
"outDir": "dist",
|
|
29
|
-
},
|
|
30
|
-
"include": ["lib"]
|
|
31
|
-
}
|
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["./lib/button.component.tsx","./lib/checboxinput.component.tsx","./lib/index.ts","./lib/multiselectinput.component.tsx","./lib/passwordinput.component.tsx","./lib/radioinput.component.tsx","./lib/selectinput.component.tsx","./lib/textinput.component.tsx"],"version":"5.9.3"}
|
package/vite.config.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import { resolve } from 'node:path';
|
|
4
|
-
import { defineConfig } from 'vite';
|
|
5
|
-
import dts from "vite-plugin-dts";
|
|
6
|
-
import { libInjectCss } from 'vite-plugin-lib-inject-css';
|
|
7
|
-
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
plugins: [
|
|
10
|
-
react(),
|
|
11
|
-
tailwindcss(),
|
|
12
|
-
libInjectCss(),
|
|
13
|
-
dts({
|
|
14
|
-
insertTypesEntry: true
|
|
15
|
-
})
|
|
16
|
-
],
|
|
17
|
-
build: {
|
|
18
|
-
lib: {
|
|
19
|
-
entry: resolve(__dirname, 'lib/index.ts'),
|
|
20
|
-
name: 'LayuSoftUILibrary',
|
|
21
|
-
formats: ["es"],
|
|
22
|
-
fileName: `index`,
|
|
23
|
-
},
|
|
24
|
-
rollupOptions: {
|
|
25
|
-
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
26
|
-
output: {
|
|
27
|
-
globals: {
|
|
28
|
-
react: 'React',
|
|
29
|
-
'react-dom': 'ReactDOM',
|
|
30
|
-
'react/jsx-runtime': 'jsxRuntime'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
|