move library files to lib

This commit is contained in:
Mahdi Dibaiee 2015-04-20 13:59:59 +04:30
parent 195777b1af
commit 5db818b3d3
6 changed files with 7 additions and 5 deletions

View File

@ -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']
}
}
});

View File

@ -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() {