diff --git a/package.json b/package.json index b8edb633..be49952f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build:scripts": "node scripts/build-scripts.js", "build:scss": "node scripts/build-scss.js", "clean": "node scripts/clean.js", - "start": "npm run build && node scripts/start.js" + "start": "npm run build && node scripts/start.js", + "start:debug": "npm run build && node scripts/start-debug.js" }, "description": "A free admin dashboard template based on Bootstrap 4, created by Start Bootstrap.", "keywords": [ @@ -38,13 +39,7 @@ "url": "https://github.com/BlackrockDigital/startbootstrap-sb-admin.git" }, "dependencies": { - "@fortawesome/fontawesome-free": "5.11.2", - "bootstrap": "4.3.1", - "chart.js": "^2.9.2", - "datatables.net-bs4": "^1.10.20", - "feather-icons": "4.24.1", - "jquery": "^3.4.1", - "jquery.easing": "^1.4.1" + "bootstrap": "4.3.1" }, "devDependencies": { "browser-sync": "2.26.7", diff --git a/scripts/sb-watch.js b/scripts/sb-watch.js index 8eddb7f5..fce78b1e 100644 --- a/scripts/sb-watch.js +++ b/scripts/sb-watch.js @@ -1,5 +1,6 @@ 'use strict'; +const _ = require('lodash'); const chokidar = require('chokidar'); const path = require('path'); const renderAssets = require('./render-assets'); @@ -60,7 +61,7 @@ function _handlePug(filePath, watchEvent) { function _renderAllPug() { console.log('### INFO: Rendering All'); - each(allFiles, (value, filePath) => { + _.each(allFiles, (value, filePath) => { renderPug(filePath); }); } diff --git a/scripts/start-debug.js b/scripts/start-debug.js new file mode 100644 index 00000000..92c4cfcd --- /dev/null +++ b/scripts/start-debug.js @@ -0,0 +1,21 @@ +const concurrently = require('concurrently'); + +concurrently([ + { command: 'node --inspect scripts/sb-watch.js', name: 'SB_WATCH', prefixColor: 'bgBlue.bold' }, + { + command: 'node_modules/.bin/browser-sync dist -w --no-online', + name: 'SB_WATCH', + prefixColor: 'bgBlue.bold', + } +], { + prefix: 'name', + killOthers: ['failure', 'success'], +}).then(success, failure); + +function success() { + console.log('Success'); +} + +function failure() { + console.log('Failure'); +} \ No newline at end of file