@yuneta/gobj-js 0.3.0

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/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # README
2
+
3
+ ## Install
4
+
5
+ This project uses [`vite`](https://vite.dev/) as build tool.
6
+
7
+ Install the latest `node`:
8
+
9
+ nvm install --lts
10
+
11
+ When writing this readme the LTS version was:
12
+
13
+ node --version
14
+ v22.14.0
15
+
16
+ npm install -g vite
17
+
18
+ Install dependencies:
19
+
20
+ npm install
21
+
22
+ To start Vite dev server:
23
+
24
+ vite
25
+
26
+ To build:
27
+
28
+ vite build
29
+
30
+ To publish a new version of @yuneta/gobj-js to [npmjs.com](https://www.npmjs.com/package/@yuneta/gobj-js):
31
+
32
+ # 1. Configure your npm token (only once)
33
+ echo "//registry.npmjs.org/:_authToken=<your-token>" > ~/.npmrc
34
+
35
+ # 2. Update the version in package.json
36
+ npm version patch # or minor / major
37
+
38
+ # 3. Publish (build runs automatically via prepublishOnly)
39
+ npm publish --access public
40
+
41
+ To create an npm token, go to [npmjs.com](https://www.npmjs.com) → Account → Access Tokens.
42
+
43
+ To test:
44
+
45
+ npm test
46
+
47
+ or
48
+
49
+ npx vitest
50
+
51
+ or
52
+
53
+ npx vitest --watch # automatically re-run tests when files change,
54
+
55
+ or
56
+
57
+ npm run test:coverage
58
+
59
+ ## Update
60
+
61
+ ONLY one time: to update all js packages, install the module::
62
+
63
+ npm install -g npm-check-updates
64
+
65
+ To download new releases::
66
+
67
+ ncu -u
68
+
69
+ And to install the new versions::
70
+
71
+ npm install