Skip to content
Snippets Groups Projects
package.json 11.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • Cam Saul's avatar
    Cam Saul committed
    {
    
      "name": "metabase",
    
    Tom Robinson's avatar
    Tom Robinson committed
      "private": true,
      "version": "0.0.0",
    
      "description": "Metabase Analytics Report Server",
    
      "repository": "https://github.com/metabase/metabase",
    
    Tom Robinson's avatar
    Tom Robinson committed
      "license": "private",
      "engines": {
    
    Tom Robinson's avatar
    Tom Robinson committed
        "yarn": ">=1.12.3"
    
    Tom Robinson's avatar
    Tom Robinson committed
      },
      "dependencies": {
    
    Tom Robinson's avatar
    Tom Robinson committed
        "d3": "^3.5.17",
    
    Tom Robinson's avatar
    Tom Robinson committed
        "diff": "^3.2.0",
    
    Tom Robinson's avatar
    Tom Robinson committed
      },
      "devDependencies": {
    
        "@types/babel__core": "^7.1.16",
        "@types/babel__preset-env": "^7.9.2",
        "@types/color": "^3.0.2",
        "@types/concurrently": "^6.3.0",
        "@types/core-js": "^2.5.5",
        "@types/crossfilter": "^0.0.34",
        "@types/d3": "^3.5.46",
        "@types/d3-scale": "^2.2.6",
        "@types/dc": "0.0.29",
        "@types/diff": "^3.5.4",
        "@types/eslint": "7.28.1",
        "@types/glob": "^7.1.4",
        "@types/history": "3.2.5",
        "@types/humanize-plus": "^1.8.0",
        "@types/icepick": "2.3.0",
        "@types/iframe-resizer": "^3.5.9",
        "@types/inflection": "^1.13.0",
        "@types/isomorphic-fetch": "^0.0.35",
        "@types/js-cookie": "^2.2.7",
        "@types/jsonwebtoken": "^7.2.8",
        "@types/jsrsasign": "^8.0.13",
        "@types/leaflet": "^1.7.5",
        "@types/leaflet-draw": "^0.4.14",
        "@types/leaflet.heat": "^0.2.1",
        "@types/lodash.memoize": "^4.1.6",
        "@types/mini-css-extract-plugin": "^2.4.0",
        "@types/mockdate": "^3.0.0",
        "@types/mustache": "^4.1.2",
        "@types/postcss-import": "^12.0.1",
        "@types/postcss-url": "^8.0.2",
        "@types/prettier": "1.18.2",
        "@types/prop-types": "^15.7.4",
        "@types/raf": "^3.4.0",
        "@types/react": "~16.14.17",
        "@types/react-collapse": "^5.0.1",
        "@types/react-color": "^2.17.6",
        "@types/react-copy-to-clipboard": "^5.0.2",
        "@types/react-dom": "~17.0.9",
        "@types/react-grid-layout": "^1.1.3",
        "@types/react-motion": "^0.0.31",
        "@types/react-redux": "^5.0.22",
        "@types/react-resizable": "^1.7.4",
        "@types/react-router": "3.0.26",
        "@types/react-router-redux": "^4.0.53",
        "@types/react-textarea-autosize": "^4.3.6",
        "@types/react-transition-group": "1.1.7",
        "@types/react-virtualized": "^9.21.13",
        "@types/redux-actions": "^2.6.2",
        "@types/redux-auth-wrapper": "^1.0.7",
        "@types/redux-form": "5.0.2",
        "@types/redux-logger": "^3.0.9",
        "@types/redux-promise": "^0.5.29",
        "@types/redux-router": "^1.0.45",
    
    Tom Robinson's avatar
    Tom Robinson committed
      },
    
    Cam Saul's avatar
    Cam Saul committed
        "concurrently": "yarn && concurrently --kill-others -p name",
    
        "dev": "yarn concurrently -n 'backend,frontend,cljs,docs' -c 'blue,green,yellow,magenta' 'clojure -M:run' 'yarn build-hot:js' 'yarn build-hot:cljs' 'yarn docs'",
        "dev-ee": "yarn concurrently -n 'backend,frontend,cljs,docs' -c 'blue,green,yellow,magenta' 'clojure -M:run:ee' 'MB_EDITION=ee yarn build-hot:js' 'MB_EDITION=ee yarn build-hot:cljs' 'yarn docs'",
    
        "type-check": "yarn && tsc --noEmit",
        "lint": "yarn lint-eslint && yarn lint-prettier && yarn lint-docs-links && yarn lint-yaml && yarn type-check",
    
        "lint-eslint": "yarn build-quick:cljs && eslint --ext .js --ext .jsx --rulesdir frontend/lint/eslint-rules --max-warnings 0 enterprise/frontend/src frontend/src frontend/test",
    
        "lint-prettier": "yarn && prettier -l '{enterprise/,}frontend/**/*.{js,jsx,ts,tsx,css}' || (echo '\nThese files are not formatted correctly. Did you forget to \"yarn prettier\"?' && false)",
    
        "lint-docs-links": "yarn && ./bin/verify-doc-links",
    
        "lint-yaml": "yamllint **/*.{yaml,yml} --ignore=node_modules/**/*.{yaml,yml}",
    
        "test": "yarn test-unit && yarn test-timezones && yarn test-cypress",
    
        "test-unit": "yarn build-quick:cljs && jest --silent --maxWorkers=2 --config jest.unit.conf.json",
    
        "test-timezones-unit": "yarn build-quick:cljs && jest --silent --maxWorkers=2 --config jest.tz.unit.conf.json",
    
        "test-timezones": "yarn && ./frontend/test/__runner__/run_timezone_tests",
    
    Cam Saul's avatar
    Cam Saul committed
        "build:js": "yarn && webpack --bail",
        "build-watch:js": "yarn && webpack --watch",
    
        "build-hot:js": "yarn && WEBPACK_BUNDLE=hot webpack serve --progress --host 0.0.0.0",
    
    Cam Saul's avatar
    Cam Saul committed
        "build:cljs": "yarn && rm -rf frontend/src/cljs/* && shadow-cljs release app",
    
    Cam Saul's avatar
    Cam Saul committed
        "build-quick:cljs": "yarn build:cljs",
    
    Cam Saul's avatar
    Cam Saul committed
        "build-watch:cljs": "yarn cljs-server-restart && shadow-cljs watch app",
        "build-hot:cljs": "yarn cljs-server-restart && shadow-cljs watch app",
        "cljs-server-start": "yarn && shadow-cljs start",
        "cljs-server-stop": "yarn && shadow-cljs stop",
        "cljs-server-restart": "yarn && shadow-cljs restart",
        "cljs-nrepl": "yarn && shadow-cljs node-repl -d cider/cider-nrepl:0.25.8 -d cider/piggieback:0.5.1 -d refactor-nrepl:2.5.1",
        "test-cljs": "yarn && shadow-cljs compile test && node target/node-tests.js",
    
    Cam Saul's avatar
    Cam Saul committed
        "build": "yarn build:cljs && yarn build:js",
        "build-watch": "yarn concurrently -n 'cljs,js' 'yarn build-watch:cljs' 'yarn build-watch:js'",
        "build-hot": "yarn concurrently -n 'cljs,js' 'yarn build-hot:cljs' 'yarn build-hot:js'",
    
        "build-stats": "yarn && webpack --json > stats.json",
    
        "build-shared": "yarn && webpack --config webpack.shared.config.js",
    
        "build-static-viz": "yarn && webpack --config webpack.static-viz.config.js",
    
    Tom Robinson's avatar
    Tom Robinson committed
        "preinstall": "echo $npm_execpath | grep -q yarn || echo '\\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\\033[0m'",
    
        "prettier": "prettier --write '{enterprise/,}frontend/**/*.{js,jsx,ts,tsx,css}'",
        "eslint-fix": "yarn && eslint --fix --ext .js,.jsx,.ts,.tsx --rulesdir frontend/lint/eslint-rules {enterprise/,}frontend/{src,test}",
    
        "docs": "documentation serve --watch frontend/src/metabase-lib/lib/**",
    
        "ci": "yarn ci-frontend && yarn ci-backend",
        "ci-frontend": "yarn lint && yarn test",
        "ci-backend": "clojure -X:dev:ee:ee-dev:drivers:drivers-dev:eastwood && clojure -X:dev:test",
    
        "test-cypress": "yarn build && ./bin/build-for-test && yarn test-cypress-no-build",
    
        "test-cypress-open": "./bin/build-for-test && yarn test-cypress-no-build --open",
    
        "test-cypress-open-no-backend": "E2E_HOST='http://localhost:3000' yarn test-cypress-no-build --open",
    
        "test-cypress-no-build": "yarn && ELECTRON_EXTRA_LAUNCH_ARGS=\"--force-prefers-reduced-motion\" babel-node ./frontend/test/__runner__/run_cypress_tests.js",
        "test-visual": "ELECTRON_EXTRA_LAUNCH_ARGS=\"--force-prefers-reduced-motion\" yarn build && ./bin/build-for-test && yarn test-visual-no-build",
    
        "test-visual-no-build": "percy exec -- yarn test-cypress-no-build --spec \"./frontend/test/metabase-visual/**/*.cy.spec.js\"",
    
        "test-visual-open": "percy exec -- yarn test-cypress-open --spec \"./frontend/test/metabase-visual/**/*.cy.spec.js\"",
    
      "lint-staged": {
    
        "frontend/**/*.{js,jsx,ts,tsx,css}": [
    
          "prettier --write"
    
      "browserslist": [
        "defaults"
      ]