File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1
- .idea .gitattributes .npmignore * .tgz Gruntfile.js * .cmd tscommand.tmp.txt .tscache /bin /ios-sim-portable bin /* .cmd lib /** /* .ts lib /** /* .js.map
1
+ .idea
2
+ .gitattributes
3
+ .npmignore
4
+ * .tgz
5
+ Gruntfile.js
6
+ * .cmd
7
+ tscommand.tmp.txt
8
+ .tscache /
9
+
10
+ bin /ios-sim-portable
11
+ bin /* .cmd
12
+
13
+ lib /** /* .tsp
14
+ lib /** /* .js.map
15
+ /usr /local /bin /appbuilder copy
Original file line number Diff line number Diff line change @@ -14,9 +14,14 @@ module.exports = function(grunt) {
14
14
src : [ "lib/**/*.ts" ] ,
15
15
reference : "lib/.d.ts"
16
16
}
17
+ } ,
18
+
19
+ clean : {
20
+ src : [ "lib/**/*.js*" , "*.tgz" ]
17
21
}
18
22
} ) ;
19
23
24
+ grunt . loadNpmTasks ( "grunt-contrib-clean" ) ;
20
25
grunt . loadNpmTasks ( "grunt-ts" ) ;
21
26
22
27
grunt . registerTask ( "default" , "ts:devlib" ) ;
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " ./lib/ios-sim.js" ,
6
6
"scripts" : {
7
- "test" : " echo \" Error: no test specified\" && exit 1"
7
+ "test" : " echo \" Error: no test specified\" && exit 1" ,
8
+ "prepublish" : " node prepublish.js"
9
+ },
10
+ "bin" : {
11
+ "ios-sim-portable" : " ./bin/ios-sim-portable.js"
8
12
},
9
13
"repository" : {
10
14
"type" : " git" ,
28
32
"yargs" : " 1.2.2"
29
33
},
30
34
"devDependencies" : {
35
+ "grunt-contrib-clean" : " 0.5.0" ,
31
36
"grunt" : " 0.4.2" ,
32
37
"grunt-ts" : " 1.11.2"
33
38
}
Original file line number Diff line number Diff line change
1
+ var fs = require ( "fs" ) ;
2
+
3
+ var callback = function ( ) { } ;
4
+
5
+ if ( ! fs . existsSync ( "lib/ios-sim.js" ) ) {
6
+ var grunt = require ( "grunt" ) ;
7
+ grunt . cli . tasks = [ "ts:devlib" ] ;
8
+ grunt . cli ( null , callback ) ;
9
+ } else {
10
+ process . nextTick ( callback ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments