Skip to content

Instantly share code, notes, and snippets.

@KrishGarg
Last active October 18, 2021 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KrishGarg/08612787f922853b9a6d79a28066701a to your computer and use it in GitHub Desktop.
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.
{
"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"
}
}
Package.json for vanilla js (Parcel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment