Skip to content
Snippets Groups Projects
package.json 7.88 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": {
    
    Tom Robinson's avatar
    Tom Robinson committed
      },
    
        "dev": "concurrently --kill-others -p name -n 'backend,frontend,docs' -c 'blue,green,yellow' 'lein run' 'yarn build-hot' 'yarn docs'",
    
        "dev-ee": "concurrently --kill-others -p name -n 'backend,frontend,docs' -c 'blue,green,yellow' 'lein with-profiles +ee run' 'MB_EDITION=ee yarn build-hot' 'yarn docs'",
    
        "lint": "yarn lint-eslint && yarn lint-prettier && yarn lint-flow && yarn lint-docs-links && yarn lint-yaml",
    
        "lint-eslint": "yarn && eslint --ext .js --ext .jsx --rulesdir frontend/lint/eslint-rules --max-warnings 0 enterprise/frontend/src frontend/src enterprise/frontend/test frontend/test",
        "lint-prettier": "yarn && prettier -l '{enterprise/,}frontend/**/*.{js,jsx,css}' || (echo '\nThese files are not formatted correctly. Did you forget to \"yarn prettier\"?' && false)",
    
        "lint-flow": "yarn && flow check",
        "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 && jest --maxWorkers=2 --config jest.unit.conf.json",
    
        "test-unit-watch": "yarn test-unit --watch",
        "test-unit-update-snapshot": "yarn test-unit --updateSnapshot",
    
        "test-timezones-unit": "yarn && jest --maxWorkers=2 --config jest.tz.unit.conf.json",
    
        "test-timezones": "yarn && ./frontend/test/__runner__/run_timezone_tests",
    
        "build": "yarn && webpack --bail",
        "build-watch": "yarn && webpack --watch",
        "build-hot": "yarn && NODE_ENV=hot webpack-dev-server --progress",
        "build-stats": "yarn && webpack --json > stats.json",
    
        "build-shared": "yarn && webpack --config webpack.shared.config.js",
    
        "start": "yarn build && lein ring server",
        "precommit": "lint-staged",
    
    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,css}'",
        "eslint-fix": "yarn && eslint --fix --ext .js --ext .jsx --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": "lein docstring-checker && lein bikeshed && lein eastwood && lein test",
    
        "test-cypress": "yarn build && ./bin/build-for-test && yarn test-cypress-no-build && yarn test-cypress-smoketest",
    
        "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 && CONFIG_FILE=frontend/test/cypress.json babel-node ./frontend/test/__runner__/run_cypress_tests.js",
    
        "test-cypress-smoketest": "yarn test-cypress-no-build --folder frontend/test/metabase-smoketest"
    
      "lint-staged": {
    
    Tom Robinson's avatar
    Tom Robinson committed
        "frontend/**/*.{js,jsx,css}": [
          "prettier --write",
          "git add"
        ]