diff --git a/package.json b/package.json index 53df6c5..01bbc3e 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ }, "scripts": { "lint": "repo-tools lint \"**/*.js\"", - "doc": "jsdoc -c conf.json src node_modules/js-data-adapter/src && node scripts/cleanup.js", + "doc": "jsdoc -c conf.json src node_modules/js-data-adapter/src", "version": "repo-tools write-version dist/js-data-http.js fetch/dist/js-data-fetch.js node/dist/js-data-http-node.js", "bundle_http": "rollup -c rollup.config.js -f umd -o dist/js-data-http.js -m dist/js-data-http.js.map src/index.js", "bundle_fetch": "rollup -c fetch/rollup.config.js -f umd -o fetch/dist/js-data-fetch.js -m fetch/dist/js-data-fetch.js.map src/index.js", diff --git a/scripts/cleanup.js b/scripts/cleanup.js deleted file mode 100644 index 692ec4e..0000000 --- a/scripts/cleanup.js +++ /dev/null @@ -1,25 +0,0 @@ -var fs = require('fs') - -var pkg = require('../package.json') - -var path = './doc/js-data-http/' + pkg.version + '/styles/' - -var files = fs.readdirSync(path) -files.forEach(function (file) { - if (file.indexOf('site') === 0) { - if (file.indexOf('lumen') === -1 && file.indexOf('dibs') === -1) { - fs.unlinkSync(path + file) - } - } -}) - -path = './doc/js-data-http/' + pkg.version - -files = fs.readdirSync(path) -files.forEach(function (file) { - if (file.indexOf('.html') === file.length - 5) { - var content = fs.readFileSync(path + '/' + file, { encoding: 'utf8' }) - content = content.replace(/\/home\/ubuntu\/workspace\//gi, '') - fs.writeFileSync(path + '/' + file, content, { encoding: 'utf8' }) - } -})