From 5db818b3d3daaa1de7a235127dc78ed270969fa1 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Mon, 20 Apr 2015 13:59:59 +0430 Subject: [PATCH] move library files to lib --- Gruntfile.js | 8 ++++---- constats.js => lib/constats.js | 0 helpers.js => lib/helpers.js | 0 index.js => lib/index.js | 0 operators.js => lib/operators.js | 0 readstream.js => lib/readstream.js | 4 +++- 6 files changed, 7 insertions(+), 5 deletions(-) rename constats.js => lib/constats.js (100%) rename helpers.js => lib/helpers.js (100%) rename index.js => lib/index.js (100%) rename operators.js => lib/operators.js (100%) rename readstream.js => lib/readstream.js (92%) diff --git a/Gruntfile.js b/Gruntfile.js index 1e56411..438d3cf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,13 +1,13 @@ module.exports = function(grunt) { grunt.initConfig({ eslint: { - target: ['*.js', 'tests/*.js'] + target: ['lib/*.js', 'tests/*.js'] }, babel: { dist: { files: [{ expand: true, - src: ['*.js', 'tests/*.js'], + src: ['lib/*.js', 'tests/*.js'], dest: 'dist/' }] } @@ -17,8 +17,8 @@ module.exports = function(grunt) { }, watch: { scripts: { - files: '**/*.js', - tasks: ['eslint', 'babel'] + files: 'lib/*.js', + tasks: ['babel'] } } }); diff --git a/constats.js b/lib/constats.js similarity index 100% rename from constats.js rename to lib/constats.js diff --git a/helpers.js b/lib/helpers.js similarity index 100% rename from helpers.js rename to lib/helpers.js diff --git a/index.js b/lib/index.js similarity index 100% rename from index.js rename to lib/index.js diff --git a/operators.js b/lib/operators.js similarity index 100% rename from operators.js rename to lib/operators.js diff --git a/readstream.js b/lib/readstream.js similarity index 92% rename from readstream.js rename to lib/readstream.js index f174b4a..0a02c58 100644 --- a/readstream.js +++ b/lib/readstream.js @@ -4,7 +4,9 @@ export default function(string) { next() { buffer.push(string[i]); - if (i >= string.length) return null; + if (i >= string.length) { + return null; + } return string[i++]; }, current() {