jj 2.4.0 β 2.6.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 +37 -48
- package/SKILL.md +671 -0
- package/lib/bundle.cjs +2031 -0
- package/lib/bundle.cjs.map +1 -0
- package/lib/bundle.d.cts +1782 -0
- package/lib/bundle.d.ts +1782 -1
- package/lib/bundle.global.js +1953 -0
- package/lib/bundle.global.js.map +1 -0
- package/lib/bundle.js +864 -848
- package/lib/bundle.js.map +1 -7
- package/lib/bundle.min.cjs +2 -0
- package/lib/bundle.min.cjs.map +1 -0
- package/lib/bundle.min.d.cts +1782 -0
- package/lib/bundle.min.d.ts +1782 -1
- package/lib/bundle.min.global.js +2 -0
- package/lib/bundle.min.global.js.map +1 -0
- package/lib/bundle.min.js +2 -2
- package/lib/bundle.min.js.map +1 -0
- package/package.json +14 -6
- package/lib/JJD.d.ts +0 -76
- package/lib/JJD.js +0 -91
- package/lib/JJD.js.map +0 -1
- package/lib/JJDF.d.ts +0 -60
- package/lib/JJDF.js +0 -68
- package/lib/JJDF.js.map +0 -1
- package/lib/JJE.d.ts +0 -313
- package/lib/JJE.js +0 -412
- package/lib/JJE.js.map +0 -1
- package/lib/JJHE.d.ts +0 -120
- package/lib/JJHE.js +0 -164
- package/lib/JJHE.js.map +0 -1
- package/lib/JJN.d.ts +0 -234
- package/lib/JJN.js +0 -323
- package/lib/JJN.js.map +0 -1
- package/lib/JJSE.d.ts +0 -148
- package/lib/JJSE.js +0 -190
- package/lib/JJSE.js.map +0 -1
- package/lib/JJSR.d.ts +0 -67
- package/lib/JJSR.js +0 -85
- package/lib/JJSR.js.map +0 -1
- package/lib/JJT.d.ts +0 -79
- package/lib/JJT.js +0 -108
- package/lib/JJT.js.map +0 -1
- package/lib/case.d.ts +0 -60
- package/lib/case.js +0 -92
- package/lib/case.js.map +0 -1
- package/lib/case.test.d.ts +0 -1
- package/lib/case.test.js +0 -79
- package/lib/case.test.js.map +0 -1
- package/lib/components.d.ts +0 -147
- package/lib/components.js +0 -286
- package/lib/components.js.map +0 -1
- package/lib/helpers.d.ts +0 -158
- package/lib/helpers.js +0 -231
- package/lib/helpers.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -16
- package/lib/index.js.map +0 -1
- package/lib/mixin-types.d.ts +0 -143
- package/lib/mixin-types.js +0 -2
- package/lib/mixin-types.js.map +0 -1
- package/lib/mixins.d.ts +0 -77
- package/lib/mixins.js +0 -336
- package/lib/mixins.js.map +0 -1
- package/lib/types.d.ts +0 -77
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/lib/util.d.ts +0 -96
- package/lib/util.js +0 -122
- package/lib/util.js.map +0 -1
- package/lib/util.test.d.ts +0 -1
- package/lib/util.test.js +0 -46
- package/lib/util.test.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,77 +1,66 @@
|
|
|
1
1
|
# Just JavaScript!
|
|
2
2
|
|
|
3
|
-
**
|
|
4
|
-
**Do you know what's faster than transpilation? No transpilation!**
|
|
3
|
+
**Faster than VDOM. No Build Step. Use the Platform!**
|
|
5
4
|
|
|
6
|
-
**JJ**
|
|
5
|
+
**JJ** is a lightweight, no-transpilation library for modern web development. What You Write Is What Is Run (WYWIWIR).
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Install
|
|
7
|
+
## β‘ Quick Start
|
|
11
8
|
|
|
12
9
|
```bash
|
|
13
10
|
npm i jj
|
|
14
11
|
```
|
|
15
12
|
|
|
16
|
-
# Usage
|
|
17
|
-
|
|
18
|
-
CDN:
|
|
19
|
-
|
|
20
13
|
```js
|
|
21
|
-
import {
|
|
22
|
-
```
|
|
14
|
+
import { JJHE } from 'jj'
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
JJHE.create('div')
|
|
17
|
+
.addClass('card')
|
|
18
|
+
.setText('Hello World!')
|
|
19
|
+
.on('click', () => console.log('Hi'))
|
|
20
|
+
.appendToBody()
|
|
28
21
|
```
|
|
29
22
|
|
|
30
|
-
##
|
|
23
|
+
## π Why JJ?
|
|
31
24
|
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
25
|
+
- **Zero Build** β Runs directly in modern browsers
|
|
26
|
+
- **Native Speed** β Direct DOM manipulation, no VDOM overhead
|
|
27
|
+
- **Web Standards** β First-class Web Components support
|
|
28
|
+
- **Fluent API** β Chainable methods for cleaner code
|
|
36
29
|
|
|
37
|
-
|
|
30
|
+
## π Learn More
|
|
38
31
|
|
|
39
|
-
|
|
40
|
-
You can directly import it from UNPKG at https://unpkg.com/browse/jj/dist/jj.js
|
|
32
|
+
**π [Visit the full site with tutorials, examples, and API docs](https://alexewerlof.github.io/jj)**
|
|
41
33
|
|
|
42
|
-
|
|
34
|
+
## π€ AI-Optimized Development
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
JJ is designed for AI-assisted development. Install the skill for intelligent code suggestions:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npx skills add alexewerlof/jj
|
|
46
40
|
```
|
|
47
41
|
|
|
48
|
-
|
|
42
|
+
Once installed, AI agents (GitHub Copilot, Cursor, Claude Code, Windsurf, etc.) will:
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</body>
|
|
55
|
-
</html>
|
|
56
|
-
```
|
|
44
|
+
- Follow JJ's patterns and conventions automatically
|
|
45
|
+
- Know when to use `.ref` for native DOM access
|
|
46
|
+
- Suggest correct framework translations (React/Vue/jQuery/Svelte β JJ)
|
|
47
|
+
- Generate idiomatic, type-safe code
|
|
57
48
|
|
|
58
|
-
|
|
59
|
-
// If you installed via NPM
|
|
60
|
-
import { ready, html } from '/node_modules/jj/dist/jj.js'
|
|
61
|
-
// Is you want to directly use it via UNPKG
|
|
62
|
-
import { ready, html } from 'https://unpkg.com/browse/jj/dist/jj.js'
|
|
49
|
+
The skill definition (`SKILL.md`) is also included in the npm package at `node_modules/jj/SKILL.md`.
|
|
63
50
|
|
|
64
|
-
|
|
65
|
-
html.div('Hello world!').appendToBody()
|
|
66
|
-
})
|
|
67
|
-
```
|
|
51
|
+
## β
Testing
|
|
68
52
|
|
|
69
|
-
|
|
53
|
+
The entire public API is tested thoroghly.
|
|
54
|
+
Tests live in the `test/` folder and mirror the source filenames (e.g., `test/JJE.test.ts` for `src/JJE.ts`) while importing the target from `./src/index.js`.
|
|
70
55
|
|
|
71
|
-
|
|
56
|
+
Run tests with:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm test
|
|
60
|
+
```
|
|
72
61
|
|
|
73
|
-
|
|
62
|
+
## License
|
|
74
63
|
|
|
75
64
|
MIT
|
|
76
65
|
|
|
77
|
-
_Made in Sweden πΈπͺ by [
|
|
66
|
+
_Made in Sweden πΈπͺ by [Alex EwerlΓΆf](https://alexewerlof.com/)_
|