Skip to content

Instantly share code, notes, and snippets.

@sunilw
Last active May 20, 2023 05:58
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 sunilw/8c39c694e0c60875b6530c6844f7ab3e to your computer and use it in GitHub Desktop.
Save sunilw/8c39c694e0c60875b6530c6844f7ab3e to your computer and use it in GitHub Desktop.
{
"name": "website project name",
"version": "0.1.0",
"description": "Custom theme for [whatever]",
"main": "index.js",
"repository": {
"type": "",
"url": ""
},
"keywords": [
"wordpress",
"theme"
],
"author": "",
"license": "ISC",
"bugs": {
"url": ""
},
"homepage": "",
"watch": {
"sass": {
"patterns": [
"./src/sass"
],
"extensions": "scss"
},
"bundle": {
"patterns": [
"./src/js"
]
}
},
"scripts": {
"dev": "concurrently \"npm run watch\" \"npm run bs\" ",
"watch": "npm-watch",
"sass": "sass --style compressed src/sass/mywebsite.scss css/mywebsite.css",
"bundle": "esbuild src/js/scripts.js --sourcemap --bundle --minify --outfile=js/mywebsite.js ",
"bs": "browser-sync start --proxy 'http:\/\/mywebsite.localdev' --files \"css\" \"js\" "
},
"devDependencies": {
"browser-sync": "^2.27.7",
"concurrently": "^8.0.1",
"esbuild": "^0.17.19",
"npm-watch": "^0.11.0",
"readable-stream": "^3.6.0",
"sass": "^1.62.1",
"stream-combiner2": "^1.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment