-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
25 lines (25 loc) · 1.15 KB
/
package.json
File metadata and controls
25 lines (25 loc) · 1.15 KB
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
{
"name": "web-client",
"version": "0.1.0",
"private": true,
"description": "Web client (TypeScript + SCSS + SCSS + HTML) — lightweight build using esbuild and sass",
"scripts": {
"dev": "concurrently \"esbuild src/main.ts --bundle --outfile=src/assets/app.js --sourcemap --watch\" \"sass src/styles/main.scss src/assets/css/main.css --watch\" \"live-server src --port=3000 --open=./index.html\"",
"build:styles": "sass src/styles/main.scss dist/assets/css/main.css --no-source-map",
"build:js": "esbuild src/main.ts --bundle --minify --target=es2017 --outfile=dist/assets/app.js",
"build:html": "cpy \"src/*.html\" dist/",
"build": "rimraf dist && mkdir -p dist && npm run build:styles && npm run build:js && npm run build:copy",
"clean": "rimraf dist src/assets",
"format": "prettier --write \"src/**/*.{ts,scss,html}\""
},
"devDependencies": {
"esbuild": "^0.19.0",
"sass": "^1.72.0",
"concurrently": "^8.2.0",
"live-server": "^1.2.2",
"cpy-cli": "^4.1.0",
"rimraf": "^5.0.0",
"prettier": "^3.0.0",
"typescript": "^5.5.0"
}
}