Skip to content

Commit c629da1

Browse files
committed
Use prepack to build artifacts which are needed with npm
1 parent 5a4c8b3 commit c629da1

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package-lock.json
55
build/
66
node_modules/
77
Auditor/Auditor_with_beacon.js
8+
*.tgz
89

910
# OS generated files #
1011
######################
@@ -15,4 +16,4 @@ Auditor/Auditor_with_beacon.js
1516
.Trashes
1617
Icon?
1718
ehthumbs.db
18-
Thumbs.db
19+
Thumbs.db

package.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@
77
"htmlcs"
88
],
99
"scripts": {
10+
"prepack": "grunt build",
1011
"test": "echo \"Error: no test specified\" && exit 1"
1112
},
13+
"files": [
14+
"Auditor",
15+
"build",
16+
"Contrib",
17+
"Standards",
18+
"Translations",
19+
"HTMLCS.js",
20+
"HTMLCS.Util.js",
21+
"index.js"
22+
],
1223
"repository": {
1324
"type": "git",
1425
"url": "https://github.com/squizlabs/HTML_CodeSniffer.git"
@@ -18,14 +29,12 @@
1829
"url": "https://github.com/squizlabs/HTML_CodeSniffer/issues"
1930
},
2031
"homepage": "http://squizlabs.github.io/HTML_CodeSniffer/",
21-
"dependencies": {
22-
"grunt": "^1.0.0",
23-
"grunt-contrib-copy": "^1.0.0",
24-
"grunt-contrib-jshint": "^1.0.0",
25-
"grunt-contrib-watch": "^1.0.0",
26-
"load-grunt-tasks": "^3.5.2"
27-
},
2832
"devDependencies": {
29-
"grunt-contrib-uglify": "^2.3.0"
33+
"grunt": "^1.0.3",
34+
"grunt-contrib-copy": "^1.0.0",
35+
"grunt-contrib-jshint": "^2.0.0",
36+
"grunt-contrib-watch": "^1.1.0",
37+
"load-grunt-tasks": "^4.0.0",
38+
"grunt-contrib-uglify": "^4.0.0"
3039
}
31-
}
40+
}

0 commit comments

Comments
 (0)