gulp-level2-ember

1.0.0 • Public • Published

Level2 Ember Gulp Plugin

This plugin exposes the Level2 Ember compiler to Gulp.

Usage

Simply pipe files to the plugin to compile them. The plugin will output 1 file containing the compiled project.

var gulp = require('gulp'),
	compile = require('gulp-level2-ember');

gulp.task('compile', function() {
	return gulp.src('path/to/project')
		.pipe(compile())
		.pipe('path/to/output');
});

The module accepts options as the first argument when constructing the compiler.

var gulp = require('gulp'),
	compile = require('gulp-level2-ember');

gulp.task('compile', function() {
	return gulp.src('path/to/project')
		.pipe(compile({ debugMode: false }))
		.pipe('path/to/output');
});

Options

  • [debugMode] Boolean: Enables debug mode so that compiled sources are isolated in the debugger (default true)
  • [dependencyPath] String: The path to dependencies to be loaded by the compiler
  • [templateCompiler] String: Path to the ember template compiler to use

/gulp-level2-ember/

    Package Sidebar

    Install

    npm i gulp-level2-ember

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • wnaslund