Skip to content

Commit c41897b

Browse files
committed
fix: removed gulp dependency
1 parent 4e23c3f commit c41897b

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"scripts": {
39-
"validate": " echo 'run validation scripts'; gulp prod",
39+
"validate": " echo 'run validation scripts'; node ./src/scripts/npm/updatePluginXml",
4040
"travis-deploy-once": " echo 'prevent multiple deploys'; travis-deploy-once",
4141
"commitmsg": " echo 'validate commit messages'; commitlint -e $GIT_PARAMS",
4242
"precommit": " echo 'run prettier on commit'; lint-staged",

gulpfile.js renamed to src/scripts/npm/updatePluginXml.js

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
1-
// import
2-
var gulp = require("gulp");
31
var fs = require("fs");
42

5-
// primary tasks
6-
gulp.task("dev", ["setupDev"]);
7-
gulp.task("prod", ["setupNpm"]);
8-
9-
// --------------------------------------------------
10-
// Setup
11-
// --------------------------------------------------
12-
gulp.task("setupDev", function() {
13-
// setup for development use
14-
getDevPluginXML();
15-
setIosNpmOrDev("dev");
16-
});
17-
18-
gulp.task("setupNpm", function() {
19-
// setup for npm deployment
20-
genNpmPluginXML();
21-
setIosNpmOrDev("npm");
22-
});
23-
243
function getDevPluginXML() {
254
// generate plugin.xml for local development
265
// here we reference the frameworks instead of all the files directly
@@ -84,3 +63,10 @@ function emitFiles(path) {
8463
ret.push("");
8564
return ret;
8665
}
66+
67+
function main() {
68+
genNpmPluginXML();
69+
setIosNpmOrDev("npm");
70+
}
71+
72+
module.exports = main();

0 commit comments

Comments
 (0)