mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
88 lines
1.9 KiB
JSON
88 lines
1.9 KiB
JSON
{
|
|
"name": "@tryghost/announcement-bar",
|
|
"version": "1.1.7",
|
|
"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/"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/content-api": "1.11.7",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"vite preview -l silent\" \"yarn build:watch\"",
|
|
"build": "vite build",
|
|
"build:watch": "vite build --watch",
|
|
"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 && npm publish",
|
|
"prepublishOnly": "yarn build"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"jest": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022
|
|
},
|
|
"extends": [
|
|
"plugin:ghost/browser",
|
|
"plugin:react/recommended"
|
|
],
|
|
"plugins": [
|
|
"ghost"
|
|
],
|
|
"rules": {
|
|
"react/prop-types": "off"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
},
|
|
"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": {
|
|
"@vitejs/plugin-react": "4.1.0",
|
|
"vite": "4.4.11",
|
|
"vite-plugin-svgr": "3.3.0",
|
|
"vitest": "0.34.3"
|
|
}
|
|
}
|