diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d2722414 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - 'lts/*' + +script: + - npm run lint + - npm run build diff --git a/gulpfile.js b/gulpfile.js index 9a6da95f..28909e27 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -226,9 +226,14 @@ gulp.task('watch', () => { gulp.watch(paths.demo.src.sass, tasks.sass); }); +// Build distribution +gulp.task('build', () => { + run(tasks.clean, tasks.js, tasks.sass, tasks.sprite); +}); + // Default gulp task gulp.task('default', () => { - run(tasks.clean, tasks.js, tasks.sass, tasks.sprite, 'watch'); + run('build', 'watch'); }); // Publish a version to CDN and demo diff --git a/package.json b/package.json index 950af4f6..db086d03 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,8 @@ "doc": "readme.md" }, "scripts": { + "build": "gulp build", + "lint": "eslint src/js", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Sam Potts ",