package.json 1.81 KB
Newer Older
1 2
{
  "name": "drupal-bootstrap",
3
  "version": "8.3.0-dev",
4 5
  "private": true,
  "devDependencies": {
6 7 8 9
    "bower": "^1.8.2",
    "glob": "^7.1.2",
    "grunt": "^1.0.1",
    "grunt-contrib-clean": "^1.1.0",
10
    "grunt-contrib-csslint": "^2.0.0",
11 12 13 14
    "grunt-contrib-watch": "^1.0.0",
    "grunt-githooks": "^0.6.0",
    "inquirer": "^3.3.0",
    "less": "^2.7.2",
15 16
    "less-plugin-autoprefix": "^1.4.2",
    "less-plugin-clean-css": "^1.5.1",
17
    "load-grunt-config": "^0.19.2",
18
    "promise-map-series": "^0.2.3",
19
    "queue": "^4.4.1",
20 21
    "semver": "^5.6.0",
    "simple-json-request": "^0.5.2",
22
    "sync-exec": "^0.6.1",
23
    "time-grunt": "^1.4.0"
24 25 26 27
  },
  "scripts": {
    "postinstall": "grunt install"
  },
28 29 30 31 32 33 34 35
  "caches": {
    "libraries": ".libraries"
  },
  "paths": {
    "css": "css",
    "js": "js",
    "libraries": "lib"
  },
36
  "githooks": {
37 38
    "post-checkout": [
      {
39 40 41 42 43 44
        "files": [
          "package.json",
          "Gruntfile.js",
          ".githooks.js.hbs",
          "grunt/**/*"
        ],
45
        "commands": "yarn",
46 47 48 49 50
        "matchAll": false
      }
    ],
    "post-merge": [
      {
51 52 53 54 55 56
        "files": [
          "package.json",
          "Gruntfile.js",
          ".githooks.js.hbs",
          "grunt/**/*"
        ],
57
        "commands": "yarn",
58 59 60
        "matchAll": false
      }
    ],
61 62
    "pre-commit": [
      {
63
        "files": "starterkits/less/less/**/*.less",
64
        "commands": [
65
          "grunt compile"
66
        ],
67
        "matchAll": false,
68 69
        "staged": true
      }
70 71 72 73 74 75
    ],
    "post-commit": [
      {
        "files": "css/**/*.css",
        "commands": [
          "git add css/**/*.css",
76
          "git commit -m \"Automated commit: grunt compile (CSS)\n\n$(git log -1 --pretty=%B)\" --author=\"$(git config user.name) <$(git config user.email)>\""
77 78 79
        ],
        "matchAll": false
      }
80
    ]
81 82
  }
}