mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-05 04:47:54 +00:00
125 lines
5.2 KiB
JSON
125 lines
5.2 KiB
JSON
{
|
|
"name": "nativefier",
|
|
"version": "44.0.6",
|
|
"description": "Wrap web apps natively",
|
|
"license": "MIT",
|
|
"author": "Goh Jia Hao",
|
|
"engines_README": "Bumping the minimum required Node version? You must bump: 1. package.json -> engines.node, 2. package.json -> devDependencies.@types/node , 3. tsconfig.json -> {target, lib} , 4. .github/workflows/ci.yml -> node-version",
|
|
"engines_READMEforEnginesNode": "Here in engines.node, we require a version as old as possible, for Nativefier to be easily installable using the stock Node.js shipped by conservative Linux distros. It's a balancing act between this, and our own dependencies requiring more a recent Node; as much as possible, try to keep supporting Debian stable; https://packages.debian.org/search?suite=stable&keywords=nodejs",
|
|
"engines": {
|
|
"node": ">= 12.9.0",
|
|
"npm": ">= 6.9.0"
|
|
},
|
|
"keywords": [
|
|
"desktop",
|
|
"electron",
|
|
"app",
|
|
"native",
|
|
"wrapper"
|
|
],
|
|
"main": "lib/main.js",
|
|
"typings": "lib/main.d.ts",
|
|
"bin": {
|
|
"nativefier": "lib/cli.js"
|
|
},
|
|
"homepage": "https://github.com/nativefier/nativefier",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/nativefier/nativefier.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/nativefier/nativefier/issues"
|
|
},
|
|
"scripts": {
|
|
"build-app": "cd app && webpack",
|
|
"build-app-static": "ncp app/src/static/ app/lib/static/ && ncp app/dist/preload.js app/lib/preload.js && ncp app/dist/preload.js.map app/lib/preload.js.map",
|
|
"build": "npm run clean && tsc --build shared src app && npm run build-app && npm run build-app-static",
|
|
"build:watch": "npm run clean && tsc --build . app --watch",
|
|
"changelog": "./.github/generate-changelog",
|
|
"ci": "npm run lint && npm test",
|
|
"clean": "rimraf coverage/ lib/ app/lib/ app/dist/ shared/lib",
|
|
"clean:full": "npm run clean && rimraf app/node_modules/ node_modules/",
|
|
"lint:fix": "cd src && eslint . --ext .ts --fix && cd ../shared && eslint src --ext .ts --fix && cd ../app && eslint src --ext .ts --fix",
|
|
"lint:format": "prettier --write 'src/**/*.ts' 'app/src/**/*.ts' 'shared/src/**/*.ts'",
|
|
"lint": "eslint shared app src --ext .ts",
|
|
"list-outdated-deps": "npm out; cd app && npm out; true",
|
|
"prepare": "cd app && npm install && cd .. && npm run build",
|
|
"test:integration": "jest --testRegex '.*integration-test.js'",
|
|
"test:manual": "npm run build && ./.github/manual-test",
|
|
"test:unit": "jest",
|
|
"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": "jest --testRegex '[-.]test\\.js$'",
|
|
"watch": "npx concurrently \"npm:*:watch\""
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.21.1",
|
|
"electron-packager": "^15.2.0",
|
|
"gitcloud": "^0.2.3",
|
|
"hasbin": "^1.2.3",
|
|
"loglevel": "^1.7.1",
|
|
"ncp": "^2.0.0",
|
|
"page-icon": "^0.4.0",
|
|
"sanitize-filename": "^1.6.3",
|
|
"source-map-support": "^0.5.19",
|
|
"tmp": "^0.2.1",
|
|
"yargs": "^17.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/electron-packager": "^15.0.1",
|
|
"@types/hasbin": "^1.2.0",
|
|
"@types/jest": "^26.0.23",
|
|
"@types/loglevel": "^1.6.3",
|
|
"@types/ncp": "^2.0.4",
|
|
"@types/node": "^12.20.15",
|
|
"@types/page-icon": "^0.3.3",
|
|
"@types/tmp": "^0.2.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.27.0",
|
|
"@typescript-eslint/parser": "^4.27.0",
|
|
"eslint": "^7.28.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-prettier": "^3.4.0",
|
|
"jest": "^27.0.4",
|
|
"prettier": "^2.3.1",
|
|
"rimraf": "^3.0.2",
|
|
"ts-loader": "^9.2.3",
|
|
"typescript": "^4.3.2",
|
|
"webpack": "^5.38.1",
|
|
"webpack-cli": "^4.7.2"
|
|
},
|
|
"jest_COMMENTS": {
|
|
"testPathIgnorePatterns": "See https://jestjs.io/docs/configuration#testpathignorepatterns-arraystring . We set it to 1. ignore coverage for deps, and 2. be sure we test the compiled JS, which is in `lib`, not `src` or `dist`",
|
|
"watchPathIgnorePatterns": "See https://jestjs.io/docs/configuration#watchpathignorepatterns-arraystring . We set it for `jest --watch` (a.k.a. `npm run test:watch`) to trigger only after `tsc --watch` (a.k.a. `npm run build:watch`) completes its incremental compilation. Else, jest will pick up immediately on changes in `src` when TSC is barely running, hence testing not-recompiled-yet code and being super confusing, as 1. your changes won't be taken during this first run, and 2. the *next* run (e.g. after a second 'Save' in your editor) will actually have the new code :D"
|
|
},
|
|
"jest": {
|
|
"collectCoverage": true,
|
|
"moduleNameMapper": {
|
|
"^electron$": "<rootDir>/app/dist/mocks/electron.js"
|
|
},
|
|
"setupFiles": [
|
|
"./lib/jestSetupFiles"
|
|
],
|
|
"testEnvironment": "node",
|
|
"testPathIgnorePatterns": [
|
|
"<rootDir>/src.*",
|
|
"<rootDir>/node_modules.*",
|
|
"<rootDir>/app/src.*",
|
|
"<rootDir>/app/lib.*",
|
|
"<rootDir>/app/node_modules.*"
|
|
],
|
|
"watchPathIgnorePatterns": [
|
|
"<rootDir>/src.*",
|
|
"<rootDir>/tsconfig-base.json",
|
|
"<rootDir>/app/src.*",
|
|
"<rootDir>/app/lib.*",
|
|
"<rootDir>/app/tsconfig.json",
|
|
"<rootDir>/shared/tsconfig.json"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"arrowParens": "always",
|
|
"singleQuote": true,
|
|
"trailingComma": "all"
|
|
}
|
|
}
|