gulp-jsx2example
convert jsx file to html (react demo)
Last updated 9 years ago by yiminghe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install gulp-jsx2example 
SYNC missed versions from official npm registry.

gulp-jsx2example

npm version npm download

Compile JSX file to HTML (react demo)

Usage

return gulp
  .src(sourceFiles)
  .pipe(jsx2example(options));

Options

{
  readme: 'README.md',      // readme file name, content will be render to index.html
  package: 'package.json',  // package file name, access repository information 
  cwd: process.cwd()
}

Example

You can reference this repository gulpfile.js

The examples floder published to http://noyobo.com/gulp-jsx2example/

var jsx2example = require('gulp-jsx2example')

gulp.task('examples', ['clean:site'], function(){
  return gulp
    .src(['./examples/*.*'])
    .pipe(jsx2example()) // jsx2example(options)
    .pipe(gulp.dest('site/examples/'))
})

var webpack = require('gulp-webpack')
gulp.task('webpack', ['clean:build'], function() {
  return gulp
    .src(['./examples/*.*'])
    .pipe(webpack())
    .pipe(gulp.dest('site/examples/'))
./
├── README.md
└── examples
    ├── jsfile.js
    └── jsxfile.js

after

./
├── README.md
├── site
│   ├── examples
│   │   ├── common.js
│   │   ├── common.js.map
│   │   ├── jsfile.html
│   │   ├── jsfile.js
│   │   ├── jsfile.js.map
│   │   ├── jsxfile.html
│   │   ├── jsxfile.js
│   │   └── jsxfile.js.map
│   └── index.html
└── examples
    ├── jsfile.js
    └── jsxfile.js

Publish

gh-pages -d site

https://www.npmjs.com/package/gh-pages

Current Tags

  • 2.0.0-2                                ...           beta (8 years ago)
  • 1.2.4                                ...           latest (7 years ago)

26 Versions

  • 1.2.4                                ...           7 years ago
  • 2.0.0                                ...           8 years ago
  • 2.0.1-0                                ...           8 years ago
  • 1.2.3                                ...           8 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 2.0.0-2                                ...           8 years ago
  • 2.0.0-1                                ...           8 years ago
  • 2.0.0-0                                ...           8 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.13                                ...           9 years ago
  • 1.0.12                                ...           9 years ago
  • 1.0.11                                ...           9 years ago
  • 1.0.10                                ...           9 years ago
  • 1.0.9                                ...           9 years ago
  • 1.0.8                                ...           9 years ago
  • 1.0.7                                ...           9 years ago
  • 1.0.6                                ...           9 years ago
  • 1.0.5                                ...           9 years ago
  • 1.0.4                                ...           9 years ago
  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE