Skip to content

Commit

Permalink
adding npm script to clang-format generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
RamyElkest committed Jul 16, 2018
1 parent 14df741 commit 1a2a0df
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 6 deletions.
111 changes: 108 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"build": "node-gyp rebuild",
"test": "node test/libvirt.test.js",
"clean": "rimraf build & rimraf generated",
"generate": "node src/generator.js",
"generate": "npm run generate:all && npm run generate:format",
"generate:all": "node src/generator.js",
"generate:format": "npx clang-format -i -style=Google generated/*",
"check": "npm run check:libvirt_min_ver & npm run check:libvirt_api_xml",
"check:libvirt_api_xml": "node tools/api_xml_files.js",
"check:libvirt_min_ver": "node tools/check_min_libvirt_ver.js",
"check": "npm run check:libvirt_min_ver & npm run check:libvirt_api_xml"
"check:libvirt_min_ver": "node tools/check_min_libvirt_ver.js"
},
"repository": {
"type": "git",
Expand All @@ -39,6 +41,7 @@
"gypfile": true,
"dependencies": {
"bindings": "^1.3.0",
"clang-format": "^1.2.3",
"which": "^1.3.1",
"xml2js": "^0.4.19"
}
Expand Down

0 comments on commit 1a2a0df

Please # to comment.