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, "private": true,
"scripts": { "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": "web-ext run --source-dir build/ --bc",
"start:chromium": "yarn start --chromium-profile chromium/ --keep-profile-changes --target chromium --start-url \"chrome://extensions\"", "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\"", "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/", "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/", "clean": "trash .cache build/ web-ext-artifacts/",
"bump": "ts-node scripts/bump-version.ts && yarn build", "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'; import git from 'simple-git/promise';
(async (): Promise<void> => { (async (): Promise<void> => {
const manifestJSONPath: string = join( const manifestJSONPath: string = join(__dirname, '../source/manifest.json');
__dirname,
'../source/assets/manifest.json'
);
const packageJSONPath: string = join(__dirname, '../package.json'); const packageJSONPath: string = join(__dirname, '../package.json');
const manifestJSON: any = JSON.parse( const manifestJSON: any = JSON.parse(

View File

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