File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -249,22 +249,22 @@ loadjs/
249
249
1 . Build examples
250
250
251
251
``` bash
252
- $ ./node_modules/.bin/gulp examples: build
252
+ $ npm run build:examples
253
253
```
254
254
255
255
To view the examples you can use any static file server. To use the ` nodejs ` http-server module:
256
256
257
257
``` bash
258
258
$ npm install http-server
259
- $ ./node_modules/.bin/http-server -p 3000
259
+ $ npm run serve
260
260
```
261
261
262
262
Then visit http://localhost:3000/examples
263
263
264
264
1 . Build distribution files
265
265
266
266
``` bash
267
- $ ./node_modules/.bin/gulp dist: build
267
+ $ npm run build
268
268
```
269
269
270
270
The files will be located in the ` dist ` directory.
@@ -274,7 +274,7 @@ loadjs/
274
274
To run the browser tests first build the ` loadjs ` library:
275
275
276
276
``` bash
277
- $ ./node_modules/.bin/gulp test: build
277
+ $ npm run build:test
278
278
```
279
279
280
280
Then visit http://localhost:3000/test
Original file line number Diff line number Diff line change 18
18
"url" : " https://github.com/muicss/loadjs.git"
19
19
},
20
20
"main" : " dist/loadjs.umd.js" ,
21
+ "scripts" : {
22
+ "build" : " gulp dist:build" ,
23
+ "build:examples" : " gulp examples:build" ,
24
+ "build:test" : " gulp test:build" ,
25
+ "serve" : " http-server -p 3000"
26
+ },
21
27
"devDependencies" : {
22
28
"del" : " 2.2.2" ,
23
29
"gulp" : " git+https://github.com/gulpjs/gulp#4.0" ,
You can’t perform that action at this time.
0 commit comments