Skip to content
Snippets Groups Projects
package.json 4.88 KiB
Newer Older
{
  "name": "mastodon",
    "postversion": "git push --tags",
    "build:development": "cross-env RAILS_ENV=development ./bin/webpack",
    "build:production": "cross-env RAILS_ENV=production ./bin/webpack",
    "manage:translations": "node ./config/webpack/translationRunner.js",
    "start": "node ./streaming/index.js",
    "test": "npm run test:lint && npm run test:jest",
    "test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ spec/javascript/ streaming/",
    "test:jest": "cross-env NODE_ENV=test jest",
    "postinstall": "npm rebuild node-sass"
  },
  "devDependencies": {
  },
  "optionalDependencies": {
    "fsevents": "*"
  },
  "jest": {
    "projects": [
      "<rootDir>/app/javascript/mastodon"
    ],
    "testPathIgnorePatterns": [
      "<rootDir>/node_modules/",
      "<rootDir>/vendor/",
      "<rootDir>/config/",
      "<rootDir>/log/",
      "<rootDir>/public/",
      "<rootDir>/tmp/"
    ],
    "setupFiles": [
      "raf/polyfill"
    ],
    "setupTestFrameworkScriptFile": "<rootDir>/app/javascript/mastodon/test_setup.js"