1.1.67 • Published 9 years ago

gulp-onejs-compiler v1.1.67

Weekly downloads
13
License
MIT
Repository
-
Last release
9 years ago

gulp-onejs-compiler Build Status

Compiler OneJS templates into javascript for project merging. See the onejs-compiler project for more details on the template format.

Install

NOTE: Until onejs-compiler is published to npm, you must use npm link:

git clone onejs-compiler
cd onejs-compiler
npm link
cd..
git clone gulp-onejs-compiler
npm i
npm link onejs-compiler

Once this module has been published:

Install with npm

$ npm install --save-dev gulp-onejs-compiler

Usage

var gulp = require('gulp'),
    compiler = require('gulp-onejs-compiler');

gulp.task('default', function() {
    return gulp.src('src/*.html')
        .pipe(compiler())
        .pipe(gulp.dest('dist'));
});

API

compiler(options)

options.typeScriptViewFileFormat

Type: String Default: {{templateName}}.ts

The format for view file's filename. Leaving this blank suppresses generation.

options.typeScriptViewModelFileFormat

Type: String Default: I{{templateName}}Model.ts

The format for view model interface file's filename. Leaving this blank suppresses generation.

options.paths

Type: 'Object' Default:

paths: {
    onejs: '../onejs/',
    defaultView: '../{{viewType}}/{{viewType}}'
}

Specifies the default paths to use in the imports. {{viewType}} will be replaced with the classname of the current view.

License

MIT © David Zearing

1.1.67

9 years ago

1.1.60

10 years ago

1.1.6

10 years ago

1.1.55

10 years ago

1.1.54

10 years ago

1.1.53

10 years ago

1.1.5

10 years ago

1.1.3

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago