Skip to content

Commit

Permalink
Fixed the clean command which would report an error and abort the rest
Browse files Browse the repository at this point in the history
of the 'start' command.

I found the answer via Giel Berkers answer in
https://superuser.com/questions/76061/how-do-i-make-rm-not-give-an-error-if-a-file-doesnt-exist

Oh, and npm install is worth running to download any recently added
dependencies.
  • Loading branch information
julianharty committed Jun 24, 2017
1 parent e363814 commit e63661c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rm ./dist/*.html && rm ./dist/*.css && rm -rf ./dist/A",
"clean": "rm ./dist/*.html ; rm ./dist/*.css ; rm ./dist/*.js ; rm ./dist/*.png ; rm -rf ./dist/A || true",
"less": "./node_modules/.bin/lessc style.less ./dist/style.css",
"build": "./node_modules/.bin/ts-node index.ts",
"include": "cp include/* dist/",
Expand Down Expand Up @@ -35,4 +35,4 @@
"ts-node": "^3.0.3",
"typescript": "^2.3.2"
}
}
}

0 comments on commit e63661c

Please sign in to comment.