mirror of
https://github.com/rowtype-yoga/purescript-docs-search.git
synced 2024-08-17 00:20:27 +03:00
parent
4d0c6f4969
commit
06f26b369e
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
|||||||
/.psa*
|
/.psa*
|
||||||
/.spago/
|
/.spago/
|
||||||
/dist/
|
/dist/
|
||||||
|
/.cache/
|
||||||
|
@ -27,14 +27,14 @@ script:
|
|||||||
- spago test
|
- spago test
|
||||||
- spago docs
|
- spago docs
|
||||||
- npm run build
|
- npm run build
|
||||||
- node dist/main.js build-index
|
- ./dist/purescript-docs-search build-index
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key: $API_KEY
|
api_key: $API_KEY
|
||||||
file:
|
file:
|
||||||
- dist/docs-search-app.js
|
- dist/docs-search-app.js
|
||||||
- dist/main.js
|
- dist/purescript-docs-search
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
14
package.json
14
package.json
@ -7,7 +7,7 @@
|
|||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"purescript-docs-search": "dist/main.js"
|
"purescript-docs-search": "dist/purescript-docs-search"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/main.js",
|
"dist/main.js",
|
||||||
@ -17,8 +17,14 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "spago test",
|
"test": "spago test",
|
||||||
"bundle-app": "spago bundle-app -m Docs.Search.App --to dist/docs-search-app.js",
|
"bundle-app": "spago bundle-app -m Docs.Search.App --to dist/docs-search-app.js",
|
||||||
"bundle-main": "spago bundle-app -m Docs.Search.Main --to dist/main.js && browserify --no-builtins --no-commondir --no-detect-globals --node dist/main.js --outfile dist/main-bundled.js && echo \"#!/usr/bin/env node\" > dist/main.js && cat dist/main-bundled.js >> dist/main.js && rm dist/main-bundled.js",
|
"parcel-app": "parcel build --no-source-maps --target browser --out-file dist/docs-search-app.js dist/docs-search-app.js",
|
||||||
"build": "npm run bundle-app && npm run bundle-main",
|
"build-app": "npm run bundle-app && npm run parcel-app",
|
||||||
|
"bundle-main": "spago bundle-app -m Docs.Search.Main --to dist/main.js",
|
||||||
|
"parcel-main": "parcel build --no-source-maps --target node --bundle-node-modules --out-file dist/main.js dist/main.js",
|
||||||
|
"add-shebang": "echo \"#!/usr/bin/env node\" > dist/purescript-docs-search && cat dist/main.js >> dist/purescript-docs-search",
|
||||||
|
"chmod-main": "chmod +x dist/purescript-docs-search",
|
||||||
|
"build-main": "npm run bundle-main && npm run parcel-main && npm run add-shebang && rm dist/main.js && npm run chmod-main",
|
||||||
|
"build": "npm run build-app && npm run build-main",
|
||||||
"clean": "rm -rf dist"
|
"clean": "rm -rf dist"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -36,8 +42,8 @@
|
|||||||
"homepage": "https://github.com/spacchetti/purescript-docs-search#readme",
|
"homepage": "https://github.com/spacchetti/purescript-docs-search#readme",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^16.3.0",
|
|
||||||
"glob": "^7.1.4",
|
"glob": "^7.1.4",
|
||||||
|
"parcel": "^1.12.3",
|
||||||
"spago": "^0.8.5"
|
"spago": "^0.8.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user