From 7c45019a2c133ce165d9186d02de04a7ae7ac97f Mon Sep 17 00:00:00 2001 From: Jim Cummins Date: Wed, 17 Sep 2014 13:28:38 -0500 Subject: [PATCH] (fix): devs should create dist symlink for demos When running gulp demos, the demos look for files like /dist/ionic-demo/nightly/ionic/css/ionic.min.css The current instructions direct devs to start their python server at /dist/ionic-demo/. This commit instructs devs to create a symlink to the parent directory so that the current build of ionic can be used in the demos. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c536cbb2f2..0f3825ae6d5 100644 --- a/README.md +++ b/README.md @@ -113,10 +113,12 @@ For most cases, you'll need AngularJS as well. This is bundled in `js/angular/` * The demo site is generated into `dist/ionic-demo`. To test the demos, follow these steps: 1. Run `gulp demos [--demo-version=(versionName|nightly)]` - 2. Start an http server from `dist/ionic-demo`: + 2. Create a symlink to dist so that the demos can use your current dist folder: + - `cd dist/ionic-demo && ln -s ../ dist` + 3. Start an http server from `dist/ionic-demo`: - `cd dist/ionic-demo && python -m SimpleHTTPServer` - 3. Navigate to `http://localhost:8000/{versionName|nightly}` and use the demos - 4. Run `gulp demos` again whenever you change the demos + 4. Navigate to `http://localhost:8000/{versionName|nightly}` and use the demos + 5. Run `gulp demos` again whenever you change the demos ### Commit Conventions