-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
66 lines (66 loc) · 2.96 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
{
"name": "books.abird.ca",
"version": "1.0.0",
"description": "An inventory website for books that are in our deep storage. ",
"main": "index.js",
"scripts": {
"clean": "rimraf build && mkdir -p build",
"prebuild:nearley": "./nearleycompile_to_ts.sh src/searchDSL.ne src/typescript/searchLanguage/parse.ts",
"build": "run-s clean prebuild:nearley test:unit build:* test:html",
"ci-build": "run-s clean test:unit build:* test:html",
"build:mkdir": "mkdir -p build",
"build:sanitize-csv:1": "tr -d '\\015' <data/books.csv >/tmp/data-books.csv",
"build:sanitize-csv:2": "mv /tmp/data-books.csv data/books.csv",
"build:data": "csvtojson data/books.csv | jq --arg opacity \"44\" --argfile colors ./data/colors.json --argfile boxes ./data/boxes.json \"$(cat data/books_schema.jq)\" > build/books.json",
"build:thumbnails": "cp data/thumbnails/* build",
"build:src": "run-p build:src:*",
"build:src:typescript": "tsc --emitDeclarationOnly && webpack",
"build:src:assets": "cp src/*.css build && cp -r src/box_labels/qr-codes build",
"build:src:html--index": "pug src/index.pug --out build -O ./build/books.json",
"build:src:html--box-labels": "pug src/box_labels.pug --out build -O ./data/boxes.json",
"test:html": "html-validate --rule no-inline-style:0 build/index.html",
"test:unit": "jest",
"test": "run-s prebuild:nearley test:unit",
"start": "http-server build",
"dev": "run-p watch start",
"watch": "run-p watch:*",
"watch:data": "nodemon --watch data --ext '*' --exec 'npm run build'",
"watch:src": "nodemon --on-change-only --watch src --ext '*' --ignore src/typescript/searchLanguage/parse.ts --exec 'npm run rebuild:src'",
"rebuild:src": "run-s prebuild:nearley build:src:*",
"search": "search/search_by_ip.sh",
"generate-color-map": "ls data/thumbnails/ | xargs -n 1 data/average_color.sh | jq --slurp 'add' > ./data/colors.json",
"generate-qr-codes": "./src/box_labels/generate_qr_codes.sh 'https://books.abird.ca' 'src/box_labels/qr-codes'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alexanderbird/books.abird.ca.git"
},
"author": "Alexander Bird",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/alexanderbird/books.abird.ca/issues"
},
"homepage": "https://github.com/alexanderbird/books.abird.ca#readme",
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@types/jest": "^26.0.15",
"babel-loader": "^8.1.0",
"csvtojson": "^2.0.10",
"html-validate": "^3.3.0",
"http-server": "^0.12.3",
"jest": "^26.6.1",
"nearley": "^2.19.7",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"pug-cli": "^1.0.0-alpha6",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.2",
"typescript": "^4.0.3",
"webpack": "^5.2.0",
"webpack-cli": "^4.1.0"
}
}