annealer 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +124 -2
- package/dist/index.d.ts +41 -0
- package/dist/index.es.js +295 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +11 -0
- package/dist/types/FormatOptions.d.ts +31 -0
- package/dist/types/Language.d.ts +14 -0
- package/dist/types/Meta.d.ts +18 -0
- package/dist/wasm/binary.d.ts +11 -0
- package/package.json +94 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* annealer
|
|
3
|
+
*
|
|
4
|
+
* @description Reorders HTML/Vue attributes by semantic meaning using swappable YAML profiles.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 0.2.0
|
|
8
|
+
* @see {@link https://github.com/logue/annealer}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { Language } from './Language.js';
|
|
12
|
+
/** Options for `format`. */
|
|
13
|
+
export type FormatOptions = {
|
|
14
|
+
/** Input language. */
|
|
15
|
+
language?: Language;
|
|
16
|
+
/**
|
|
17
|
+
* A built-in profile name (`html`, `vue`) or the YAML text of a profile.
|
|
18
|
+
* Defaults to the built-in profile for `language`.
|
|
19
|
+
*/
|
|
20
|
+
profile?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Order of the classes in static `class` attributes: a built-in class order
|
|
23
|
+
* name (`tailwind`, `bootstrap`) or the YAML text of a class order. Overrides the
|
|
24
|
+
* profile's `classOrder`; by default classes keep their order.
|
|
25
|
+
*/
|
|
26
|
+
classOrder?: string;
|
|
27
|
+
};
|
|
28
|
+
/** Default `format` options. */
|
|
29
|
+
export declare const FormatOptions: {
|
|
30
|
+
readonly language: 'html';
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* annealer
|
|
3
|
+
*
|
|
4
|
+
* @description Reorders HTML/Vue attributes by semantic meaning using swappable YAML profiles.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 0.2.0
|
|
8
|
+
* @see {@link https://github.com/logue/annealer}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** Input language. */
|
|
12
|
+
export type Language = 'html' | 'vue' | 'css' | 'scss' | 'sass' | 'less';
|
|
13
|
+
/** File extensions mapped to their language. */
|
|
14
|
+
export declare const Language: Readonly<Record<string, Language>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* annealer
|
|
3
|
+
*
|
|
4
|
+
* @description Reorders HTML/Vue attributes by semantic meaning using swappable YAML profiles.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 0.2.0
|
|
8
|
+
* @see {@link https://github.com/logue/annealer}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** Build information meta data */
|
|
12
|
+
export type Meta = {
|
|
13
|
+
/** Version */
|
|
14
|
+
version: string;
|
|
15
|
+
/** Build date */
|
|
16
|
+
date: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const Meta: Meta;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* annealer
|
|
3
|
+
*
|
|
4
|
+
* @description Reorders HTML/Vue attributes by semantic meaning using swappable YAML profiles.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 0.2.0
|
|
8
|
+
* @see {@link https://github.com/logue/annealer}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export declare const wasmBase64: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,96 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/package.json",
|
|
2
3
|
"name": "annealer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Reorders HTML/Vue attributes by semantic meaning using swappable YAML profiles.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"formatter"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/logue/annealer",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/logue/annealer/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git@github.com:logue/annealer.git"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Logue",
|
|
20
|
+
"email": "logue@hotmail.co.jp",
|
|
21
|
+
"url": "https://logue.dev/"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.es.js",
|
|
29
|
+
"default": "./dist/index.es.js"
|
|
30
|
+
},
|
|
31
|
+
"./umd": {
|
|
32
|
+
"import": "./dist/index.umd.js",
|
|
33
|
+
"default": "./dist/index.umd.js"
|
|
34
|
+
},
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist/**/*",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"dev": "pnpm run build:wasm && rs dev",
|
|
44
|
+
"dev:docs": "pnpm run build:demo & rs doc",
|
|
45
|
+
"lint": "run-s 'lint:*' --",
|
|
46
|
+
"lint:rslint": "rs lint . --fix",
|
|
47
|
+
"lint:prettier": "rs fmt .",
|
|
48
|
+
"analyze": "pnpm run build:wasm && RSDOCTOR=true rs lib",
|
|
49
|
+
"test": "pnpm run build:wasm && rs test",
|
|
50
|
+
"test:watch": "pnpm run build:wasm && rs test --watch",
|
|
51
|
+
"clean": "rimraf demo dist docs src/wasm",
|
|
52
|
+
"clean:hard": "rimraf demo dist docs src/wasm node_modules/.tmp node_modules/.cache",
|
|
53
|
+
"build": "pnpm run build:wasm && rs lib",
|
|
54
|
+
"build:demo": "pnpm run build:wasm && rs build",
|
|
55
|
+
"build:docs": "pnpm run build:demo && pnpm run build:rspress",
|
|
56
|
+
"build:rspress": "rs doc build",
|
|
57
|
+
"build:wasm": "node scripts/build-wasm.mjs",
|
|
58
|
+
"generate:tailwind": "node scripts/generate-tailwind-order.mjs",
|
|
59
|
+
"generate:bootstrap": "node scripts/generate-bootstrap-order.mjs",
|
|
60
|
+
"preview": "rs preview",
|
|
61
|
+
"preview:docs": "rs doc preview",
|
|
62
|
+
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
63
|
+
"skills:install": "npx --no-install skills --version >/dev/null 2>&1 && npx skills experimental_install --yes || echo '\\033[1;33m⚠️ [Warning] skills command not found. Skipped auto-installation of agent skills.\\033[0m'",
|
|
64
|
+
"skills:update": "npx skills update",
|
|
65
|
+
"prepare": "rs hooks && pnpm run skills:install"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@carbon/styles": "^1.120.0",
|
|
69
|
+
"@carbon/type": "^11.71.0",
|
|
70
|
+
"@carbon/web-components": "^2.68.0",
|
|
71
|
+
"@rsbuild/plugin-sass": "^2.0.1",
|
|
72
|
+
"@rsbuild/plugin-type-check": "^1.6.1",
|
|
73
|
+
"@rsdoctor/cli": "^2.0.4",
|
|
74
|
+
"@rsdoctor/core": "^2.0.4",
|
|
75
|
+
"@rsdoctor/rspack-plugin": "^1.6.5",
|
|
76
|
+
"@rspress/core": "^2.1.4",
|
|
77
|
+
"@tsconfig/node-lts": "^26.0.1",
|
|
78
|
+
"@types/node": "^26.6.6",
|
|
79
|
+
"@types/react": "^19.3.0",
|
|
80
|
+
"bootstrap": "6.0.0-alpha.1",
|
|
81
|
+
"cross-env": "^10.1.0",
|
|
82
|
+
"eslint-config-prettier": "^10.1.8",
|
|
83
|
+
"happy-dom": "^21.0.4",
|
|
84
|
+
"npm-run-all2": "^9.0.4",
|
|
85
|
+
"prettier-plugin-yaml": "^1.3.2",
|
|
86
|
+
"react": "^19.3.1",
|
|
87
|
+
"react-dom": "^19.3.1",
|
|
88
|
+
"rimraf": "^6.1.4",
|
|
89
|
+
"rstack": "^0.9.3",
|
|
90
|
+
"tailwindcss": "^4.3.5",
|
|
91
|
+
"taze": "^21.3.0",
|
|
92
|
+
"typescript": "^7.0.2",
|
|
93
|
+
"vue-codemirror6": "^1.8.0"
|
|
94
|
+
},
|
|
95
|
+
"packageManager": "pnpm@12.21.0"
|
|
96
|
+
}
|