Skip to content

Commit

Permalink
Add a clear-html-files script
Browse files Browse the repository at this point in the history
  • Loading branch information
jlord committed Mar 19, 2017
1 parent e4184c9 commit 28b8d8a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/clear.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var glob = require('glob')
var fs = require('fs')

glob('*/**/*.html', function (err, files) {
if (err) return console.log(err)
files.forEach(function (file) {
// delete all generated files, not the demos
// which are bespoke and hand crafted artisan
if (file.match('demos')) return
fs.unlinkSync(file)
})
})

0 comments on commit 28b8d8a

Please sign in to comment.