Skip to content
Snippets Groups Projects
package.json 7.17 KiB
Newer Older
  • Learn to ignore specific revisions
  •   "name": "@mastodon/mastodon",
    
    TrashMacNugget's avatar
    TrashMacNugget committed
      "license": "AGPL-3.0-or-later",
    
        "node": ">=14"
    
        "postversion": "git push --tags",
    
        "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
        "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
    
        "manage:translations": "node ./config/webpack/translationRunner.js",
    
        "start": "node ./streaming/index.js",
    
        "test": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:typecheck && ${npm_execpath} run test:jest",
    
        "test:lint": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:lint:sass",
    
        "test:lint:js": "eslint --ext=.js,.jsx,.ts,.tsx . --cache --report-unused-disable-directives",
    
        "test:lint:sass": "stylelint \"**/*.{css,scss}\" && prettier --check \"**/*.{css,scss}\"",
    
        "test:typecheck": "tsc --noEmit",
    
        "test:jest": "cross-env NODE_ENV=test jest",
    
        "format": "prettier --write .",
    
        "format-check": "prettier --check .",
        "prepare": "husky install"
    
      },
      "devDependencies": {
    
      },
      "optionalDependencies": {
    
        "bufferutil": "^4.0.7",
    
        "utf-8-validate": "^6.0.3"
    
      },
      "lint-staged": {
        "*": "prettier --ignore-unknown --write",
    
        "*.{js,jsx,ts,tsx}": "eslint --fix",
    
        "*.{css,scss}": "stylelint --fix"