Skip to content

Commit

Permalink
Updating dev dependencies, adding npm lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Oct 9, 2017
1 parent 98bbba0 commit 05dff7f
Show file tree
Hide file tree
Showing 7 changed files with 5,218 additions and 46 deletions.
6 changes: 0 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"es6": true,
"amd": true
},
"ecmaFeatures": {
"jsx": false,
"superInFunctions": false,
"classes": false,
"modules": [2]
},
"rules": {
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"before": true, "after": true}],
Expand Down
47 changes: 20 additions & 27 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON("package.json"),
concat : {
options : {
banner : "/**\n" +
pkg: grunt.file.readJSON("package.json"),
concat: {
options: {
banner: "/**\n" +
" * <%= pkg.description %>\n" +
" *\n" +
" * @author <%= pkg.author %>\n" +
Expand All @@ -13,19 +13,19 @@ module.exports = function (grunt) {
" * @version <%= pkg.version %>\n" +
" */\n"
},
dist : {
src : [
dist: {
src: [
"src/intro.js",
"src/lru.js",
"src/outro.js"
],
dest : "lib/<%= pkg.name %>.es6.js"
dest: "lib/<%= pkg.name %>.es6.js"
}
},
babel: {
options: {
sourceMap: false,
presets: ["babel-preset-es2015"]
presets: ["env"]
},
dist: {
files: {
Expand All @@ -36,19 +36,13 @@ module.exports = function (grunt) {
eslint: {
target: [
"index.js",
"Gruntfile.js",
"lib/<%= pkg.name %>.es6.js",
"test/*.js"
]
},
nodeunit : {
all : ["test/*.js"]
},
sed : {
"version" : {
pattern : "{{VERSION}}",
replacement : "<%= pkg.version %>",
path : ["<%= concat.dist.dest %>"]
}
nodeunit: {
all: ["test/*.js"]
},
uglify: {
options: {
Expand All @@ -64,24 +58,23 @@ module.exports = function (grunt) {
},
target: {
files: {
"lib/<%= pkg.name %>.min.js" : ["lib/<%= pkg.name %>.js"]
"lib/<%= pkg.name %>.min.js": ["lib/<%= pkg.name %>.js"]
}
}
},
watch : {
js : {
files : "<%= concat.dist.src %>",
tasks : "default"
watch: {
js: {
files: "<%= concat.dist.src %>",
tasks: "default"
},
pkg: {
files : "package.json",
tasks : "default"
files: "package.json",
tasks: "default"
}
}
});

// tasks
grunt.loadNpmTasks("grunt-sed");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-contrib-watch");
Expand All @@ -91,6 +84,6 @@ module.exports = function (grunt) {

// aliases
grunt.registerTask("test", ["eslint", "nodeunit"]);
grunt.registerTask("build", ["concat", "sed", "babel", "uglify"]);
grunt.registerTask("build", ["concat", "babel", "uglify"]);
grunt.registerTask("default", ["build", "test"]);
};
};
2 changes: 1 addition & 1 deletion lib/tiny-lru.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2017
* @license BSD-3-Clause
* @link https://github.com/avoidwork/tiny-lru
* @version 1.4.9
* @version 1.4.10
*/
"use strict";

Expand Down
2 changes: 1 addition & 1 deletion lib/tiny-lru.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2017
* @license BSD-3-Clause
* @link https://github.com/avoidwork/tiny-lru
* @version 1.4.9
* @version 1.4.10
*/
"use strict";

Expand Down
2 changes: 1 addition & 1 deletion lib/tiny-lru.min.js.map

Large diffs are not rendered by default.

0 comments on commit 05dff7f

Please sign in to comment.