forked from digitalocean/nginxconfig.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,335 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* global require */ | ||
/*eslint-env es6*/ | ||
|
||
const spawn = require('child_process'); | ||
const concat = require('concat'); | ||
|
||
const jsOutput = 'public/assets/js/vendor.min.js'; | ||
const jsFiles = [ | ||
// angular | ||
'node_modules/angular/angular.min.js', | ||
|
||
// independent | ||
'node_modules/highlight.js/build/highlight.pack.js', | ||
'node_modules/masonry-layout/dist/masonry.pkgd.min.js', | ||
'node_modules/clipboard/dist/clipboard.min.js', | ||
'node_modules/jszip/dist/jszip.min.js', | ||
'node_modules/file-saver/dist/FileSaver.min.js', | ||
'node_modules/js-base64/base64.min.js', | ||
|
||
// angular plugins | ||
'node_modules/ngclipboard/dist/ngclipboard.min.js', | ||
'node_modules/angular-tooltips/dist/angular-tooltips.min.js', | ||
]; | ||
|
||
|
||
|
||
function buildHighlightJs() { | ||
spawn.execSync('node build.js bash nginx', { | ||
cwd: 'node_modules/highlight.js/tools', | ||
}); | ||
} | ||
|
||
function concatJs() { | ||
concat(jsFiles, jsOutput); | ||
} | ||
|
||
|
||
|
||
buildHighlightJs(); | ||
concatJs(); |
Oops, something went wrong.