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