Skip to content

Commit

Permalink
Merge pull request #17 from rocknrolla777/refactor/full
Browse files Browse the repository at this point in the history
Package Refactoring
  • Loading branch information
rocknrolla777 authored Dec 15, 2017
2 parents 015ecd1 + dbd428c commit 3eb8a6f
Show file tree
Hide file tree
Showing 15 changed files with 426 additions and 89 deletions.
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"env"
],
"plugins": [
"add-module-exports",
"transform-runtime",
"transform-object-rest-spread"
]
}
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "airbnb/base"
}
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.git
.idea/
npm-debug.log
npm-debug.log
src
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- "7"
- "6"
- "5"
- "6"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This module is designed for the [Strongloop Loopback](https://github.com/strongl
```bash
npm install --save loopback-cascade-delete-mixin
```
Node.js v. > 6

## mixinsources

Expand Down
197 changes: 130 additions & 67 deletions cascade-delete.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict';

const gulp = require('gulp');
import sourcemaps from 'gulp-sourcemaps';
import babel from 'gulp-babel';
import path from 'path';

const paths = {
es6: ['src/*.js'],
es5: '.',
sourceRoot: path.join(__dirname, 'dist'),
};

gulp.task('babel', () => {
return gulp.src(paths.es6)
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write())
.pipe(gulp.dest(paths.es5));
});

gulp.task('watch', () => {
gulp.watch(paths.es6, ['babel']);
});

gulp.task('default', ['watch']);
20 changes: 16 additions & 4 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3eb8a6f

Please sign in to comment.