@stacksjs/ts-css 0.1.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/CHANGELOG.md +173 -0
- package/LICENSE.md +21 -0
- package/README.md +213 -0
- package/dist/config.d.ts +4 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +7835 -0
- package/dist/optimize/clean/comment.d.ts +2 -0
- package/dist/optimize/clean/declaration.d.ts +2 -0
- package/dist/optimize/clean/index.d.ts +2 -0
- package/dist/optimize/compress/index.d.ts +5 -0
- package/dist/optimize/index.d.ts +13 -0
- package/dist/optimize/index.js +3390 -0
- package/dist/optimize/minify.d.ts +14 -0
- package/dist/optimize/specificity.d.ts +5 -0
- package/dist/parse/clone.d.ts +2 -0
- package/dist/parse/generator.d.ts +2 -0
- package/dist/parse/index.d.ts +58 -0
- package/dist/parse/index.js +2369 -0
- package/dist/parse/list.d.ts +54 -0
- package/dist/parse/parser/index.d.ts +6 -0
- package/dist/parse/tokenizer.d.ts +67 -0
- package/dist/parse/types.d.ts +264 -0
- package/dist/parse/walker.d.ts +55 -0
- package/dist/select/index.d.ts +18 -0
- package/dist/select/index.js +1289 -0
- package/dist/select/types.d.ts +41 -0
- package/dist/types.d.ts +9 -0
- package/dist/what/index.d.ts +20 -0
- package/dist/what/index.js +514 -0
- package/dist/what/parse.d.ts +2 -0
- package/dist/what/stringify.d.ts +2 -0
- package/dist/what/traversal.d.ts +3 -0
- package/dist/what/types.d.ts +66 -0
- package/package.json +123 -0
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/ts-css",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Pure-TypeScript CSS toolkit for Bun/Node — parser, walker, generator, selector engine, and minifier. Zero runtime deps.",
|
|
6
|
+
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/stacksjs/ts-css#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/stacksjs/ts-css.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/stacksjs/ts-css/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"typescript",
|
|
18
|
+
"bun",
|
|
19
|
+
"css",
|
|
20
|
+
"parser",
|
|
21
|
+
"minifier",
|
|
22
|
+
"selector",
|
|
23
|
+
"ast",
|
|
24
|
+
"walker",
|
|
25
|
+
"generator",
|
|
26
|
+
"csso",
|
|
27
|
+
"css-tree",
|
|
28
|
+
"css-select",
|
|
29
|
+
"css-what"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"import": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./parse": {
|
|
37
|
+
"types": "./dist/parse/index.d.ts",
|
|
38
|
+
"import": "./dist/parse/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./what": {
|
|
41
|
+
"types": "./dist/what/index.d.ts",
|
|
42
|
+
"import": "./dist/what/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./select": {
|
|
45
|
+
"types": "./dist/select/index.d.ts",
|
|
46
|
+
"import": "./dist/select/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./optimize": {
|
|
49
|
+
"types": "./dist/optimize/index.d.ts",
|
|
50
|
+
"import": "./dist/optimize/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./*": {
|
|
53
|
+
"import": "./dist/*"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"module": "./dist/index.js",
|
|
57
|
+
"types": "./dist/index.d.ts",
|
|
58
|
+
"bin": {
|
|
59
|
+
"ts-css": "./dist/bin/cli.js"
|
|
60
|
+
},
|
|
61
|
+
"files": [
|
|
62
|
+
"README.md",
|
|
63
|
+
"dist"
|
|
64
|
+
],
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "bun --bun build.ts && bun run compile",
|
|
67
|
+
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/ts-css",
|
|
68
|
+
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
|
|
69
|
+
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/ts-css-linux-x64",
|
|
70
|
+
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/ts-css-linux-arm64",
|
|
71
|
+
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/ts-css-windows-x64.exe",
|
|
72
|
+
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/ts-css-darwin-x64",
|
|
73
|
+
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/ts-css-darwin-arm64",
|
|
74
|
+
"zip": "bun run zip:all",
|
|
75
|
+
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
|
|
76
|
+
"zip:linux-x64": "zip -j bin/ts-css-linux-x64.zip bin/ts-css-linux-x64",
|
|
77
|
+
"zip:linux-arm64": "zip -j bin/ts-css-linux-arm64.zip bin/ts-css-linux-arm64",
|
|
78
|
+
"zip:windows-x64": "zip -j bin/ts-css-windows-x64.zip bin/ts-css-windows-x64.exe",
|
|
79
|
+
"zip:darwin-x64": "zip -j bin/ts-css-darwin-x64.zip bin/ts-css-darwin-x64",
|
|
80
|
+
"zip:darwin-arm64": "zip -j bin/ts-css-darwin-arm64.zip bin/ts-css-darwin-arm64",
|
|
81
|
+
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
|
82
|
+
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
|
|
83
|
+
"test": "bun test",
|
|
84
|
+
"bench": "bun bench/index.bench.ts",
|
|
85
|
+
"lint": "bunx --bun pickier .",
|
|
86
|
+
"lint:fix": "bunx --bun pickier . --fix",
|
|
87
|
+
"changelog": "bunx --bun logsmith --verbose",
|
|
88
|
+
"changelog:generate": "bunx --bun logsmith --output CHANGELOG.md",
|
|
89
|
+
"release": "bun --bun run changelog:generate && bunx --bun bumpx prompt --recursive",
|
|
90
|
+
"release:patch": "bun --bun run changelog:generate && bunx --bun bumpx patch --yes --recursive",
|
|
91
|
+
"release:minor": "bun --bun run changelog:generate && bunx --bun bumpx minor --yes --recursive",
|
|
92
|
+
"postinstall": "bunx git-hooks",
|
|
93
|
+
"dev:docs": "bun --bun bunpress dev docs",
|
|
94
|
+
"build:docs": "bun --bun bunpress build docs",
|
|
95
|
+
"preview:docs": "bun --bun bunpress preview docs",
|
|
96
|
+
"typecheck": "bun --bun tsc --noEmit",
|
|
97
|
+
"format": "bunx --bun pickier . --format",
|
|
98
|
+
"format:fix": "bunx --bun pickier . --format --write"
|
|
99
|
+
},
|
|
100
|
+
"dependencies": {
|
|
101
|
+
"bunfig": "^0.15.6"
|
|
102
|
+
},
|
|
103
|
+
"devDependencies": {
|
|
104
|
+
"@types/bun": "latest",
|
|
105
|
+
"@types/css-tree": "^2.3.11",
|
|
106
|
+
"@types/csso": "^5.0.4",
|
|
107
|
+
"better-dx": "^0.2.7",
|
|
108
|
+
"css-select": "^7.0.0",
|
|
109
|
+
"css-tree": "^3.2.1",
|
|
110
|
+
"css-what": "^8.0.0",
|
|
111
|
+
"csso": "^5.0.5",
|
|
112
|
+
"mitata": "^1.0.34"
|
|
113
|
+
},
|
|
114
|
+
"git-hooks": {
|
|
115
|
+
"pre-commit": {
|
|
116
|
+
"stagedLint": {
|
|
117
|
+
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
|
|
118
|
+
},
|
|
119
|
+
"autoRestage": true
|
|
120
|
+
},
|
|
121
|
+
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"
|
|
122
|
+
}
|
|
123
|
+
}
|