mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
add examples instructions to readme
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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/', '/');
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user