gulp-strapr
A plugin for Gulp
Last updated 6 years ago by glenn.abrahamsen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-strapr 
SYNC missed versions from official npm registry.

gulp-strapr

NPM version Build Status Coverage Status Dependency Status

strapr plugin for gulp

Usage

First, install gulp-strapr as a development dependency:

npm install --save-dev gulp-strapr

Then, add it to your gulpfile.js:

var strapr = require("gulp-strapr");

gulp.src('sample/*.html')
	.pipe(strapr({
  				'host': 'http://localhost:5000', // Adress of the server hosting strapr
  				'headTemplateSrc': './sample/layout.html', // Src of the template containing your <head>
  				'headTemplateDest': './app/html/layout.html', // Dest of the template containing you <head>
  				'stylesheetDest': './app/css', // Dest of the stylesheet containg styles for used components
  				'stylesheetIncludeUrl': '/css/stylesheet.css', // Url to stylesheet dest for include in your html
  				'javascriptDest': './app/js', // Dest of the javascript containg scripts for used components
  				'javascriptIncludeUrl': '/js/javascript.js' // Url to javascript dest for include in your html
	}))
	.pipe(gulp.dest('app/html'));

strapr(attrs)

host

Type: String
Default: http://localhost:5000

The address of the server running strapr

headTemplateSrc

Type: String
Default: ./sample/layout.html

path to folder containg your layout template.
used to inject stylesheet link and script src.

headTemplateDest

Type: String
Default: ./public/templates/layout.html

Path to folder where finished layout template should be written

stylesheetDest

Type: String
Default: ./sample/app/css

Path to folder where finished stylesheet should be written

stylesheetIncludeUrl

Type: String
Default: /css/stylesheet.css

Url to use in stylesheet include

javascriptDest

Type: String
Default: ./sample/app/js

Path to folder where finished javascript should be written

javascriptIncludeUrl

Type: String
Default: /js/javascript.js

Url to use in script src

License

MIT License

Current Tags

  • 0.0.41                                ...           latest (6 years ago)

5 Versions

  • 0.0.41                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |