@changke/staticnext-build 0.27.0 → 0.29.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/AGENTS.md +22 -22
- package/CHANGELOG.md +13 -0
- package/LICENSE +15 -0
- package/package.json +7 -7
package/AGENTS.md
CHANGED
|
@@ -42,21 +42,21 @@ is no Prettier. Run `npm run lint` to check.
|
|
|
42
42
|
|
|
43
43
|
### Formatting Rules
|
|
44
44
|
|
|
45
|
-
| Rule
|
|
46
|
-
|
|
47
|
-
| Indentation
|
|
48
|
-
| Quotes
|
|
49
|
-
| Semicolons
|
|
50
|
-
| Trailing commas
|
|
51
|
-
| Object braces
|
|
52
|
-
| Block spacing
|
|
53
|
-
| Brace style
|
|
54
|
-
| Arrow parens
|
|
55
|
-
| Named function parens | No space before: `function foo()`
|
|
56
|
-
| Async arrow
|
|
57
|
-
| Line endings
|
|
58
|
-
| Trailing whitespace
|
|
59
|
-
| Final newline
|
|
45
|
+
| Rule | Setting |
|
|
46
|
+
|-----------------------|---------------------------------------------|
|
|
47
|
+
| Indentation | 2 spaces |
|
|
48
|
+
| Quotes | Single quotes |
|
|
49
|
+
| Semicolons | Always required |
|
|
50
|
+
| Trailing commas | Never (`comma-dangle: never`) |
|
|
51
|
+
| Object braces | No spaces (`{foo}` not `{ foo }`) |
|
|
52
|
+
| Block spacing | No spaces (`{return x}` not `{ return x }`) |
|
|
53
|
+
| Brace style | 1TBS (opening brace on same line) |
|
|
54
|
+
| Arrow parens | As-needed (omit for single param) |
|
|
55
|
+
| Named function parens | No space before: `function foo()` |
|
|
56
|
+
| Async arrow | Space required: `async () =>` |
|
|
57
|
+
| Line endings | LF only |
|
|
58
|
+
| Trailing whitespace | Trimmed (except in `.md` files) |
|
|
59
|
+
| Final newline | Always insert |
|
|
60
60
|
|
|
61
61
|
### Import Conventions
|
|
62
62
|
|
|
@@ -91,13 +91,13 @@ export default clean;
|
|
|
91
91
|
|
|
92
92
|
### Naming Conventions
|
|
93
93
|
|
|
94
|
-
| Entity
|
|
95
|
-
|
|
96
|
-
| Variables, functions, params | camelCase
|
|
97
|
-
| Classes
|
|
98
|
-
| Constants
|
|
99
|
-
| Files
|
|
100
|
-
| Test files
|
|
94
|
+
| Entity | Convention | Examples |
|
|
95
|
+
|------------------------------|---------------------------------|------------------------------------|
|
|
96
|
+
| Variables, functions, params | camelCase | `getTargetPathString`, `srcPaths` |
|
|
97
|
+
| Classes | PascalCase | `Config` |
|
|
98
|
+
| Constants | camelCase (not SCREAMING_SNAKE) | `taskName`, `defaultConfig` |
|
|
99
|
+
| Files | kebab-case with `.mjs` | `set-env-dev.mjs`, `is-prod.mjs` |
|
|
100
|
+
| Test files | `*.test.mjs` | `util.test.mjs`, `config.test.mjs` |
|
|
101
101
|
|
|
102
102
|
### Types
|
|
103
103
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 0.29.0
|
|
8
|
+
2026-02-18
|
|
9
|
+
### Added
|
|
10
|
+
- License file
|
|
11
|
+
- AGENTS.md file for AI agents
|
|
12
|
+
### Changed
|
|
13
|
+
- Upgraded `eslint` to v10
|
|
14
|
+
|
|
15
|
+
## 0.28.0
|
|
16
|
+
2026-02-13
|
|
17
|
+
### Changed
|
|
18
|
+
- Updated `@changke/jstmpl` to v0.1.0
|
|
19
|
+
|
|
7
20
|
## 0.27.0
|
|
8
21
|
2026-02-12
|
|
9
22
|
### Changed
|
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 @changke
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@changke/staticnext-build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Build scripts extracted from StaticNext seed project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"lint": "eslint
|
|
7
|
+
"lint": "eslint",
|
|
8
8
|
"test": "node --test 'test/*.test.mjs'",
|
|
9
9
|
"prepublishOnly": "npm run lint && npm run test"
|
|
10
10
|
},
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@eslint/js": "^
|
|
22
|
+
"@eslint/js": "^10.0.1",
|
|
23
23
|
"@stylistic/eslint-plugin": "^5.8.0",
|
|
24
|
-
"eslint": "^
|
|
25
|
-
"globals": "^
|
|
24
|
+
"eslint": "^10.0.0",
|
|
25
|
+
"globals": "^17.3.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@changke/jstmpl": "^0.0
|
|
28
|
+
"@changke/jstmpl": "^0.1.0",
|
|
29
29
|
"esbuild": "^0.27.3",
|
|
30
30
|
"highlight.js": "^11.11.1",
|
|
31
|
-
"marked": "^17.0.
|
|
31
|
+
"marked": "^17.0.3",
|
|
32
32
|
"marked-highlight": "^2.2.3",
|
|
33
33
|
"marked-xhtml": "^1.0.14",
|
|
34
34
|
"nunjucks": "^3.2.4"
|