Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
baranwang committed Feb 13, 2024
1 parent d7f7bba commit af147bc
Show file tree
Hide file tree
Showing 20 changed files with 11,044 additions and 14,154 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [ 140 ],
"eslint.enable": true
Expand Down
13 changes: 2 additions & 11 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
"pluginAlias": "AqaraHomebridgePlugin",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Example Dynamic Platform"
}
}
}
"customUi": true,
"customUiPath": "./homebridge-ui"
}
33 changes: 2 additions & 31 deletions homebridge-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
.DS_Store

.pnp
.pnp.js
.env.local
.env.*.local
.history
*.log*

node_modules/
.yarn-integrity
.pnpm-store/
*.tsbuildinfo
.eslintcache
.changeset/pre.json

dist/
coverage/
release/
output/
output_resource/
log/

.vscode/**/*
!.vscode/settings.json
!.vscode/extensions.json
.idea/

**/*/typings/auto-generated

modern.config.local.*
server.js
public/static
35 changes: 0 additions & 35 deletions homebridge-ui/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion homebridge-ui/.nvmrc

This file was deleted.

5 changes: 0 additions & 5 deletions homebridge-ui/.prettierrc

This file was deleted.

15 changes: 14 additions & 1 deletion homebridge-ui/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@ import { moduleTools, defineConfig } from '@modern-js/module-tools';

export default defineConfig({
plugins: [moduleTools()],
buildPreset: 'npm-library',
buildConfig: [
{
buildType: 'bundleless',
input: ['src/server.ts'],
outDir: './',
dts: false
},
{
buildType: 'bundle',
input: ['src/index.tsx'],
outDir: './public/static',
dts: false
}
]
});
Loading

0 comments on commit af147bc

Please sign in to comment.