Adding npm run clean command to clean the sample dir

This commit is contained in:
Mads Mætzke Tandrup 2015-07-27 11:02:38 +02:00
parent 64f2e85608
commit d0a3def441
No known key found for this signature in database
GPG Key ID: 67056F406C84B14B
4 changed files with 17 additions and 4 deletions

View File

@ -9,6 +9,11 @@ npm install
npm test
```
To clean the workspace run:
```
npm run clean
```
## Author
mads@maetzke-tandrup.dk

View File

@ -4,8 +4,9 @@
"description": "Sample of generated TypeScript petstore client",
"main": "api.js",
"scripts": {
"postinstall": "tsd reinstall",
"test": "tsc"
"postinstall": "tsd reinstall --overwrite",
"test": "tsc",
"clean": "rm -Rf node_modules/ typings/ *.js"
},
"author": "Mads M. Tandrup",
"license": "Apache 2.0",

View File

@ -11,6 +11,12 @@ npm test
This will compile the code and run a small test application that will do some simple test calls to the Swagger Petstore API.
To clean the workspace run:
```
npm run clean
```
## Author
mads@maetzke-tandrup.dk

View File

@ -4,8 +4,9 @@
"description": "Sample of generated TypeScript petstore client",
"main": "api.js",
"scripts": {
"postinstall": "tsd reinstall",
"test": "tsc && node client.js"
"postinstall": "tsd reinstall --overwrite",
"test": "tsc && node client.js",
"clean": "rm -Rf node_modules/ typings/ *.js"
},
"author": "Mads M. Tandrup",
"license": "Apache 2.0",