-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user blacklisting, update build process, add auto-build
Postinstall script will build the lib so it can be installed directly from github. Also, as a result of updating the build process, I properly have types provided automatically via the compilation
- Loading branch information
Showing
5 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,20 @@ | ||
var gulp = require('gulp'); | ||
var ts = require('gulp-typescript'); | ||
var del = require('del'); | ||
const gulp = require('gulp'); | ||
const ts = require('gulp-typescript'); | ||
const del = require('del'); | ||
|
||
const project = ts.createProject('tsconfig.json'); | ||
|
||
gulp.task('default', () => | ||
{ | ||
del.sync(['./bin/**/*.*']); | ||
|
||
gulp.src('./src/**/*.ts') | ||
.pipe(ts({ | ||
noImplicitAny: true, | ||
outDir: 'bin', | ||
target: 'ES6', | ||
module: 'commonjs', | ||
moduleResolution: 'node' | ||
})) | ||
.pipe(gulp.dest('bin/')); | ||
gulp.src('./src/config.json') | ||
.pipe(project()) | ||
.pipe(gulp.dest('bin/')); | ||
}); | ||
|
||
gulp.task('package', (done) => | ||
{ | ||
gulp.src('src/**/*ts') | ||
.pipe(ts({ | ||
noImplicitAny: true, | ||
outDir: 'bin', | ||
target: 'ES6', | ||
module: 'commonjs', | ||
moduleResolution: 'node' | ||
})) | ||
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager/bin')); | ||
gulp.src('src/**/*.json') | ||
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager/bin')); | ||
gulp.src(['package.json', '*.md']) | ||
.pipe(gulp.dest('pkg/yamdbf-addon-dm-manager')); | ||
done(); | ||
}); | ||
gulp.src('./src/**/*.js') | ||
.pipe(gulp.dest('bin/')); | ||
|
||
gulp.task('clean-package', (done) => | ||
{ | ||
del.sync(['pkg/yamdbf-addon-dm-manager/bin/**', '!pkg/yamdbf-addon-dm-manager/bin']); | ||
done(); | ||
gulp.src('./src/**/*.json') | ||
.pipe(gulp.dest('bin/')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
import _DMManager from './DMManager'; | ||
|
||
export const DMManager = _DMManager; // tslint:disable-line | ||
export default DMManager; | ||
export { DMManager } from './DMManager'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters