Skip to content
Snippets Groups Projects
package.json 3.63 KiB
Newer Older
  "name": "Hypha",
  "version": "1.0.0",
  "description": "The node.js requirements to build this project.",
  "author": "Fredrik Jonsson",
  "license": "GPL-2.0",
  "prettier": {
    "trailingComma": "es5"
  },
  "babel": {
    "exclude": [
      "**/*.min.js",
      "**/esm/*.js"
    "presets": [
      [
        "@babel/preset-env",
        {
          "useBuiltIns": "entry",
          "corejs": "3"
        }
      ]
    ]
  },
  "browserslist": [
    "> 0.5%",
    "last 2 versions",
    "Firefox ESR",
    "not dead"
  ],
  "devDependencies": {
    "@alpinejs/focus": "^3.12.3",
    "@babel/cli": "^7.22.6",
    "@babel/core": "^7.22.8",
    "@babel/preset-env": "^7.22.7",
    "@tailwindcss/forms": "^0.5.3",
    "@tailwindcss/typography": "^0.5.9",
    "alpinejs": "^3.12.3",
    "core-js": "^3.31.1",
    "daterangepicker": "^3.1.0",
    "eslint": "^8.44.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-plugin-template": "^0.7.0",
    "htmx.org": "^1.9.2",
    "nodemon": "^3.0.1",
    "npm-run-all2": "^6.0.6",
    "prettier": "3.0.0",
    "sass": "^1.63.6",
    "stylelint": "^15.10.2",
    "stylelint-config-standard": "^34.0.0",
    "stylelint-config-standard-scss": "^10.0.0",
    "tailwindcss": "^3.3.2"
  },
  "scripts": {
    "heroku-postbuild": "npm run build",
    "build": "npx npm-run-all --print-label --parallel build:*",
    "watch": "npx npm-run-all --print-label --parallel watch:*",
    "lint": "npx npm-run-all --parallel lint:*",
    "build:js": "npx babel ./hypha/static_src/src/javascript --out-dir ./hypha/static_compiled/js",
    "build:sass": "sass ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass --no-source-map",
    "build:tailwind": "tailwindcss -i ./hypha/static_src/src/tailwind/main.css -o ./hypha/static_compiled/css/tailwind-output.css --minify",
    "build:images": "npx babel ./hypha/static_src/src/images --out-dir ./hypha/static_compiled/images --copy-files",
    "build:fonts": "npx babel ./hypha/static_src/src/fonts --out-dir ./hypha/static_compiled/fonts --copy-files",
    "watch:js": "npx babel --watch ./hypha/static_src/src/javascript --out-dir ./hypha/static_compiled/js",
    "watch:sass": "sass --watch ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass",
    "watch:tailwind": "tailwindcss -i ./hypha/static_src/src/tailwind/main.css -o ./hypha/static_compiled/css/tailwind-output.css --watch",
    "watch:static": "nodemon --delay 3 --exec \"npm run collectstatic\" --watch ./hypha/static_compiled --ext css,js,json,png,svg",
    "watch:lint": "nodemon --exec \"npm run lint\" --watch ./hypha/static_src/src/sass --watch ./hypha/static_src/src/javscript --ext scss,js",
    "dev:build": "npx npm-run-all --print-label --serial clean --parallel dev:build:* --serial collectstatic",
    "dev:build:js": "npm run build:js",
    "dev:build:sass": "sass ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass",
    "dev:build:lint": "npm run lint",
    "dev:build:tailwind": "tailwindcss -i ./hypha/static_src/src/tailwind/main.css -o ./hypha/static_compiled/css/tailwind-output.css",
    "dev:build:images": "npm run build:images",
    "dev:build:fonts": "npm run build:fonts",
    "lint:prettier": "prettier . --check",
    "lint:sass": "stylelint \"hypha/static_src/src/sass/**/*.scss\"",
    "lint:js": "eslint \"hypha/static_src/src/javascript/**/*.js\"",
    "collectstatic": "python manage.py collectstatic --no-post-process --noinput --verbosity 0 --settings=hypha.settings.dev",
    "clean": "rm -rf ./static ./hypha/static_compiled"
  },
  "engines": {
    "node": "18.x"
  },
  "private": true