Superset二次开发之package.json 功能模块解读

package.json 

Node.js 项目的核心配置文件,它包含了项目的元信息、依赖项、脚本命令以及其他相关信息。

{
  "name": "superset",
  "version": "3.0.0",
  "description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.",
  "keywords": [
    "big",
    "data",
    "exploratory",
    "analysis",
    "react",
    "d3",
    "airbnb",
    "nerds",
    "database",
    "flask"
  ],
  "homepage": "https://superset.apache.org/",
  "bugs": {
    "url": "https://github.com/apache/superset/issues"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/apache/superset.git",
    "directory": "superset-frontend"
  },
  "license": "Apache-2.0",
  "author": {
    "name": "Apache"
  },
  "directories": {
    "doc": "docs",
    "test": "spec"
  },
  "workspaces": [
    "packages/*",
    "plugins/*"
  ],
  "scripts": {
    "_lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx .",
    "_prettier": "prettier './({src,spec,cypress-base,plugins,packages,.storybook}/**/*{.js,.jsx,.ts,.tsx,.css,.less,.scss,.sass}|package.json)'",
    "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --color",
    "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --color",
    "build-instrumented": "cross-env NODE_ENV=production BABEL_ENV=instrumented webpack --mode=production --color",
    "build-storybook": "build-storybook",
    "check-translation": "prettier --check ../superset/translations/**/LC_MESSAGES/*.json",
    "chromatic": "npx chromatic --skip 'dependabot/**'  --only-changed",
    "clean-translation": "prettier --write ../superset/translations/**/LC_MESSAGES/*.json",
    "core:cover": "cross-env NODE_ENV=test jest --coverage --coverageThreshold='{\"global\":{\"statements\":100,\"branches\":100,\"functions\":100,\"lines\":100}}' --collectCoverageFrom='[\"packages/**/src/**/*.{js,ts}\", \"!packages/superset-ui-demo/**/*\"]' packages",
    "cover": "cross-env NODE_ENV=test jest --coverage",
    "dev": "webpack --mode=development --color --watch",
    "dev-server": "cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development",
    "format": "npm run _prettier -- --write",
    "lint": "npm run _lint && npm run type",
    "lint-fix": "npm run _lint -- --fix && npm run type",
    "plugins:build": "node ./scripts/build.js",
    "plugins:build-assets": "node ./scripts/copyAssets.js",
    "plugins:build-storybook": "cd packages/superset-ui-demo && npm run build-storybook",
    "plugins:chromatic": "cd packages/superset-ui-demo && npm run chromatic",
    "plugins:create-conventional-version": "npm run prune && lerna version --conventional-commits --create-release github --no-private --yes",
    "plugins:create-minor-version": "npm run prune && lerna version minor --no-private --yes",
    "plugins:create-patch-version": "npm run prune && lerna version patch --no-private --yes",
    "plugins:release-conventional": "npm run prune && lerna publish --conventional-commits --create-release github --yes",
    "plugins:release-from-tag": "npm run prune && lerna publish from-package --yes",
    "plugins:storybook": "cd packages/superset-ui-demo && npm run storybook",
    "prettier": "npm run _prettier -- --write",
    "prettier-check": "npm run _prettier -- --check",
    "prod": "npm run build",
    "prune": "rm -rf ./{packages,plugins}/*/{lib,esm,tsconfig.tsbuildinfo,package-lock.json}",
    "storybook": "cross-env NODE_ENV=development BABEL_ENV=development start-storybook -p 6006",
    "tdd": "cross-env NODE_ENV=test jest --watch",
    "test": "cross-env NODE_ENV=test jest",
    "type": "tsc --noEmit"
  },
  "browserslist": [
    "last 3 chrome versions",
    "last 3 firefox versions",
    "last 3 safari versions",
    "last 3 edge versions"
  ],
  "dependencies": {
    "@ant-design/charts": "^2.0.3",
    "@ant-design/icons": "^5.0.1",
    "@babel/runtime-corejs3": "^7.12.5",
    "@emotion/babel-preset-css-prop": "^11.2.0",
    "@emotion/cache": "^11.4.0",
    "@emotion/react&
  • 13
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

aimmon

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值