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/', '/'); }))