Skip to content
Snippets Groups Projects
package.json 6.81 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
        "color": "^1.0.3",
    
    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": "yarn && concurrently --kill-others -p name -n 'backend,frontend' -c 'blue,green' 'lein ring server' 'yarn run build-hot'",
    
        "lint": "yarn run lint-eslint && yarn run lint-prettier",
        "lint-eslint": "eslint --ext .js --ext .jsx --max-warnings 0 frontend/src frontend/test",
    
        "lint-prettier": "prettier --tab-width 4 -l 'frontend/src/metabase/{qb,new_question}/**/*.js*' 'frontend/src/metabase-lib/**/*.js' || (echo '\nThese files are not formatted correctly. Did you forget to run \"yarn run prettier\"?' && false)",
    
        "flow": "flow check",
    
        "test": "yarn run test-integrated && yarn run test-unit && yarn run test-karma",
    
        "test-integrated": "babel-node ./frontend/test/__runner__/run_integrated_tests.js",
        "test-integrated-watch": "babel-node ./frontend/test/__runner__/run_integrated_tests.js --watch",
        "test-unit": "jest --maxWorkers=10 --config jest.unit.conf.json",
        "test-unit-watch": "jest --maxWorkers=10 --config jest.unit.conf.json --watch",
    
        "test-karma": "karma start frontend/test/karma.conf.js --single-run",
        "test-karma-watch": "karma start frontend/test/karma.conf.js --auto-watch --reporters nyan",
    
    Tom Robinson's avatar
    Tom Robinson committed
        "test-e2e": "JASMINE_CONFIG_PATH=./frontend/test/e2e/support/jasmine.json jasmine",
    
        "test-e2e-dev": "./frontend/test/e2e-with-persistent-browser.js",
    
        "test-e2e-sauce": "USE_SAUCE=true yarn run test-e2e",
    
        "build-watch": "webpack --watch",
    
        "build-hot": "NODE_ENV=hot webpack-dev-server --progress",
    
        "build-stats": "webpack --json > stats.json",
    
        "start": "yarn run 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 --tab-width 4 --write 'frontend/src/metabase/{qb,new_question}/**/*.js*' 'frontend/src/metabase-lib/**/*.js'",
        "docs": "documentation build -f html -o frontend/docs frontend/src/metabase-lib/lib/**"
    
      "lint-staged": {
    
        "frontend/src/metabase/{qb,new_question}/**/*.js*": [
    
          "prettier --tab-width 4 --write",
          "git add"
    
        ],
        "frontend/src/metabase-lib/**/*.js*": [
          "prettier --tab-width 4 --write",
          "git add"