Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/trim dependencies #424

Merged
merged 5 commits into from
Dec 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update node-minify
  • Loading branch information
adroitwhiz committed Dec 8, 2019
commit 3c8f2ff2e79e058bab3c53a634dff69bc5d9d11e
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
},
"license": "MIT",
"devDependencies": {
"@node-minify/core": "^5.2.1",
"@node-minify/google-closure-compiler": "^5.2.1",
"@node-minify/no-compress": "^5.2.0",
"eslint": "^6.7.2",
"jsdoc": "~3.5.5",
"node-minify": "^2.0.3",
"qunit": "^2.9.3",
"resemblejs": "^3.2.3",
"underscore": "^1.9.1"
Expand Down
17 changes: 10 additions & 7 deletions utils/build.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// https://npmjs.org/package/node-minify

var path = require('path');
var compressor = require('node-minify');
var _ = require('underscore');
var fs = require('fs');

var minify = require('@node-minify/core');
var noCompress = require('@node-minify/no-compress');
var gcc = require('@node-minify/google-closure-compiler');

var files = [
path.resolve(__dirname, './start-comment.js'),
path.resolve(__dirname, '../LICENSE'),
Expand Down Expand Up @@ -38,8 +41,8 @@ var files = [
];

// Concatenated
compressor.minify({
compressor: 'no-compress',
minify({
compressor: noCompress,
input: files,
output: path.resolve(__dirname, '../build/two.js'),
callback: function(e) {
Expand All @@ -59,8 +62,8 @@ compressor.minify({
});

// Minified
compressor.minify({
compressor: 'gcc',
minify({
compressor: gcc,
input: path.resolve(__dirname, '../build/two.js'),
output: path.resolve(__dirname, '../build/two.min.js'),
callback: function(e) {
Expand All @@ -72,8 +75,8 @@ compressor.minify({
}
});

compressor.minify({
compressor: 'no-compress',
minify({
compressor: noCompress,
input: [
path.resolve(__dirname, '../build/two.js'),
path.resolve(__dirname, './exports.js')
Expand Down