Skip to content

Commit

Permalink
Removed the babel plugin for source-map-support
Browse files Browse the repository at this point in the history
  • Loading branch information
jgkim committed Nov 30, 2015
1 parent 422dc1f commit d4db892
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"presets": ["es2015"],
"plugins": [
"add-module-exports",
"source-map-support"
]
"plugins": ["add-module-exports"]
}
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ node_js:
before_install:
- npm install mocha
before_script:
- npm run compile
- npm run build
script:
- npm run lint
- npm test
after_success:
- npm run coveralls
18 changes: 18 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import gulp from 'gulp';
import header from 'gulp-header';
import sourcemaps from 'gulp-sourcemaps';
import babel from 'gulp-babel';

gulp.task('default', ['build']);

gulp.task('build', () => {
return gulp.src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(header('import \'source-map-support/register\'\n'))
.pipe(babel({
'presets': ['es2015'],
'plugins': ['add-module-exports'],
}))
.pipe(sourcemaps.write('.', { 'sourceRoot': '../src' }))
.pipe(gulp.dest('build'));
});
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-gherkin",
"version": "0.1.12",
"version": "0.1.13",
"description": "mocha-gherkin is a Gherkin-style interface and reporter add-on for mocha.",
"keywords": [
"mocha",
Expand All @@ -19,13 +19,11 @@
"main": "build/index.js",
"scripts": {
"prepublish": "npm run build",
"build": "babel --source-maps --out-dir build src",
"build": "gulp build",
"lint": "eslint .",
"link": "rm -f ./node_modules/mocha-gherkin && ln -s .. ./node_modules/mocha-gherkin",
"pretest": "npm run link",
"pretest": "ln -sfn .. ./node_modules/mocha-gherkin",
"test": "mocha --opts tests/mocha.opts tests",
"posttest": "npm run lint",
"precover": "npm run link",
"precover": "ln -sfn .. ./node_modules/mocha-gherkin",
"cover": "istanbul cover `npm bin`/_mocha -- --opts tests/mocha.opts tests",
"postcover": "remap-istanbul -i ./tests/coverage/coverage-final.json -o ./tests/coverage/lcov-remapped.info -t lcovonly",
"precoveralls": "npm run cover",
Expand All @@ -41,15 +39,17 @@
"mocha": "^2.3.4"
},
"devDependencies": {
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
"babel-plugin-add-module-exports": "^0.1.1",
"babel-plugin-source-map-support": "0.0.1",
"babel-preset-es2015": "^6.1.18",
"chai": "latest",
"coveralls": "^2.11.4",
"eslint": "^1.10.1",
"eslint-config-tipplr": "latest",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-header": "^1.7.1",
"gulp-sourcemaps": "^1.6.0",
"istanbul": "^0.4.1",
"mocha": "latest",
"remap-istanbul": "^0.4.0",
Expand Down

0 comments on commit d4db892

Please sign in to comment.