jops-core 1.0.7 → 1.0.8
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 +11 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,17 @@ npx jops-core init
|
|
|
68
68
|
|
|
69
69
|
`npx jops-core init` vendors the library to `/lib/jops-core.min.js`, configures `index.html` with the import map, and injects build and postinstall scripts into `package.json`.
|
|
70
70
|
|
|
71
|
+
### Updating the library
|
|
72
|
+
|
|
73
|
+
When a new version of JOPS is released, run both commands:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npm i jops-core@latest
|
|
77
|
+
npx jops-core update
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`npm i` updates `node_modules`; `npx jops-core update` copies the new `lib/jops-core.min.js` into your project so the browser picks it up. Running `update` without `npm i` first has no effect — it copies whatever version is already in `node_modules`.
|
|
81
|
+
|
|
71
82
|
### Build for production
|
|
72
83
|
|
|
73
84
|
```bash
|
|
@@ -343,17 +354,6 @@ t.terminate();
|
|
|
343
354
|
| `npx jops-core update` | Copy the latest `jops-core.min.js` from `node_modules` to `lib/` |
|
|
344
355
|
| `npx jops-core build` | Generate production-ready `dist/` folder |
|
|
345
356
|
|
|
346
|
-
### Updating the library
|
|
347
|
-
|
|
348
|
-
When a new version of JOPS is released, run both commands:
|
|
349
|
-
|
|
350
|
-
```bash
|
|
351
|
-
npm i jops-core@latest
|
|
352
|
-
npx jops-core update
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
`npm i` updates `node_modules`; `npx jops-core update` copies the new `lib/jops-core.min.js` into your project so the browser picks it up. Running `update` without `npm i` first has no effect — it copies whatever version is already in `node_modules`.
|
|
356
|
-
|
|
357
357
|
---
|
|
358
358
|
|
|
359
359
|
## Source & Contributing
|