Ghost/ghost/portal/package.json
Rishabh 6e2952901a Updated Portal build script to use rewired webpack config
no issues

- updates Portal build script to use rewired react-scripts config
- updated config handles css embed as well as output location/name for portal bundle as part of cra build
- makes extra webpack bundling redundant for now
- updates dev mode to map the portal source map useful for testing build version locally
- updates custom webpack config with copy plugin for future use

refs -
https://github.com/facebook/create-react-app/issues/5306#issuecomment-603772477
https://gist.github.com/phdesign/3fd306db2bc53f6368e6f0f73bbeff19
2021-06-16 20:58:44 +05:30

79 lines
2.0 KiB
JSON

{
"name": "@tryghost/portal",
"version": "1.6.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",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-scripts": "4.0.3"
},
"scripts": {
"start": "react-scripts start",
"start:dev": "node ./scripts/start-mode.js",
"dev": "node ./scripts/dev-mode.js",
"build": "npm run build:combined",
"build:original": "react-scripts build",
"build:combined": "node ./scripts/build-combined.js",
"build:bundle": "webpack --config webpack.config.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",
"analyze": "source-map-explorer 'umd/*.js'",
"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",
"copy-webpack-plugin": "^6.3.2",
"eslint-plugin-ghost": "2.2.0",
"minimist": "^1.2.5",
"ora": "^5.4.0",
"rewire": "5.0.0",
"serve-handler": "^6.1.3",
"source-map-explorer": "^2.5.2",
"webpack-cli": "3.3.12"
}
}