Skip to content

Commit

Permalink
Move more tests to npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 18, 2017
1 parent 004407c commit f2fc2d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
25 changes: 1 addition & 24 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,6 @@ gulp.task('build', (done) => {
runSequence('clean', ['build:lib', 'build:docs'], done);
});

// Lint

gulp.task('lint', () => {
let eslint = require('gulp-eslint');
return gulp.src(['*.js', 'lib/*.es6', 'test/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('spellcheck', ['api'], () => {
if ( process.env.APPVEYOR ) return false;
let run = require('gulp-run');
return run('yaspeller-ci api/*.html *.md docs/*.md docs/**/*.md').exec();
});

gulp.task('size', ['build:lib'], () => {
let run = require('gulp-run');
return run('size-limit').exec();
});

// Tests

gulp.task('integration', ['build'], done => {
Expand Down Expand Up @@ -89,6 +68,4 @@ gulp.task('api', ['clean'], () => {

// Common

gulp.task('offline', ['version', 'lint', 'api', 'size']);

gulp.task('default', ['offline', 'spellcheck', 'integration']);
gulp.task('default', ['version', 'api', 'integration']);
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"gulp": "^3.9.1",
"gulp-babel": "^7.0.0",
"gulp-changed": "^3.1.1",
"gulp-eslint": "^4.0.0",
"gulp-run": "^1.7.1",
"gulp-sourcemaps": "^2.6.1",
"jest": "^22.0.1",
Expand All @@ -56,7 +55,9 @@
},
"scripts": {
"lint-staged": "lint-staged",
"test": "gulp && jest"
"spellcheck": "yaspeller-ci api/*.html *.md docs/*.md docs/**/*.md",
"lint": "eslint *.js lib/*.es6 test/*.js",
"test": "gulp && jest && npm run lint && npm run spellcheck && size-limit"
},
"main": "lib/postcss",
"types": "lib/postcss.d.ts",
Expand Down
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ eslint-scope@^3.7.1:
esrecurse "^4.1.0"
estraverse "^4.1.1"

eslint@^4.0.0, eslint@^4.13.1:
eslint@^4.13.1:
version "4.13.1"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.13.1.tgz#0055e0014464c7eb7878caf549ef2941992b444f"
dependencies:
Expand Down Expand Up @@ -2889,13 +2889,6 @@ gulp-changed@^3.1.1:
pify "^3.0.0"
through2 "^2.0.0"

gulp-eslint@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/gulp-eslint/-/gulp-eslint-4.0.0.tgz#16d9ea4d696e7b7a9d65eeb1aa5bc4ba0a22c7f7"
dependencies:
eslint "^4.0.0"
gulp-util "^3.0.8"

gulp-run@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/gulp-run/-/gulp-run-1.7.1.tgz#e17c0acb7c30b6e2aeee23c04442a96c0caceffa"
Expand Down

0 comments on commit f2fc2d0

Please sign in to comment.