Serve from the correct location

This commit is contained in:
Jordan Eldredge 2023-01-08 21:10:56 -08:00
parent f9f6990bea
commit 47d815a552
2 changed files with 24 additions and 4 deletions

View file

@ -37,10 +37,10 @@
"lint": "eslint . --ext ts,tsx,js",
"type-check": "tsc",
"build": "parcel build --target demo-site",
"build-library": "parcel build --target webamp --target webamp-lazy --target webamp-browser && yarn move-library",
"move-library": "mkdir built && cp dist/webamp-browser/webampBrowser.js built/webamp.bundle.min.js && cp dist/webamp-lazy/webampLazy.js built/webamp.lazy-bundle.min.js",
"prepublishOnly": "npm run build-library",
"serve": "http-server ./demo/built",
"build-library": "parcel build --target webamp --target webamp-lazy --target webamp-browser --reporter @parcel/reporter-bundle-analyzer",
"move-library": "mkdir built; cp dist/webamp-browser/webampBrowser.js built/webamp.bundle.min.js && cp dist/webamp-lazy/webampLazy.js built/webamp.lazy-bundle.min.js",
"prepublishOnly": "npm run build-library && npm run move-library",
"serve": "http-server ./dist/demo-site",
"start": "parcel demo/index.html",
"test": "jest --config=config/jest.unit.js",
"tdd": "jest --config=config/jest.unit.js --watch",
@ -69,6 +69,7 @@
},
"homepage": "https://github.com/captbaritone/webamp/",
"devDependencies": {
"@parcel/reporter-bundle-analyzer": "^2.8.2",
"@types/classnames": "^2.2.6",
"@types/fscreen": "^1.0.1",
"@types/invariant": "^2.2.29",
@ -96,6 +97,7 @@
"jest-image-snapshot": "^2.12.0",
"jest-puppeteer": "^4.4.0",
"parcel": "^2.8.2",
"postcss": "^8.4.21",
"puppeteer": "^1.15.0",
"react-test-renderer": "^17.0.1",
"style-loader": "^0.23.1",

View file

@ -4486,6 +4486,15 @@
dependencies:
"@parcel/types" "2.8.2"
"@parcel/reporter-bundle-analyzer@^2.8.2":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@parcel/reporter-bundle-analyzer/-/reporter-bundle-analyzer-2.8.2.tgz#996986c477911cde5bdb8a4a2fe44ffcdd11e571"
integrity sha512-naUFCTNO0WmSyDkpC9T9QiAEfyqVA6ToDm42rTKZ8MXUP0b88yGxMRfWZ4FY4eK0nJIyWGdalj5a5vzTE55nWA==
dependencies:
"@parcel/plugin" "2.8.2"
"@parcel/utils" "2.8.2"
nullthrows "^1.1.1"
"@parcel/reporter-cli@2.8.2":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@parcel/reporter-cli/-/reporter-cli-2.8.2.tgz#bfd63b8bfb0bd72e483f4de496af6dc8e819a97e"
@ -20681,6 +20690,15 @@ postcss@^8.3.5:
picocolors "^1.0.0"
source-map-js "^1.0.2"
postcss@^8.4.21:
version "8.4.21"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.21.tgz#c639b719a57efc3187b13a1d765675485f4134f4"
integrity sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==
dependencies:
nanoid "^3.3.4"
picocolors "^1.0.0"
source-map-js "^1.0.2"
posthtml-parser@^0.10.1:
version "0.10.2"
resolved "https://registry.yarnpkg.com/posthtml-parser/-/posthtml-parser-0.10.2.tgz#df364d7b179f2a6bf0466b56be7b98fd4e97c573"