Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gulp-sma

1.0.5 • Public • Published

gulp-sma npm version

Sma plugin for Gulp.

Install

npm install gulp-sma --save-dev

Basic Usage

var gulp = require('gulp');
var gulpSma = require('gulp-sma');
 
gulp.task('sma', () => {
  return gulp.src('./src/scripts/**/*.sma')
    .pipe(gulpSma({
        compiler: path.join(__dirname, './compiler/amxxpc'),
        dest: path.join(__dirname, './dist/addons/amxmodx/plugins'),
        includeDir: path.join(__dirname, './src/include'),
    }))
    .pipe(gulp.dest('./dist/addons/amxmodx/scripting'))
});
 
gulp.task('sma:watch', () => {
  gulp.watch('./src/scripts/**/*.sma', ['sma']);
});

Options

compiler - path to amxmodx compiler binary.

dest - path for compiled plugin.

includeDir - path to includes.

ignoreSubDirs - save structure of source folders (true by default).

Install

npm i gulp-sma

DownloadsWeekly Downloads

3

Version

1.0.5

License

MIT

Last publish

Collaborators

  • avatar