-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 2.15 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
{
"name": "dazser-map",
"version": "3.1.1",
"description": "Landing page for dazser.com",
"main": "index.html",
"private": true,
"engines": {
"npm": ">=7.20.0"
},
"scripts": {
"build": "npm run clean && npm-run-all --parallel compile:*",
"clean": "rm -rf .build dist && mkdir -p .build",
"lint:ts": "eslint \"**/*.[jt]s\"",
"lint:scss": "stylelint --config .stylelintrc \"src/**/*.scss\"",
"compile:scss": "sass --no-source-map --style=compressed src/styles/main.scss:.build/styles/main.css",
"compile:images": "mkdir -p .build/images && cp src/images/jklogo.png .build/images/ && cp src/images/us.svg .build/images/",
"compile:ts": "tsc -p tsconfig.json",
"compile:html": "cp src/robots.txt .build/ && cp src/index.html .build/ && cp src/favicon.ico .build/",
"test": "npm run build && npx http-server .build",
"dist": "npm run build && npm-run-all --sequential dist:cp dist:replace:stylesheet dist:replace:logo dist:replace:js dist:replace:version",
"dist:cp": "cp -r .build dist && mv dist/index.html dist/index.php && mv dist/styles/main.css dist/style.css && rm -rf dist/styles",
"dist:replace:stylesheet": "sed -i 's|styles/main.css|<?php echo get_stylesheet_uri() ?>|g' dist/index.php",
"dist:replace:logo": "sed -i 's|images/jklogo.png|<?php echo get_template_directory_uri() ?>/images/jklogo.png|g' dist/index.php",
"dist:replace:js": "sed -i 's|scripts/main.js|<?php echo get_template_directory_uri() ?>/scripts/main.js|g' dist/index.php",
"dist:replace:version": "sed -i \"s/1.0.0/$(npm pkg get version | sed 's/\"//g')/g\" dist/style.css"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@sparticuz/eslint-config": "^7.1.3",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"eslint": "^8.20.0",
"inline-source-cli": "^2.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"sass": "^1.54.0",
"stylelint": "^14.9.1",
"stylelint-config-recommended-scss": "^7.0.0",
"stylelint-config-twbs-bootstrap": "^5.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.3.0",
"typescript": "^4.7.4"
}
}