Skip to content

Commit 20baedd

Browse files
committed
Updating build dependencies, travis-ci.org config, fixing banner alignment in uglify output
1 parent b14d1ad commit 20baedd

10 files changed

+5494
-22
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
language: node_js
22
node_js:
33
- node
4+
- 8
45
- 7
56
- 6
7+
- 5
68
- 4
79

810
branches:

Gruntfile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(grunt) {
2929
"babel": {
3030
options: {
3131
sourceMap: false,
32-
presets: ["babel-preset-es2015"]
32+
presets: ["babel-preset-env"]
3333
},
3434
dist: {
3535
files: {
@@ -45,7 +45,7 @@ module.exports = function(grunt) {
4545
},
4646
uglify: {
4747
options: {
48-
banner: "/*\n<%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/",
48+
banner: "/*\n <%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/",
4949
sourceMap: true,
5050
sourceMapIncludeSources: true
5151
},
@@ -76,7 +76,7 @@ module.exports = function(grunt) {
7676
grunt.loadNpmTasks("grunt-eslint");
7777
grunt.task.registerTask("babili", "Minifies ES2016+ code", function () {
7878
var data = fs.readFileSync(path.join(__dirname, "lib", "filesize.es6.js"), "utf8"),
79-
minified = require("babel-core").transform(data, {sourceFileName: "filesize.es6.js", sourceMaps: true, presets: ["babili"]}),
79+
minified = require("babel-core").transform(data, {sourceFileName: "filesize.es6.js", sourceMaps: true, presets: ["minify"]}),
8080
pkg = require(path.join(__dirname, "package.json")),
8181
banner = "/*\n " + new Date().getFullYear() + " " + pkg.author + "\n @version " + pkg.version + "\n*/\n\"use strict\";";
8282

lib/filesize.es6.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2017 Jason Mulligan <[email protected]>
55
* @license BSD-3-Clause
6-
* @version 3.5.10
6+
* @version 3.5.11
77
*/
88
(function (global) {
99
const b = /^(b|B)$/,

lib/filesize.es6.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)