Skip to content
Snippets Groups Projects
package.json 7.37 KiB
Newer Older
  "name": "@mastodon/mastodon",
TrashMacNugget's avatar
TrashMacNugget committed
  "license": "AGPL-3.0-or-later",
  "packageManager": "yarn@4.5.0",
    "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
    "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
    "fix:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives --fix",
    "fix:css": "stylelint --fix \"**/*.{css,scss}\"",
    "fix": "yarn fix:js && yarn fix:css",
    "format": "prettier --write --log-level warn .",
    "format:check": "prettier --check --ignore-unknown .",
    "i18n:extract": "formatjs extract 'app/javascript/**/*.{js,jsx,ts,tsx}' --ignore '**/*.d.ts' --out-file app/javascript/mastodon/locales/en.json --format config/formatjs-formatter.js",
    "jest": "cross-env NODE_ENV=test jest",
    "lint:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives",
    "lint:css": "stylelint \"**/*.{css,scss}\"",
    "lint": "yarn lint:js && yarn lint:css",
    "postversion": "git push --tags",
    "postinstall": "test -d node_modules/husky && husky || echo \"husky is not installed\"",
    "start": "node ./streaming/index.js",
    "test": "yarn lint && yarn run typecheck && yarn jest",
    "typecheck": "tsc --noEmit"
  },
  "devDependencies": {
    "kind-of": "^6.0.3",
    "webpack/terser-webpack-plugin": "^4.2.3"
  "peerDependenciesMeta": {
    "react": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "react-router-dom": {
      "optional": true
    }