Skip to content
Snippets Groups Projects
package.json 6.67 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": {
    
        "node": ">=6.7.0",
    
        "npm": "2.15.9"
    
    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
        "dc": "^2.0.0",
    
    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
        "eslint": "^3.5.0",
    
    Tom Robinson's avatar
    Tom Robinson committed
      },
    
        "dev": "concurrently --kill-others -p name -n 'backend,frontend' -c 'blue,green' 'lein ring server' 'yarn build-hot'",
        "lint": "yarn lint-eslint && yarn lint-prettier",
        "lint-eslint": "yarn && eslint --ext .js --ext .jsx --max-warnings 0 frontend/src frontend/test",
        "lint-prettier": "yarn && prettier -l 'frontend/**/*.{js,jsx,css}' || (echo '\nThese files are not formatted correctly. Did you forget to \"yarn prettier\"?' && false)",
        "flow": "yarn && flow check",
        "test": "yarn test-unit && yarn test-integrated && yarn test-karma",
        "test-integrated": "./bin/build-for-test && yarn test-integrated-no-build",
        "test-integrated-watch": "yarn test-integrated --watch",
    
        "test-integrated-no-build": "yarn && babel-node ./frontend/test/__runner__/run_integrated_tests.js",
    
        "test-unit": "yarn && jest --maxWorkers=8 --config jest.unit.conf.json",
        "test-unit-watch": "yarn test-unit --watch",
        "test-unit-update-snapshot": "yarn test-unit --updateSnapshot",
        "test-karma": "yarn && karma start frontend/test/karma.conf.js --single-run",
        "test-karma-watch": "yarn && karma start frontend/test/karma.conf.js --auto-watch --reporters nyan",
        "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",
        "start": "yarn build && lein ring server",
        "precommit": "lint-staged",
        "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 'frontend/**/*.{js,jsx,css}'",
        "docs": "documentation build -f html -o frontend/docs frontend/src/metabase-lib/lib/**"
    
      "lint-staged": {
    
        "frontend/**/*.{js,jsx,css}": [
          "prettier --write",