Ghost/ghost/portal/package.json
Rishabh 0b2af14567 Added dev script for Portal development
no refs

The new dev script allows running `yarn dev` on the Portal code to make Portal development easier as well as integrate more easily with Ghost config. The script runs a local development server that serves portal bundle, which allows for static `portal` config to be used in Ghost for pointing to Portal script. It also watches the files for any changes, and auto re-builds and bundles latest Portal code.
2021-06-07 14:22:31 +05:30

75 lines
1.9 KiB
JSON

{
"name": "@tryghost/portal",
"version": "1.5.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/TryGhost/Portal.git"
},
"author": "Ghost Foundation",
"unpkg": "umd/portal.min.js",
"files": [
"umd/",
"LICENSE",
"README.md"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@testing-library/jest-dom": "5.13.0",
"@testing-library/react": "11.2.7",
"@testing-library/user-event": "12.8.3",
"prop-types": "15.7.2",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-scripts": "3.4.4"
},
"scripts": {
"start": "react-scripts start",
"build": "npm run build:combined && npm run build:bundle",
"build:combined": "node ./scripts/build-combined.js",
"build:bundle": "webpack --config webpack.config.js",
"dev": "node ./scripts/dev-mode.js",
"test": "react-scripts test --env=jsdom-fourteen",
"eject": "react-scripts eject",
"lint": "eslint src --ext .js --cache",
"preship": "yarn lint",
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} main --follow-tags; fi",
"posttest": "yarn lint",
"prepublishOnly": "yarn build"
},
"eslintConfig": {
"extends": [
"react-app",
"plugin:ghost/browser"
],
"plugins": [
"ghost"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"chalk": "^4.1.1",
"chokidar": "^3.5.1",
"eslint-plugin-ghost": "2.2.0",
"minimist": "^1.2.5",
"ora": "^5.4.0",
"rewire": "5.0.0",
"serve-handler": "^6.1.3",
"webpack-cli": "3.3.12"
}
}