1
Fork 0

Make Parcel not output directories with leading underscores.

This commit is contained in:
Bauke 2020-06-10 14:51:47 +02:00
parent 6d0cb8b40d
commit 66e1b98393
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
4 changed files with 17 additions and 20 deletions

View File

@ -9,11 +9,11 @@
],
"private": true,
"scripts": {
"watch": "NODE_ENV=development parcel source/assets/manifest.json -d build/ --no-hmr",
"watch": "NODE_ENV=development parcel source/manifest.json -d build/ --no-hmr",
"start": "web-ext run --source-dir build/ --bc",
"start:chromium": "yarn start --chromium-profile chromium/ --keep-profile-changes --target chromium --start-url \"chrome://extensions\"",
"start:firefox": "yarn start --firefox-profile firefox/ --keep-profile-changes --target firefox-desktop --start-url \"about:debugging#/runtime/this-firefox\"",
"build": "yarn clean && parcel build source/assets/manifest.json -d build/ && web-ext build --source-dir build/ && yarn zip-source",
"build": "yarn clean && parcel build source/manifest.json -d build/ && web-ext build --source-dir build/ && yarn zip-source",
"zip-source": "zip -r web-ext-artifacts/tildes_reextended-source.zip ReadMe.md yarn.lock tsconfig.json package.json .gitignore License source/ scripts/ .vscode/",
"clean": "trash .cache build/ web-ext-artifacts/",
"bump": "ts-node scripts/bump-version.ts && yarn build",

View File

@ -5,10 +5,7 @@ import semver from 'semver';
import git from 'simple-git/promise';
(async (): Promise<void> => {
const manifestJSONPath: string = join(
__dirname,
'../source/assets/manifest.json'
);
const manifestJSONPath: string = join(__dirname, '../source/manifest.json');
const packageJSONPath: string = join(__dirname, '../package.json');
const manifestJSON: any = JSON.parse(

View File

@ -11,23 +11,23 @@
],
"content_security_policy": "script-src 'self'; object-src 'self'; style-src 'unsafe-inline'",
"web_accessible_resources": [
"./**"
"./assets/**"
],
"icons": {
"128": "./tildes-reextended-128.png"
"128": "./assets/tildes-reextended-128.png"
},
"background": {
"scripts": [
"../ts/background.ts"
"./ts/background.ts"
]
},
"browser_action": {
"default_icon": {
"128": "./tildes-reextended-128.png"
"128": "./assets/tildes-reextended-128.png"
}
},
"options_ui": {
"page": "../html/options.html",
"page": "./html/options.html",
"open_in_tab": true
},
"content_scripts": [
@ -37,17 +37,17 @@
],
"run_at": "document_end",
"css": [
"../scss/scripts/jump-to-new-comment.scss",
"../scss/scripts/back-to-top.scss",
"../scss/scripts/user-labels.scss",
"../scss/scripts/markdown-toolbar.scss"
"./scss/scripts/jump-to-new-comment.scss",
"./scss/scripts/back-to-top.scss",
"./scss/scripts/user-labels.scss",
"./scss/scripts/markdown-toolbar.scss"
],
"js": [
"../ts/scripts/jump-to-new-comment.ts",
"../ts/scripts/back-to-top.ts",
"../ts/scripts/user-labels.ts",
"../ts/scripts/markdown-toolbar.ts",
"../ts/scripts/hide-votes.ts"
"./ts/scripts/jump-to-new-comment.ts",
"./ts/scripts/back-to-top.ts",
"./ts/scripts/user-labels.ts",
"./ts/scripts/markdown-toolbar.ts",
"./ts/scripts/hide-votes.ts"
]
}
],