mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
327fef0ad8
refs https://github.com/TryGhost/Ghost/issues/15502 - this commit migrates Portal from CRA to Vite, as it brings the package more inline with the direction we're going in terms of tooling for builds - the bulk of the changes here are just config related to get things working with Vite, and then cleaning up all the CRA boilerplate
84 lines
2.0 KiB
JSON
84 lines
2.0 KiB
JSON
{
|
|
"name": "@tryghost/portal",
|
|
"version": "2.25.0",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/TryGhost/Ghost.git"
|
|
},
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"vite\" \"yarn build:watch\"",
|
|
"build": "vite build",
|
|
"build:watch": "vite build --watch",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:ci": "yarn test --coverage",
|
|
"test:unit": "yarn test:ci",
|
|
"lint": "eslint src --ext .js --cache",
|
|
"preship": "yarn lint",
|
|
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
|
|
"postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && yarn publish . --tag $npm_package_version",
|
|
"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"
|
|
]
|
|
},
|
|
"jest": {
|
|
"coverageReporters": [
|
|
"cobertura",
|
|
"text-summary",
|
|
"html"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/eslint-parser": "7.21.3",
|
|
"@sentry/react": "7.42.0",
|
|
"@sentry/tracing": "7.42.0",
|
|
"@testing-library/jest-dom": "5.16.5",
|
|
"@testing-library/react": "12.1.5",
|
|
"@tryghost/i18n": "0.0.0",
|
|
"@vitejs/plugin-react": "3.1.0",
|
|
"@vitest/coverage-c8": "0.29.3",
|
|
"@vitest/ui": "0.29.3",
|
|
"concurrently": "7.6.0",
|
|
"cross-fetch": "3.1.5",
|
|
"eslint": "8.36.0",
|
|
"eslint-config-react-app": "7.0.1",
|
|
"jsdom": "21.1.1",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2",
|
|
"vite": "4.1.4",
|
|
"vite-plugin-css-injected-by-js": "3.1.0",
|
|
"vite-plugin-svgr": "2.4.0",
|
|
"vitest": "0.29.2"
|
|
}
|
|
}
|