-
Notifications
You must be signed in to change notification settings - Fork 692
/
Copy pathpackage.json
169 lines (169 loc) · 4.46 KB
/
package.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "create-spectacle",
"version": "0.4.3",
"description": "Project generator for Spectacle",
"main": "bin/cli.js",
"files": [
"bin/",
"spectacle-package.json"
],
"bin": "bin/cli.js",
"author": "Formidable Labs <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/FormidableLabs/spectacle.git"
},
"dependencies": {
"@types/yargs": "^17.0.11",
"chalk": "^4.1.2",
"clear": "^0.1.0",
"cli-spinners": "^2.6.1",
"log-update": "4.0.0",
"prompts": "^2.4.2",
"ts-node": "^10.9.1",
"yargs": "^17.5.1"
},
"devDependencies": {
"@types/node": "^18.0.3",
"@types/prompts": "^2.0.14",
"shx": "^0.3.4",
"spectacle": "*"
},
"resolutions": {},
"scripts": {
"dev": "pnpm copy-spectacle-package && ts-node src/cli.ts",
"build": "wireit",
"types:check": "wireit",
"lint": "wireit",
"lint:fix": "wireit",
"prettier": "wireit",
"prettier:fix": "wireit",
"test": "wireit",
"copy-spectacle-package": "shx cp ../spectacle/package.json ./spectacle-package.json",
"prepack": "pnpm copy-spectacle-package",
"postpack": "shx rm ./spectacle-package.json",
"examples:clean": "rimraf .examples",
"examples:test": "nps jest",
"examples:jsx:clean": "rimraf .examples/jsx",
"examples:jsx:create": "mkdirp .examples && cd .examples && node ../bin/cli.js jsx -t jsx -l en -p 3000",
"examples:jsx:install": "cd .examples/jsx && npm install",
"examples:jsx:build": "cd .examples/jsx && npm run build",
"examples:jsx:start": "cd .examples/jsx && npm start",
"examples:tsx:clean": "rimraf .examples/tsx",
"examples:tsx:create": "mkdirp .examples && cd .examples && node ../bin/cli.js tsx -t tsx -l en -p 3000",
"examples:tsx:install": "cd .examples/tsx && npm install",
"examples:tsx:build": "cd .examples/tsx && npm run build",
"examples:tsx:start": "cd .examples/tsx && npm start",
"examples:onepage:clean": "rimraf .examples/onepage",
"examples:onepage:create": "mkdirp .examples/onepage && cd .examples/onepage && node ../../bin/cli.js index -t onepage -l en",
"examples:onepage:install": "echo unused",
"examples:onepage:build": "echo unused",
"examples:onepage:start": "pnpm exec serve .examples/onepage"
},
"publishConfig": {
"provenance": true
},
"wireit": {
"build": {
"command": "tsc --p tsconfig.build.json",
"files": [
"src/**",
"!src/**/*.test.*",
"tsconfig.json",
"tsconfig.build.json"
],
"output": [
"bin/**/*.js"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"types:check": {
"command": "nps types:check -- -- --p tsconfig.typecheck.json",
"files": [
"src/**/*.{ts,tsx}",
"test/**/*.{ts,tsx}",
"tsconfig.json",
"tsconfig.typecheck.json"
],
"dependencies": [],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint": {
"command": "nps lint:pkg -- -- test",
"files": [
"../../.eslintignore",
"../../.eslintrc",
"*.js",
"src/**",
"test/**"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint:fix": {
"command": "pnpm run lint || nps lint:pkg:fix -- -- test",
"files": [
"../../.eslintignore",
"../../.eslintrc",
"*.js",
"src/**",
"test/**"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"prettier": {
"command": "nps prettier:pkg -- -- src test",
"files": [
"../../.prettierignore",
"../../.prettierrc",
"*.js",
"src/**",
"test/**"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"prettier:fix": {
"command": "pnpm run prettier || nps prettier:pkg:fix -- -- src test",
"files": [
"../../.prettierignore",
"../../.prettierrc",
"*.js",
"src/**",
"test/**"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"test": {
"dependencies": [
"copy-spectacle-package",
"build"
],
"command": "jest --testMatch=\"<rootDir>/src/*.test.ts\"",
"files": [
"src/**",
"../../.babelrc.js"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
}
}
}