-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
55 lines (55 loc) · 2.27 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
{
"name": "purescript-docs-search",
"type": "module",
"version": "0.0.12",
"description": "Search frontend for the documentation generated by the PureScript compiler.",
"directories": {
"test": "test"
},
"bin": {
"purescript-docs-search": "dist/purescript-docs-search.cjs"
},
"files": [
"dist/purescript-docs-search.cjs",
"dist/docs-search-app.js",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"test": "spago docs --no-search && ./dist/purescript-docs-search.cjs build-index && spago test && npm run check-version",
"bundle-app": "spago bundle-app --no-build --no-install -m Docs.Search.App --to dist/docs-search-app.js",
"esbuild-app": "esbuild dist/docs-search-app.js --target=es2016 --bundle --minify --outfile=dist/docs-search-app.min.js && mv dist/docs-search-app.min.js dist/docs-search-app.js",
"build-app": "npm run bundle-app && npm run esbuild-app",
"bundle-main": "spago bundle-app --no-build --no-install --platform node -m Docs.Search.Main --to dist/main.js",
"esbuild-main": "esbuild dist/main.js --platform=node --bundle --minify --outfile=dist/main.min.js && mv dist/main.min.js dist/main.js",
"add-shebang": "echo \"#!/usr/bin/env node\" > dist/purescript-docs-search.cjs && cat dist/main.js >> dist/purescript-docs-search.cjs",
"chmod-main": "chmod +x dist/purescript-docs-search.cjs",
"build-main": "npm run bundle-main && npm run esbuild-main && npm run add-shebang && rm dist/main.js && npm run chmod-main",
"build": "spago build && npm run build-app && npm run build-main",
"clean": "rm -rf dist",
"check-version": "[ \"$(./dist/purescript-docs-search.cjs version)\" = \"$npm_package_version\" ]"
},
"repository": {
"type": "git",
"url": "git+https://github.com/purescript/purescript-docs-search.git"
},
"keywords": [
"purescript"
],
"author": "Kalnitsky Vladimir <klntsky@gmail.com>",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/purescript/purescript-docs-search/issues"
},
"homepage": "https://github.com/purescript/purescript-docs-search#readme",
"dependencies": {
"punycode": "^2.1.1"
},
"devDependencies": {
"esbuild": "^0.11.10",
"glob": "^7.1.6",
"markdown-it": "^12.0.4",
"puppeteer": "^8.0.0",
"spago": "^0.20.9"
}
}