Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Hedgefog/gulp-sma

Repository files navigation

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).

About

Gulp plugin for sma

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published