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) { module.exports = function(grunt) {
grunt.initConfig({ grunt.initConfig({
eslint: { eslint: {
target: ['*.js', 'tests/*.js'] target: ['lib/*.js', 'tests/*.js']
}, },
babel: { babel: {
dist: { dist: {
files: [{ files: [{
expand: true, expand: true,
src: ['*.js', 'tests/*.js'], src: ['lib/*.js', 'tests/*.js'],
dest: 'dist/' dest: 'dist/'
}] }]
} }
@ -17,8 +17,8 @@ module.exports = function(grunt) {
}, },
watch: { watch: {
scripts: { scripts: {
files: '**/*.js', files: 'lib/*.js',
tasks: ['eslint', 'babel'] tasks: ['babel']
} }
} }
}); });

View File

@ -4,7 +4,9 @@ export default function(string) {
next() { next() {
buffer.push(string[i]); buffer.push(string[i]);
if (i >= string.length) return null; if (i >= string.length) {
return null;
}
return string[i++]; return string[i++];
}, },
current() { current() {