Skip to content

Commit c84e01f

Browse files
authored
Cleanup dist before build (#269)
* Cleanup dist before build * Use rimraf instead of rm to be os independent * Add line ending
1 parent 855a386 commit c84e01f

File tree

2 files changed

+99
-32
lines changed

2 files changed

+99
-32
lines changed

package-lock.json

+96-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7+
"prebuild": "rimraf dist",
78
"start": "npm-run-all get-theme build:sass --parallel watch:*",
89
"watch:sass": "sass --watch src/site/styles:dist/styles",
910
"watch:eleventy": "cross-env ELEVENTY_ENV=dev eleventy --serve",
@@ -41,6 +42,7 @@
4142
"markdown-it-mathjax3": "^4.3.1",
4243
"markdown-it-plantuml": "^1.4.1",
4344
"markdown-it-task-checkbox": "^1.0.6",
44-
"npm-run-all": "^4.1.5"
45+
"npm-run-all": "^4.1.5",
46+
"rimraf": "^4.4.1"
4547
}
4648
}

0 commit comments

Comments
 (0)