Permalink
Browse files

ready for publish

  • Loading branch information...
hamzakilic committed Jan 6, 2018
1 parent 3be0048 commit 621eb44085e0a2836afebcd179952cdcf5a5c124
Showing with 313 additions and 237 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .npmignore
  3. +2 −3 README.md
  4. +0 −19 build/errors.js
  5. +0 −15 build/limits.js
  6. +3 −23 gulpfile.js
  7. +149 −141 {build → lib}/bmpDecoder.js
  8. +38 −0 lib/errors.js
  9. +34 −17 {build → lib}/imageRGBA.js
  10. +2 −2 {build → lib}/index.js
  11. +18 −0 lib/limits.js
  12. +50 −0 package-lock.json
  13. +4 −6 package.json
  14. +1 −2 src/errors.ts
  15. +3 −3 test/bmpDecoder.spec.js
  16. +2 −2 test/image.spec.js
  17. +4 −4 tsconfig.json
@@ -1,2 +1,3 @@
node_modules
dist
build
@@ -0,0 +1,2 @@
src
test
@@ -6,11 +6,10 @@ converted from c library http://www.netsurf-browser.org/projects/libnsbmp/
npm install bmpjs --save
#build
npm install
npm build
gulp buildsrc
#test
npm test
gulp runspec
#usage

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -4,6 +4,7 @@ var gulp = require('gulp'),
mocha = require('gulp-mocha');
//create a tsproject varible for running task buildsrc
var tsProjectSrc = gulpts.createProject('tsconfig.json');
@@ -14,7 +15,7 @@ var testFolder="./test/**/*.spec.js";
gulp.task('buildsrc', function() {
var tsResult = gulp.src(sourceFolder).pipe(tsProjectSrc());
return tsResult.js.pipe( gulp.dest('build/') )
return tsResult.js.pipe( gulp.dest('lib/') )
});
@@ -50,26 +51,5 @@ gulp.task('watch_spec', ['runspec'], function() {
});
//watch output image.js for browserify
gulp.task('watch_output', ['buildsrc'], function() {
// gulp.watch('build/image.js', ['runbrowserify']);
});
gulp.task('runbrowserify', function() {
// Single entry point to browserify
gulp.src('build/image.js')
.pipe(browserify({
insertGlobals : true,
debug : !gulp.env.production
}))
.pipe(gulp.dest('./build/browserify'))
});
//default tasks
gulp.task('default',['watchsrc','watch_spec','watch_output']);
gulp.task('default',['watchsrc','watch_spec','watch_output']);
Oops, something went wrong.

0 comments on commit 621eb44

Please sign in to comment.