-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeno.json
94 lines (94 loc) · 4.08 KB
/
deno.json
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
{
"name": "@layerdynamics/stega",
"version": "1.0.1",
"exports": "./mod.ts",
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.0"
},
"compilerOptions": {
"lib": ["deno.window", "deno.ns"],
"strict": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"types": [
"./src/types/deno.run.d.ts",
"./src/types/symbols.d.ts",
"./src/types/mod.ts",
"./src/types/process.ts",
"./src/types/types.ts"
]
},
"tasks": {
"dev": "deno run --watch mod.ts",
"test": "deno test --allow-read --allow-write --allow-sys --allow-net --allow-env --allow-run --allow-ffi --unstable-kv --unstable-fs --import-map=import_map.json",
"test:setup": "deno run --allow-read --allow-write --allow-env scripts/setup-test-env.ts",
"test:init": "deno task test:setup && mkdir -p src/locales && cp -n ./tests/fixtures/locales/en.json.template ./src/locales/en.json 2>/dev/null || echo '{\"available_commands\":\"Available Commands:\"}' > ./src/locales/en.json",
"test:cache": "rm -rf .deno && mkdir -p .deno && deno cache --reload mod.ts && deno cache --reload 'tests/**/*.ts' 'src/**/*.ts' --import-map=import_map.json && mkdir -p tests/fixtures/dynamic",
"test:clean": "deno run --allow-read --allow-write --allow-env scripts/clean-test-env.ts",
"test:coverage": "DENO_DIR=./.deno deno test --allow-read --allow-write --allow-sys --allow-net --allow-env --allow-run --allow-ffi --coverage=coverage --parallel --trace-ops && sleep 2 && deno coverage coverage --lcov > coverage.lcov",
"test:ci": "DENO_DIR=./.deno TMPDIR=/tmp/test_tmp deno task test:clean && deno task test:init && deno task test:cache && deno task test:coverage",
"build": "deno compile --allow-read --allow-write --allow-env --allow-net --allow-run --import-map=import_map.json mod.ts",
"build:linux": "deno compile --target x86_64-unknown-linux-gnu --allow-read --allow-write --allow-env --allow-net --allow-run --output dist/stega-linux mod.ts",
"build:windows": "deno compile --target x86_64-pc-windows-msvc --allow-read --allow-write --allow-env --allow-net --allow-run --output dist/stega-windows.exe mod.ts",
"build:macos": "deno compile --target x86_64-apple-darwin --allow-read --allow-write --allow-env --allow-net --allow-run --output dist/stega-macos mod.ts",
"build:all": "mkdir -p dist && deno task build:linux && deno task build:windows && deno task build:macos",
"lint": "deno lint",
"fmt": "deno fmt",
"fmt:check": "deno fmt --check",
"check": "deno check --import-map=import_map.json src/mod.ts",
"check:all": "deno task fmt:check && deno lint && deno test --allow-read --allow-write --allow-sys --allow-net --allow-env --allow-run --allow-ffi",
"verify": "deno cache --reload mod.ts && deno task fmt:check && deno lint && deno test --allow-read --allow-write --allow-sys --allow-net --allow-env --allow-run --allow-ffi",
"publish:check": "deno task check:all && deno publish --dry-run",
"format": "deno fmt",
"format:verify": "deno fmt --check",
"prepublish": "deno task verify"
},
"lint": {
"include": ["src/", "tests/"],
"exclude": ["cov/", "dist/"],
"rules": {
"tags": ["recommended"],
"exclude": [
"no-inferrable-types",
"require-await",
"no-unused-vars",
"no-control-regex"
]
}
},
"fmt": {
"include": ["src/", "tests/", "tests/fixtures/"],
"exclude": ["cov/", "dist/", "tests/fixtures/generated/"],
"useTabs": true,
"lineWidth": 80,
"indentWidth": 2,
"singleQuote": false,
"proseWrap": "preserve"
},
"test": {
"include": [
"tests/**/*.test.ts",
"tests/**/*_test.ts"
],
"exclude": [
"tests/fixtures/dynamic/",
"tests/fixtures/generated/",
"tests/fixtures/**/*"
]
},
"publish": {
"include": ["src/**/*.ts", "mod.ts", "LICENSE", "README.md"],
"exclude": [
"**/*.test.ts",
"**/*.spec.ts",
"tests/**/*",
"examples/**/*",
"scripts/**/*",
"coverage/**/*",
"dist/**/*",
".git/**/*",
".github/**/*",
".vscode/**/*"
]
}
}