Last active
October 18, 2021 19:21
-
-
Save KrishGarg/08612787f922853b9a6d79a28066701a to your computer and use it in GitHub Desktop.
A default package.json for vanilla js projects with parcel and del-cli for clean up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "project-name", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"dev": "parcel src/index.html --out-dir build/dev", | |
"build": "parcel build src/index.html --out-dir build/prod --detailed-report", | |
"clean:dev": "del-cli --force ./build/dev", | |
"clean:prod": "del-cli --force ./build/prod", | |
"clean:all": "del-cli --force ./build" | |
}, | |
"devDependencies": { | |
"del-cli": "^4.0.1", | |
"parcel": "^2.0.0", | |
"sass": "^1.42.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package.json for vanilla js (Parcel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment