pickier 0.0.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/dist/cli/run-format.d.ts +11 -0
- package/dist/cli/run-lint.d.ts +27 -0
- package/dist/config.d.ts +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7330 -0
- package/dist/types.d.ts +30 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +82 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare type RuleSeverity = 'off' | 'warn' | 'error'
|
|
2
|
+
|
|
3
|
+
export interface PickierRulesConfig {
|
|
4
|
+
noDebugger: RuleSeverity
|
|
5
|
+
noConsole: RuleSeverity
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type Extension = 'ts' | 'js' | 'html' | 'css' | 'json' | 'jsonc' | 'md' | 'yaml' | 'yml' | 'stx'
|
|
9
|
+
|
|
10
|
+
export interface PickierLintConfig {
|
|
11
|
+
extensions: Extension[]
|
|
12
|
+
reporter: 'stylish' | 'json' | 'compact'
|
|
13
|
+
cache: boolean
|
|
14
|
+
maxWarnings: number
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PickierFormatConfig {
|
|
18
|
+
extensions: string[]
|
|
19
|
+
trimTrailingWhitespace: boolean
|
|
20
|
+
maxConsecutiveBlankLines: number
|
|
21
|
+
finalNewline: 'one' | 'two' | 'none'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface PickierConfig {
|
|
25
|
+
verbose: boolean
|
|
26
|
+
ignores: string[]
|
|
27
|
+
lint: PickierLintConfig
|
|
28
|
+
format: PickierFormatConfig
|
|
29
|
+
rules: PickierRulesConfig
|
|
30
|
+
}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function colorize(code: string, text: string): string;
|
|
2
|
+
export declare function green(text: string): string;
|
|
3
|
+
export declare function red(text: string): string;
|
|
4
|
+
export declare function yellow(text: string): string;
|
|
5
|
+
export declare function blue(text: string): string;
|
|
6
|
+
export declare function gray(text: string): string;
|
|
7
|
+
export declare function bold(text: string): string;
|
|
8
|
+
export declare const colors: {
|
|
9
|
+
green: (text: string);
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pickier",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Format, lint and more in a fraction of seconds.",
|
|
6
|
+
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/stacksjs/pickier#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/stacksjs/pickier.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/stacksjs/pickier/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"pickier",
|
|
18
|
+
"linter",
|
|
19
|
+
"formatter",
|
|
20
|
+
"bun",
|
|
21
|
+
"fast"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/src/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./*": {
|
|
29
|
+
"import": "./dist/*"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"bin": {
|
|
35
|
+
"pickier": "./dist/bin/cli.js"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"README.md",
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "bun --bun build.ts && bun run compile",
|
|
43
|
+
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/pickier",
|
|
44
|
+
"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",
|
|
45
|
+
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/pickier-linux-x64",
|
|
46
|
+
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/pickier-linux-arm64",
|
|
47
|
+
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/pickier-windows-x64.exe",
|
|
48
|
+
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/pickier-darwin-x64",
|
|
49
|
+
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/pickier-darwin-arm64",
|
|
50
|
+
"zip": "bun run zip:all",
|
|
51
|
+
"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",
|
|
52
|
+
"zip:linux-x64": "zip -j bin/pickier-linux-x64.zip bin/pickier-linux-x64",
|
|
53
|
+
"zip:linux-arm64": "zip -j bin/pickier-linux-arm64.zip bin/pickier-linux-arm64",
|
|
54
|
+
"zip:windows-x64": "zip -j bin/pickier-windows-x64.zip bin/pickier-windows-x64.exe",
|
|
55
|
+
"zip:darwin-x64": "zip -j bin/pickier-darwin-x64.zip bin/pickier-darwin-x64",
|
|
56
|
+
"zip:darwin-arm64": "zip -j bin/pickier-darwin-arm64.zip bin/pickier-darwin-arm64",
|
|
57
|
+
"lint": "bunx --bun eslint .",
|
|
58
|
+
"lint:fix": "bunx --bun eslint . --fix",
|
|
59
|
+
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
|
60
|
+
"changelog": "bunx logsmith --output CHANGELOG.md --theme github --exclude-authors \"dependabot[bot],github-actions[bot]\" --exclude-types \"chore\" --max-commits 50",
|
|
61
|
+
"changelog:generate": "bunx logsmith --output CHANGELOG.md --theme github --exclude-authors \"dependabot[bot],github-actions[bot]\" --exclude-types \"chore\" --max-commits 50",
|
|
62
|
+
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
|
|
63
|
+
"release": "bun run changelog:generate && git add CHANGELOG.md && git commit --amend --no-edit && bunx bumpx prompt --no-push --yes",
|
|
64
|
+
"test": "bun test --coverage"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@stacksjs/clapp": "^0.1.16",
|
|
68
|
+
"fast-glob": "^3.3.2"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"bunfig": "^0.10.1"
|
|
72
|
+
},
|
|
73
|
+
"overrides": {
|
|
74
|
+
"unconfig": "0.3.10"
|
|
75
|
+
},
|
|
76
|
+
"lint-staged": {
|
|
77
|
+
"*.{js,ts}": "bunx --bun eslint . --fix"
|
|
78
|
+
},
|
|
79
|
+
"workspaces": [
|
|
80
|
+
"packages/*"
|
|
81
|
+
]
|
|
82
|
+
}
|