Skip to content
Snippets Groups Projects
package.json 5.14 KiB
Newer Older
  • Learn to ignore specific revisions
  • Fredrik Jonsson's avatar
    Fredrik Jonsson committed
        "name": "Hypha",
    
        "description": "The node.js requirements to build this project.",
        "author": "Fredrik Jonsson",
        "license": "GPL-2.0",
        "browserslist": [
            "> 3%",
            "Firefox ESR",
            "last 2 versions"
        ],
        "dependencies": {
    
        },
        "devDependencies": {
    
            "heroku-postbuild": "npm run build",
            "build": "npm run build:css && npm run build:js",
            "build:js": "webpack --config ./hypha/static_src/src/app/webpack.prod.config.js",
            "build:css": "sass ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass --no-source-map",
            "watch": "concurrently \"npm:watch:css\" \"npm:watch:js\" \"npm:watch:static\"",
            "watch:js": "webpack serve --config ./hypha/static_src/src/app/webpack.dev.config.js",
            "watch:css": "sass --watch ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass",
            "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": "npm run clean && npm run dev:build:css && npm run dev:build:js && npm run collectstatic",
            "dev:build:css": "sass ./hypha/static_src/src/sass:./hypha/static_compiled/css --load-path ./hypha/static_src/src/sass",
            "dev:build:js": "npm run build:js && mv ./hypha/static_compiled/app/webpack-stats-prod.json ./hypha/static_compiled/app/webpack-stats.json",
    
            "test": "NODE_ENV=test jest",
            "test:ci": "NODE_ENV=test jest --runInBand",
    
    vimal1083's avatar
    vimal1083 committed
            "test:watch": "NODE_ENV=test jest --watch",
            "test:coverage": "NODE_ENV=test jest --coverage",
    
            "updateSnapshot": "NODE_ENV=test jest --updateSnapshot",
    
            "lint-app:css": "stylelint \"hypha/static_src/src/app/src/**/*.scss\"",
            "lint:css": "stylelint \"hypha/static_src/src/sass/**/*.scss\"",
            "lint:js": "eslint \"hypha/static_src/src/javascript/**/*.js\"",
            "lint": "npm run lint:css && npm run lint:js",
    
            "collectstatic": "python manage.py collectstatic --no-post-process --noinput --verbosity 0",
    
            "clean": "rm -rf ./static ./hypha/static_compiled"
    
            "node": "16.14.x"