From 91ac22c1c7c1864b28622b19d53755a6330d5d9b Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 23 Mar 2015 09:20:43 -0600 Subject: [PATCH] add examples instructions to readme --- README.md | 7 ++++--- gulpfile.js | 6 +----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b26b3a9b0e..aee3b67989 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,11 @@ - `npm install -g jspm` - `jspm install` +- `gulp examples` - `python -m SimpleHTTPServer .` -- `open http://localhost:8000/playground/basic-example/` -- Follow the structure found in playground/basic-example to - easily create more examples. +- `open http://localhost:9000/dist/examples/aside/basic/index.html` +- Follow the structure found in src/components/aside/examples/basic + to create more examples. #### Problems already diff --git a/gulpfile.js b/gulpfile.js index 4717302f55..75ff466a82 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -137,14 +137,10 @@ gulp.task('angular2', function () { }); gulp.task('examples', function() { - var mainFileRegex = /(main|index).html$/; return gulp.src('src/components/**/examples/**/*') - .pipe(gulpif(mainFileRegex, wrap({ + .pipe(gulpif(/index.html/, wrap({ src: 'scripts/examples/index.template.html' }))) - .pipe(gulpif(mainFileRegex, rename({ - basename: 'index.html' - }))) .pipe(rename(function(file) { file.dirname = file.dirname.replace('/examples/', '/'); }))