Skip to content

Commit 854ea19

Browse files
authored
Merge pull request #61 from no-js-dev/fix/docs-cdn-only-readme
fix(docs): remove npm/ESM sections and fix CDN-only README
2 parents ab085f0 + 6c19b9a commit 854ea19

9 files changed

Lines changed: 38 additions & 115 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ All notable changes to **NoJS Elements** will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/no-js-dev/nojs-elements/compare/v1.15.3...HEAD)
8+
## [Unreleased](https://github.com/no-js-dev/nojs-elements/compare/v1.15.4...HEAD)
9+
10+
## [1.15.4](https://github.com/no-js-dev/nojs-elements/compare/v1.15.3...v1.15.4) — 2026-06-22
11+
12+
### Fixed
13+
14+
- fix(docs): remove npm/ESM sections from README and docs — NoJS Elements is CDN-only
15+
- fix(docs): remove npmjs.com link from llms.txt
16+
- fix(docs): remove npm/ESM/CJS migration sections from migration-from-core.md
17+
- fix(docs): expand Contributing section with build/test commands
18+
- fix(docs): standardize CDN URL to cdn-elements.no-js.dev/
19+
- fix(docs): remove surviving ESM instructions from llms-full.txt
20+
- fix(docs): fix dead link to Skill repo element references
921

1022
## [1.15.3](https://github.com/no-js-dev/nojs-elements/compare/v1.15.2...v1.15.3) — 2026-06-20
1123

README.md

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,16 @@
1010

1111
## Installation
1212

13-
### NPM
14-
15-
```bash
16-
npm install @no-js-dev/nojs-elements
17-
```
18-
19-
### CDN
20-
21-
```html
22-
<script src="https://cdn.no-js.dev/elements"></script>
23-
```
24-
25-
---
26-
27-
## Usage
28-
29-
### ESM
30-
31-
```javascript
32-
import NoJS from '@no-js-dev/nojs';
33-
import NoJSElements from '@no-js-dev/nojs-elements';
34-
35-
NoJS.use(NoJSElements);
36-
```
37-
38-
### CDN (Script Tag)
39-
40-
When loaded via `<script>` tag, NoJS Elements auto-installs itself — no `NoJS.use()` call needed:
13+
Add both script tags to your HTML — NoJS Core first, then Elements:
4114

4215
```html
4316
<script src="https://cdn.no-js.dev/"></script>
44-
<script src="https://cdn.no-js.dev/elements"></script>
17+
<script src="https://cdn-elements.no-js.dev/"></script>
4518
<!-- That's it — all elements are ready to use -->
4619
```
4720

21+
NoJS Elements auto-installs itself when loaded via `<script>` tag — no `NoJS.use()` call needed.
22+
4823
---
4924

5025
## Elements
@@ -132,7 +107,7 @@ This plugin requires **No.JS >= 1.13.0** as a peer dependency.
132107

133108
Detailed documentation for each element is available in [`docs/md/`](docs/md/).
134109

135-
For the full directive reference with all attributes, events, CSS classes, and accessibility details, see the [NoJS-Skill directive reference](https://github.com/no-js-dev/nojs-skill/blob/main/references/directives.md#drag-and-drop).
110+
For the full directive reference with all attributes, events, CSS classes, and accessibility details, see the [NoJS-Skill element references](https://github.com/no-js-dev/nojs-skill/blob/main/nojs/references/elements/).
136111

137112
---
138113

@@ -151,6 +126,13 @@ For the full directive reference with all attributes, events, CSS classes, and a
151126

152127
Contributions are welcome! Please open an issue or submit a pull request.
153128

129+
```bash
130+
npm install # install dependencies
131+
npm run build # esbuild → dist/{iife,esm,cjs}/nojs-elements.js
132+
npm test # Jest unit tests
133+
cd e2e && npx playwright test # E2E tests (Playwright)
134+
```
135+
154136
- [Changelog](CHANGELOG.md)
155137

156138
## License

dist/cjs/nojs-elements.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/nojs-elements.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iife/nojs-elements.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/llms-full.txt

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NoJS Elements provides drag-and-drop, form validation, tooltips, popovers, modal
77
## Table of Contents
88

99
### Installation
10-
- [Getting Started](#getting-started) — NPM, CDN, ESM usage
10+
- [Getting Started](#getting-started) — CDN script tag usage
1111

1212
### Interaction Elements
1313
- [Drag & Drop](#drag-and-drop) — `drag`, `drop`, `drag-list`, `drag-multiple`
@@ -44,39 +44,16 @@ NoJS Elements provides drag-and-drop, form validation, tooltips, popovers, modal
4444

4545
## Installation
4646

47-
### NPM
48-
49-
```bash
50-
npm install @no-js-dev/nojs-elements
51-
```
52-
53-
### CDN
54-
55-
```html
56-
<script src="https://cdn.jsdelivr.net/npm/@no-js-dev/nojs-elements/dist/iife/nojs-elements.js"></script>
57-
```
58-
59-
## Usage
60-
61-
### ESM
62-
63-
```javascript
64-
import NoJS from '@no-js-dev/nojs';
65-
import NoJSElements from '@no-js-dev/nojs-elements';
66-
67-
NoJS.use(NoJSElements);
68-
```
69-
70-
### CDN (Script Tag)
71-
72-
When loaded via `<script>` tag, NoJS Elements auto-installs itself — no `NoJS.use()` call needed:
47+
Add both script tags to your HTML — NoJS Core first, then Elements:
7348

7449
```html
7550
<script src="https://cdn.no-js.dev/"></script>
76-
<script src="https://cdn.no-js.dev/elements"></script>
51+
<script src="https://cdn-elements.no-js.dev/"></script>
7752
<!-- That's it — all elements are ready to use -->
7853
```
7954

55+
NoJS Elements auto-installs itself when loaded via `<script>` tag — no `NoJS.use()` call needed.
56+
8057
## Peer Dependency
8158

8259
This plugin requires **No.JS >= 1.13.0** as a peer dependency.
@@ -107,7 +84,7 @@ This plugin requires **No.JS >= 1.13.0** as a peer dependency.
10784

10885
# Drag and Drop
10986

110-
> The DnD module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed. For ESM usage, call `NoJS.use(NoJSElements)` once.
87+
> The DnD module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed.
11188

11289
## `drag` — Make an Element Draggable
11390

@@ -365,7 +342,7 @@ No.JS automatically adds:
365342

366343
# Validation
367344

368-
> The Validation module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed. For ESM usage, call `NoJS.use(NoJSElements)` once.
345+
> The Validation module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed.
369346

370347
## `<form validate>` — Form-Level Validation
371348

docs/llms.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NoJS Elements provides drag-and-drop, form validation, tooltips, popovers, modal
66

77
## Installation
88

9-
- [Getting Started](https://elements.no-js.dev/): NPM install, CDN script tag, ESM/IIFE usage, peer dependency on No.JS
9+
- [Getting Started](https://elements.no-js.dev/): CDN script tag usage, peer dependency on No.JS
1010

1111
## Drag & Drop
1212

@@ -56,5 +56,4 @@ NoJS Elements provides drag-and-drop, form validation, tooltips, popovers, modal
5656
- [No.JS Full Docs](https://no-js.dev/llms-full.txt): Complete No.JS framework documentation
5757
- [NoJS LSP](https://lsp.no-js.dev/): VS Code extension with completion, hover, and diagnostics for No.JS directives
5858
- [NoJS Skill](https://github.com/no-js-dev/nojs-skill): AI agent reference for No.JS — full directive, filter, and validation docs
59-
- [npm](https://www.npmjs.com/package/@no-js-dev/nojs-elements): Install via npm
6059
- [GitHub](https://github.com/no-js-dev/nojs-elements): Source code, issues, and contributions

docs/md/migration-from-core.md

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Both packages must be at version 1.13.0 or later. Earlier versions of NoJS Eleme
5959

6060
```html
6161
<script src="https://cdn.no-js.dev/"></script>
62-
<script src="https://cdn.no-js.dev/elements/"></script>
62+
<script src="https://cdn-elements.no-js.dev/"></script>
6363

6464
<form validate>
6565
<input name="email" validate="required|email" />
@@ -76,53 +76,6 @@ The CDN build of NoJS Elements auto-installs when it detects `window.NoJS`. No J
7676

7777
---
7878

79-
## npm / ESM Users
80-
81-
### Before (Core only)
82-
83-
```javascript
84-
import NoJS from '@no-js-dev/nojs';
85-
86-
NoJS.config({ /* ... */ });
87-
NoJS.init();
88-
```
89-
90-
### After (Core + Elements)
91-
92-
```bash
93-
npm install @no-js-dev/nojs-elements
94-
```
95-
96-
```javascript
97-
import NoJS from '@no-js-dev/nojs';
98-
import NoJSElements from '@no-js-dev/nojs-elements';
99-
100-
NoJS.config({ /* ... */ });
101-
NoJS.use(NoJSElements);
102-
NoJS.init();
103-
```
104-
105-
**Order matters:** `NoJS.use(NoJSElements)` must be called before `NoJS.init()`.
106-
107-
---
108-
109-
## CJS / require() Users
110-
111-
```bash
112-
npm install @no-js-dev/nojs-elements
113-
```
114-
115-
```javascript
116-
const NoJS = require('@no-js-dev/nojs');
117-
const NoJSElements = require('@no-js-dev/nojs-elements');
118-
119-
NoJS.config({ /* ... */ });
120-
NoJS.use(NoJSElements);
121-
NoJS.init();
122-
```
123-
124-
---
125-
12679
## HTML Templates — No Changes Required
12780

12881
Your HTML templates are 100% backward compatible. Every directive attribute, implicit variable, CSS class, and event works exactly as before:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@no-js-dev/nojs-elements",
3-
"version": "1.15.3",
3+
"version": "1.15.4",
44
"description": "Element plugins for No.JS — drag-and-drop, validation, and more",
55
"main": "dist/cjs/nojs-elements.js",
66
"module": "dist/esm/nojs-elements.js",

0 commit comments

Comments
 (0)