Skip to content

Instantly share code, notes, and snippets.

@sunilw
Last active May 20, 2023 05:58
Show Gist options
  • Save sunilw/8c39c694e0c60875b6530c6844f7ab3e to your computer and use it in GitHub Desktop.
Save sunilw/8c39c694e0c60875b6530c6844f7ab3e to your computer and use it in GitHub Desktop.

Revisions

  1. sunilw revised this gist May 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@
    "scripts": {
    "dev": "concurrently \"npm run watch\" \"npm run bs\" ",
    "watch": "npm-watch",
    "sass": "sass --style compressed src/sass/mywebsite.scss css/womens-rights-party.css",
    "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\" "
    },
  2. sunilw renamed this gist May 20, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. sunilw created this gist May 20, 2023.
    49 changes: 49 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    {
    "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/womens-rights-party.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"
    }
    }