Skip to content

Commit

Permalink
Update dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 20, 2024
1 parent 946bc4a commit 1d705fb
Show file tree
Hide file tree
Showing 8 changed files with 1,181 additions and 1,084 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Run unit tests
run: pnpm unit
run: pnpm bnt
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
A smart store for [Nano Stores] state manager to keep data in `localStorage`
and synchronize changes between browser tabs.

* **Small.** from 359 bytes (minified and gzipped).
* **Small.** from 281 bytes (minified and brotlied).
Zero dependencies. It uses [Size Limit] to control size.
* It has good **TypeScript**.
* Framework agnostic. It supports SSR.
Expand All @@ -18,14 +18,15 @@ import { persistentAtom } from '@nanostores/persistent'
export const locale = persistentAtom('locale', 'en')
```

<a href="https://evilmartians.com/?utm_source=nanostores-persistent">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
alt="Sponsored by Evil Martians" width="236" height="54">
</a>

[Nano Stores]: https://github.com/nanostores/nanostores
[Size Limit]: https://github.com/ai/size-limit

---

<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made in <b><a href="https://evilmartians.com/devtools?utm_source=nanostores-persistent&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.

---


## Install

Expand Down
2 changes: 1 addition & 1 deletion demo/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// vite.config.js
import { resolve } from 'path'
import { resolve } from 'node:path'
import { defineConfig } from 'vite'

export default defineConfig({
Expand Down
55 changes: 31 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
"cross-tab"
],
"scripts": {
"unit": "tsm node_modules/uvu/bin.js . '(atom|map)\\.test\\.ts$' && tsm ./test/ssr.test.ts",
"test:build": "vite build ./demo",
"test:lint": "eslint .",
"test:coverage": "c8 pnpm unit",
"test:coverage": "c8 pnpm bnt",
"test:types": "check-dts",
"test:size": "size-limit",
"test": "pnpm run /^test:/",
Expand Down Expand Up @@ -46,28 +45,30 @@
"nanostores": "^0.9.0 || ^0.10.0"
},
"devDependencies": {
"@logux/eslint-config": "^51.0.0",
"@size-limit/preset-small-lib": "^8.2.6",
"@types/node": "^20.4.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"c8": "^8.0.0",
"@logux/eslint-config": "^52.0.2",
"@size-limit/preset-small-lib": "^11.0.2",
"@types/node": "^20.11.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"better-node-test": "^0.5.0",
"c8": "^9.1.0",
"check-dts": "^0.7.2",
"clean-publish": "^4.2.0",
"eslint": "^8.44.0",
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"happy-dom": "^10.3.0",
"happy-dom": "^13.3.8",
"nanodelay": "^2.0.2",
"nanostores": "^0.9.3",
"size-limit": "^8.2.6",
"tsm": "^2.3.0",
"typescript": "^5.1.6",
"uvu": "^0.5.6",
"vite": "^4.4.3"
"nanostores": "^0.10.0",
"size-limit": "^11.0.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"vite": "^5.1.3"
},
"prettier": {
"arrowParens": "avoid",
Expand All @@ -79,14 +80,20 @@
},
"c8": {
"exclude": [
"**/*.test.*"
"**/*.test.*",
"test/*"
],
"lines": 100,
"reporter": "lcov",
"check-coverage": true
"check-coverage": true,
"reporter": [
"text",
"lcov"
],
"skip-full": true,
"clean": true
},
"eslintConfig": {
"extends": "@logux/eslint-config/esm",
"extends": "@logux/eslint-config/ts",
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"consistent-return": "off"
Expand All @@ -112,14 +119,14 @@
"import": {
"./index.js": "{ persistentAtom }"
},
"limit": "359 B"
"limit": "281 B"
},
{
"name": "Map",
"import": {
"./index.js": "{ persistentMap }"
},
"limit": "488 B"
"limit": "404 B"
}
],
"clean-publish": {
Expand Down
Loading

0 comments on commit 1d705fb

Please sign in to comment.