mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-22 18:18:55 +00:00
Publish: fix Docker build failing because of Playwright, and make a convenience npm task for it
This commit is contained in:
parent
8bbc7cacbd
commit
334cbe28a5
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -75,4 +75,4 @@ jobs:
|
|||||||
- env:
|
- env:
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
||||||
run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
||||||
- run: npm run test -- --testPathIgnorePatterns ".*playwright.*"
|
- run: npm run test:noplaywright
|
||||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
node-version: '18' # Align the version of Node here with ci.yml.
|
node-version: '18' # Align the version of Node here with ci.yml.
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
- run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
||||||
- run: npm run test -- --testPathIgnorePatterns ".*playwright.*"
|
- run: npm run test:noplaywright
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
env:
|
env:
|
||||||
|
@ -32,7 +32,7 @@ RUN find ./icon-scripts ./src ./app -type f -print0 | xargs -0 dos2unix
|
|||||||
# Cleanup leftover files in this step to not waste Docker layer space
|
# Cleanup leftover files in this step to not waste Docker layer space
|
||||||
# Make sure nativefier is executable
|
# Make sure nativefier is executable
|
||||||
RUN npm link \
|
RUN npm link \
|
||||||
&& npm test \
|
&& npm run test:noplaywright \
|
||||||
&& rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \
|
&& rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \
|
||||||
&& chmod +x $NPM_PACKAGES/bin/nativefier
|
&& chmod +x $NPM_PACKAGES/bin/nativefier
|
||||||
|
|
||||||
|
11
package.json
11
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nativefier",
|
"name": "nativefier",
|
||||||
"version": "47.1.1",
|
"version": "47.0.0",
|
||||||
"description": "Wrap web apps natively",
|
"description": "Wrap web apps natively",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Goh Jia Hao",
|
"author": "Goh Jia Hao",
|
||||||
@ -43,10 +43,13 @@
|
|||||||
"lint": "eslint shared app src --ext .ts",
|
"lint": "eslint shared app src --ext .ts",
|
||||||
"list-outdated-deps": "npm out; cd app && npm out; true",
|
"list-outdated-deps": "npm out; cd app && npm out; true",
|
||||||
"prepare": "cd app && npm ci && cd .. && npm run build",
|
"prepare": "cd app && npm ci && cd .. && npm run build",
|
||||||
"relock": "rm -rf ./node_modules/ ./app/node_modules/ ./npm-shrinkwrap.json ./app/npm-shrinkwrap.json && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out; cd app && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
"relock:cli": "rm -rf ./node_modules/ ./npm-shrinkwrap.json && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
||||||
|
"relock:app": "rm -rf ./app/node_modules/ ./app/npm-shrinkwrap.json && cd app && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
||||||
|
"relock": "npm run relock:cli; npm run relock:app",
|
||||||
"test:integration": "jest --testRegex '.*integration-test.js'",
|
"test:integration": "jest --testRegex '.*integration-test.js'",
|
||||||
"test:manual": "npm run build && bash .github/manual-test",
|
"test:manual": "npm run build && bash .github/manual-test",
|
||||||
"test:playwright": "jest --detectOpenHandles --testRegex '.*playwright-test.js'",
|
"test:playwright": "jest --detectOpenHandles --testRegex '.*playwright-test.js'",
|
||||||
|
"test:noplaywright": "jest --testRegex '[-.]test\\.js$' --testPathIgnorePatterns '.*playwright.*'",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"test:watch": "echo 'Remember to run npm run build:watch for the test watcher to work!' && jest --watchAll --collectCoverage=false",
|
"test:watch": "echo 'Remember to run npm run build:watch for the test watcher to work!' && jest --watchAll --collectCoverage=false",
|
||||||
"test:withlog": "LOGLEVEL=trace npm run test",
|
"test:withlog": "LOGLEVEL=trace npm run test",
|
||||||
@ -69,10 +72,10 @@
|
|||||||
"yargs": "^17.1.1"
|
"yargs": "^17.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@jest/types": "^28.0.2",
|
||||||
"@types/debug": "^4.1.6",
|
"@types/debug": "^4.1.6",
|
||||||
"@types/fs-extra": "^9.0.13",
|
"@types/fs-extra": "^9.0.13",
|
||||||
"@types/hasbin": "^1.2.0",
|
"@types/hasbin": "^1.2.0",
|
||||||
"@types/jest": "^27.0.1",
|
|
||||||
"@types/ncp": "^2.0.5",
|
"@types/ncp": "^2.0.5",
|
||||||
"@types/node": "14.14.20",
|
"@types/node": "14.14.20",
|
||||||
"@types/page-icon": "^0.3.4",
|
"@types/page-icon": "^0.3.4",
|
||||||
@ -83,7 +86,7 @@
|
|||||||
"eslint": "^8.1.0",
|
"eslint": "^8.1.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"jest": "^27.0.6",
|
"jest": "^28.0.3",
|
||||||
"playwright": "^1.21.1",
|
"playwright": "^1.21.1",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user