diff --git a/.gitignore b/.gitignore index 7acfc15..a9f840f 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? -temp/ \ No newline at end of file +temp/ +types/ \ No newline at end of file diff --git a/public/fonts/gaia-icons.ttf b/public/fonts/gaia-icons.ttf new file mode 100644 index 0000000..76c2dc4 Binary files /dev/null and b/public/fonts/gaia-icons.ttf differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..1010c03 --- /dev/null +++ b/public/index.html @@ -0,0 +1,65 @@ + + + + + + + Star Web Components + + + + + + + + diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest new file mode 100644 index 0000000..3f7056d --- /dev/null +++ b/public/manifest.webmanifest @@ -0,0 +1,27 @@ +{ + "name": "StarWebComponents", + "short_name": "StarWC", + "description": "StarWC", + "lang": "en-US", + "orientation": "any", + "start_url": "/index.html", + "display": "fullscreen", + "icons": [ + { + "src": "/styles/icon_256.png", + "type": "image/png", + "sizes": "256x256" + } + ], + "b2g_features": { + "locales": { + "zh-CN": { + "name": "StarWeb组件", + "short_name": "StarWeb组件", + "description": "StarWeb组件" + } + }, + "core": true, + "version": "0.0.1" + } +} \ No newline at end of file diff --git a/public/styles/icon_256.png b/public/styles/icon_256.png new file mode 100644 index 0000000..e185e0b Binary files /dev/null and b/public/styles/icon_256.png differ diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index d00c3ea..e780ef5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,8 +17,16 @@ "experimentalDecorators": true, "forceConsistentCasingInFileNames": true, "useDefineForClassFields": false, - "skipLibCheck": true + "skipLibCheck": true, + "plugins": [ + { + "name": "typescript-styled-plugin", + "lint": { + // "emptyRules": "ignore" + } + } + ] }, - "include": ["src/**/*.ts"], + "include": ["src/**/*.ts", "temp/gaia-container-child.ts"], "references": [{"path": "./tsconfig.node.json"}] } diff --git a/vite.config.ts b/vite.config.ts index ce3f448..5e8da1d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,11 +4,12 @@ import {defineConfig} from 'vite' export default defineConfig({ build: { lib: { - entry: 'src/my-element.ts', + entry: 'src/index.ts', formats: ['es'], }, - rollupOptions: { - external: /^lit/, - }, + outDir: 'dist/' + // rollupOptions: { + // external: /^lit/, + // }, }, })