File tree Expand file tree Collapse file tree 2 files changed +8
-22
lines changed Expand file tree Collapse file tree 2 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 36
36
}
37
37
},
38
38
"scripts" : {
39
- "validate" : " echo 'run validation scripts'; gulp prod " ,
39
+ "validate" : " echo 'run validation scripts'; node ./src/scripts/npm/updatePluginXml " ,
40
40
"travis-deploy-once" : " echo 'prevent multiple deploys'; travis-deploy-once" ,
41
41
"commitmsg" : " echo 'validate commit messages'; commitlint -e $GIT_PARAMS" ,
42
42
"precommit" : " echo 'run prettier on commit'; lint-staged" ,
Original file line number Diff line number Diff line change 1
- // import
2
- var gulp = require ( "gulp" ) ;
3
1
var fs = require ( "fs" ) ;
4
2
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
-
24
3
function getDevPluginXML ( ) {
25
4
// generate plugin.xml for local development
26
5
// here we reference the frameworks instead of all the files directly
@@ -84,3 +63,10 @@ function emitFiles(path) {
84
63
ret . push ( "" ) ;
85
64
return ret ;
86
65
}
66
+
67
+ function main ( ) {
68
+ genNpmPluginXML ( ) ;
69
+ setIosNpmOrDev ( "npm" ) ;
70
+ }
71
+
72
+ module . exports = main ( ) ;
You can’t perform that action at this time.
0 commit comments