Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
euaaaio committed Oct 31, 2024
1 parent 7a249bc commit dad3608
Show file tree
Hide file tree
Showing 11 changed files with 673 additions and 831 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pnpm-lock.yaml
tsconfig.json
vitest.config.ts

demo/
coverage/
img/
**/*.test.*
Expand Down
5 changes: 5 additions & 0 deletions demo/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
9 changes: 4 additions & 5 deletions demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { createApp } from "vue";

import { devtools } from "../devtools/index.js";
import App from "./components/App.vue";

import { devtools } from "../devtools";
import { $atom, $deepMap, $map } from "./stores";
import { $atom, $deepMap, $map } from "./stores.js";

const app = createApp(App)

app.use(devtools, {
$atom,
$map,
$deepMap
$deepMap,
$map
})

app.mount('#app')
2 changes: 1 addition & 1 deletion demo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
import vueDevTools from 'vite-plugin-vue-devtools'

export default defineConfig({
Expand Down
2 changes: 0 additions & 2 deletions devtools/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ devtools(
{ $atom },
{
getCreatorInspectorState: () => {},
ignoreActions: ['Increase Counter'],
messages: {
build: false
}
Expand All @@ -23,7 +22,6 @@ app.use(
{ $atom },
{
getCreatorInspectorState: () => {},
ignoreActions: ['Increase Counter'],
messages: {
build: false
}
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import eslintConfigLogux from '@logux/eslint-config/ts'

export default [
{
ignores: ['**/errors.ts']
},
...eslintConfigLogux
]
30 changes: 9 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,24 @@
}
},
"devDependencies": {
"@logux/eslint-config": "51.0.0",
"@logux/eslint-config": "53.4.2",
"@nanostores/logger": "^0.4.0",
"@size-limit/preset-small-lib": "^11.1.6",
"@testing-library/vue": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@types/node": "^22.8.6",
"@vitejs/plugin-vue": "^5.1.4",
"@vitest/coverage-v8": "^2.1.4",
"@vue/compiler-sfc": "^3.5.12",
"@vue/devtools-api": "^7.6.2",
"check-dts": "^0.8.2",
"clean-publish": "^4.2.0",
"eslint": "^8.44.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"happy-dom": "^10.0.3",
"clean-publish": "^5.1.0",
"eslint": "^9.13.0",
"happy-dom": "^15.7.4",
"nano-staged": "^0.8.0",
"nanodelay": "^2.0.2",
"nanostores": "^0.11.3",
"prettier": "^3.0.0",
"simple-git-hooks": "^2.8.1",
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.6",
"typescript": "^5.6.3",
"vite": "^5.4.10",
Expand All @@ -93,28 +87,22 @@
"eslint --fix"
]
},
"eslintConfig": {
"extends": "@logux/eslint-config/esm"
},
"eslintIgnore": [
"**/errors.ts"
],
"size-limit": [
{
"name": "useStore",
"import": {
"index.js": "{ useStore }",
"nanostores": "{ map, computed }"
},
"limit": "856 B"
"limit": "824 B"
},
{
"name": "useStore + helpers",
"import": {
"index.js": "{ useStore, useVModel, mapStores }",
"nanostores": "{ map, computed }"
},
"limit": "1030 B"
"limit": "976 B"
}
],
"clean-publish": {
Expand Down
Loading

0 comments on commit dad3608

Please sign in to comment.