Skip to content

Commit

Permalink
Updating build dependencies, travis-ci.org config, fixing banner alig…
Browse files Browse the repository at this point in the history
…nment in uglify output
  • Loading branch information
avoidwork committed Oct 18, 2017
1 parent b14d1ad commit 20baedd
Show file tree
Hide file tree
Showing 10 changed files with 5,494 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: node_js
node_js:
- node
- 8
- 7
- 6
- 5
- 4

branches:
Expand Down
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(grunt) {
"babel": {
options: {
sourceMap: false,
presets: ["babel-preset-es2015"]
presets: ["babel-preset-env"]
},
dist: {
files: {
Expand All @@ -45,7 +45,7 @@ module.exports = function(grunt) {
},
uglify: {
options: {
banner: "/*\n<%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/",
banner: "/*\n <%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/",
sourceMap: true,
sourceMapIncludeSources: true
},
Expand Down Expand Up @@ -76,7 +76,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-eslint");
grunt.task.registerTask("babili", "Minifies ES2016+ code", function () {
var data = fs.readFileSync(path.join(__dirname, "lib", "filesize.es6.js"), "utf8"),
minified = require("babel-core").transform(data, {sourceFileName: "filesize.es6.js", sourceMaps: true, presets: ["babili"]}),
minified = require("babel-core").transform(data, {sourceFileName: "filesize.es6.js", sourceMaps: true, presets: ["minify"]}),
pkg = require(path.join(__dirname, "package.json")),
banner = "/*\n " + new Date().getFullYear() + " " + pkg.author + "\n @version " + pkg.version + "\n*/\n\"use strict\";";

Expand Down
2 changes: 1 addition & 1 deletion lib/filesize.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.5.10
* @version 3.5.11
*/
(function (global) {
const b = /^(b|B)$/,
Expand Down
4 changes: 2 additions & 2 deletions lib/filesize.es6.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 20baedd

Please sign in to comment.