1.0.5 • Published 2 years ago

gulp-wasm v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

gulp-wasm

gulp-wasm is a gulp plugin to automates building wasm files from c and c++ files.

NPM

Usage

gulp-wasm provide a simple method for building wasm files from c and c++ files.

const gulp = require("gulp");
const buildWasm = require("gulp-wasm");

gulp.task("build-wasm", function () {
  return gulp.src(["./c_cpp/**/*.c", "./c_cpp/**/*.cpp"]).pipe(
    buildWasm({
      optimize: true,
      quiet: true,
    })
  );
});

Options

keytypedescription
debugbooleanPrints debug information to stderr.
quietbooleanSuppresses informatory output.

Module configuration:

keydescription
optimizeOptimizes the output file and removes dead code
stackSpecifies the stack size. Defaults to 10000
mainExecutes the specified function on load
defineDefines a macro

Includes and libraries:

keydescription
headersIncludes C headers from the specified directories
includeIncludes the specified source files
linkLinks in the specified libraries after compilation
bareDoes not include the runtime library

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

License

MIT License

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago