1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-06-27 07:45:03 +02:00
Nativefier/package.json
Jia Hao Goh 1505933826 Promisfy and parallelise config, add unit tests
Instead of optionsMain exporting an async function, this commit changes
it to return a promise instead. We split all the needed async
helpers for this config builder into smaller promises, in `src/options/*`. Another side
effect of this is that we perform all our async config inferring in
parallel, which speeds up the nativefier CLI.

Add proper unit tests as well for all of these promises. Switch to
Jest for these unit tests, and we are temporarily running both Jest and
mocha together in `npm test`. To refactor all the Mocha code to use Jest in
a future commit.
2017-05-07 15:49:15 +08:00

96 lines
2.6 KiB
JSON

{
"name": "nativefier",
"version": "7.3.1",
"description": "Wrap web apps natively",
"keywords": [
"desktop",
"electron",
"app",
"native",
"wrapper"
],
"main": "lib/index.js",
"scripts": {
"dev-up": "npm install && (cd app && npm install) && npm run build",
"test": "jest && gulp test",
"jest": "jest",
"tdd": "gulp tdd",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"ci": "gulp build test && npm run lint",
"clean": "gulp clean",
"build": "gulp build",
"watch": "while true ; do gulp watch ; done",
"package-placeholder": "npm run build && node lib/cli.js http://www.bennish.net/web-notifications.html ~/Desktop --overwrite --name notification-test --icon ./test-resources/iconSampleGrey.png --inject ./test-resources/test-injection.js --inject ./test-resources/test-injection.css && open ~/Desktop/notification-test-darwin-x64/notification-test.app",
"start-placeholder": "npm run build && electron app",
"changelog": "./scripts/changelog"
},
"bin": {
"nativefier": "lib/cli.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jiahaog/nativefier.git"
},
"author": "Goh Jia Hao",
"license": "MIT",
"bugs": {
"url": "https://github.com/jiahaog/nativefier/issues"
},
"homepage": "https://github.com/jiahaog/nativefier#readme",
"dependencies": {
"async": "^2.3.0",
"axios": "^0.16.1",
"babel-polyfill": "^6.7.2",
"cheerio": "^0.22.0",
"commander": "^2.9.0",
"electron-packager": "^8.6.0",
"gitcloud": "^0.1.0",
"hasbin": "^1.2.0",
"lodash": "^4.0.0",
"loglevel": "^1.4.0",
"ncp": "^2.0.0",
"page-icon": "^0.3.0",
"progress": "^2.0.0",
"sanitize-filename": "^1.5.3",
"shelljs": "^0.7.0",
"source-map-support": "^0.4.0",
"tmp": "0.0.31",
"validator": "^7.0.0"
},
"devDependencies": {
"babel-core": "^6.4.5",
"babel-jest": "^19.0.0",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.6.0",
"chai": "^3.4.1",
"del": "^2.2.0",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.1.3",
"eslint-plugin-import": "^2.2.0",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-istanbul": "^1.1.1",
"gulp-mocha": "^4.3.0",
"gulp-sourcemaps": "^2.6.0",
"isparta": "^4.0.0",
"jest": "^19.0.2",
"regenerator-runtime": "^0.10.5",
"require-dir": "^0.3.0",
"run-sequence": "^1.1.5",
"webpack-stream": "^3.1.0"
},
"engines": {
"node": ">= 4.0"
},
"babel": {
"presets": [
"es2015"
]
},
"jest": {
"testMatch": ["**/src/**/?(*.)(spec|test).js?(x)"]
}
}