pwa-asset-generator
Version:
Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Hum
135 lines (134 loc) • 4.98 kB
JSON
{
"name": "pwa-asset-generator",
"version": "4.1.0",
"description": "Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Human Interface guidelines.",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"bin": {
"pwa-asset-generator": "bin/cli"
},
"scripts": {
"test": "jest --verbose",
"test:update": "npm run test:update:visuals && npm run test:update:snapshots",
"test:update:snapshots": "jest -u",
"test:update:visuals": "npm run visuals:input-svg && npm run visuals:input-png && npm run visuals:input-html && npm run visuals:input-html-dark && npm run visuals:output-transparent && npm run visuals:output-png",
"visuals:output-png": "rimraf ./src/__snapshots__/visual/output-png && node ./bin/cli ./static/logo.svg ./src/__snapshots__/visual/output-png -s false -t png -b coral",
"visuals:output-transparent": "rimraf ./src/__snapshots__/visual/output-transparent && node ./bin/cli ./static/logo.svg ./src/__snapshots__/visual/output-transparent -s false -b -t png transparent -o false",
"visuals:input-svg": "rimraf ./src/__snapshots__/visual/input-svg && node ./bin/cli ./static/logo.svg ./src/__snapshots__/visual/input-svg -s false -b coral",
"visuals:input-png": "rimraf ./src/__snapshots__/visual/input-png && node ./bin/cli ./static/logo.png ./src/__snapshots__/visual/input-png -s false -b coral -w",
"visuals:input-html": "rimraf ./src/__snapshots__/visual/input-html && node ./bin/cli ./static/logo.html ./src/__snapshots__/visual/input-html -s false",
"visuals:input-html-dark": "rimraf ./src/__snapshots__/visual/input-html-dark && node ./bin/cli ./static/logo.html ./src/__snapshots__/visual/input-html-dark -s false -d true",
"commit": "git-cz",
"chromium": "cross-env PAG_TEST_MODE=1 node bin/install",
"update": "node bin/update-fallback-data",
"build": "tsc",
"start": "tsc -w",
"lint": "eslint \"src/**/**.ts\"",
"lint:fix": "npm run lint -- --fix",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "https://github.com/onderceylan/pwa-asset-generator.git"
},
"engines": {
"node": ">=10.12.0"
},
"keywords": [
"pwa",
"puppeteer",
"chromium",
"icon",
"launch-image",
"ios",
"android",
"splashscreen",
"splash-screen",
"image-generation",
"image",
"manifest",
"mobile",
"favicon",
"mstile",
"pwa-assets"
],
"author": "Önder Ceylan <onderceylan@gmail.com>",
"license": "MIT",
"funding": {
"type": "individual",
"url": "https://www.buymeacoffee.com/onder"
},
"bugs": {
"url": "https://github.com/onderceylan/pwa-asset-generator/issues"
},
"homepage": "https://github.com/onderceylan/pwa-asset-generator#readme",
"dependencies": {
"chalk": "4.1.0",
"cheerio": "1.0.0-rc.5",
"chrome-launcher": "0.13.4",
"find-process": "1.4.4",
"lodash.isequal": "4.5.0",
"lodash.uniqwith": "4.5.0",
"meow": "8.1.0",
"mime-types": "2.1.27",
"progress": "2.0.3",
"puppeteer-core": "5.5.0",
"slash": "3.0.0"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.0.5",
"@semantic-release/npm": "^7.0.5",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/cheerio": "^0.22.13",
"@types/find-process": "^1.1.0",
"@types/jest": "^26.0.0",
"@types/lodash.isequal": "^4.5.5",
"@types/lodash.uniqwith": "^4.5.6",
"@types/mime-types": "^2.1.0",
"@types/progress": "^2.0.3",
"@types/puppeteer-core": "^5.4.0",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"commitizen": "^4.1.2",
"cross-env": "^7.0.0",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^6.7.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jest": "^24.0.0",
"eslint-plugin-prettier": "^3.1.0",
"execa": "^5.0.0",
"husky": "^4.0.10",
"jest": "^26.2.1",
"jpeg-js": "^0.4.0",
"lint-staged": "^10.0.0",
"pixelmatch": "^5.2.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"semantic-release": "^17.0.4",
"ts-jest": "^26.1.4",
"typescript": "^4.0.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"**/**.{ts}": [
"eslint --fix"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}