Browse Source

Implement test in gulp

gulp
sipp11 9 years ago
parent
commit
97faab3baf
  1. 15
      CHANGELOG.md
  2. 22
      README.md
  3. 18
      gulpfile.js
  4. 6
      package.json

15
CHANGELOG.md

@ -1,15 +0,0 @@
v1.1 / 2015-12-14
=================
* Support ES2015 & Stage 0
v1.0 / 2015-11-17
=================
* Add support info
* Fixed path to register.js
* Clear dependencies
* Add docs about install, test and license
* Support Babel.js in Jasmine specs
* Initial commit

22
README.md

@ -15,25 +15,3 @@ Before you should have global installation of `jasmine` package.
```
npm test
```
## Support
Current support version:
- `Babel ^6.3.17`
Previously support:
- `Babel ^5.8.29`
## Build changelog
Use https://github.com/tj/git-extras/blob/master/Commands.md#git-changelog:
```
git changelog -a -n
```
## License
[The MIT License](http://piecioshka.mit-license.org)

18
gulpfile.js

@ -0,0 +1,18 @@
require('babel-core/register');
const gulp = require('gulp');
const jasmine = require('gulp-jasmine');
// Test JS
gulp.task('test', function () {
return gulp.src(["index.js", "test/**/*.js", "src/**/*.js"])
.pipe(jasmine({
includeStackTrace: true,
}))
});
// Default Task
gulp.task('default', function() {
// place code for your default task here
});
gulp.task('default', ['test']);

6
package.json

@ -3,12 +3,16 @@
"name": "test-jasmine-babel",
"scripts": {
"clear": "rm -rf node_modules/",
"test": "jasmine JASMINE_CONFIG_PATH=test/jasmine.json"
"test": "gulp test"
},
"devDependencies": {
"babel-core": "^6.3.26",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"gulp": "^3.9.0",
"gulp-jasmine": "^2.2.1",
"jasmine": "^2.4.1"
},
"dependencies": {
}
}

Loading…
Cancel
Save