diff options
author | Sam Potts <sam@potts.es> | 2018-05-31 18:33:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 18:33:00 +1000 |
commit | eec96e58793b0627efbe020f4efb8193cc49b8db (patch) | |
tree | 4e12c1dd9a4e284b754ecf6115da1d467f857d8c | |
parent | c6c9d877e4ae90b6045a5be83da2dc4b0ce0e08a (diff) | |
parent | 359acd6bb9fc6158cfa9a10001b2e264fc31929b (diff) | |
download | plyr-eec96e58793b0627efbe020f4efb8193cc49b8db.tar.lz plyr-eec96e58793b0627efbe020f4efb8193cc49b8db.tar.xz plyr-eec96e58793b0627efbe020f4efb8193cc49b8db.zip |
Merge pull request #990 from friday/travis
Travis integration
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | gulpfile.js | 7 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 15 insertions, 1 deletions
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 <sam@potts.es>", |