diff --git a/.scss-lint.yml b/.scss-lint.yml
index a489e94c55..da0b91e803 100644
--- a/.scss-lint.yml
+++ b/.scss-lint.yml
@@ -3,11 +3,11 @@
# See config at https://github.com/brigade/scss-lint/blob/master/config/default.yml
exclude:
- - 'ionic/components/slides/**'
- - 'ionic/components/show-hide-when/**'
- - 'ionic/components.*.scss'
- - 'ionic/util/*.scss'
- - 'ionic/platform/cordova.*.scss'
+ - 'src/components/slides/**'
+ - 'src/components/show-hide-when/**'
+ - 'src/components.*.scss'
+ - 'src/util/*.scss'
+ - 'src/platform/cordova.*.scss'
linters:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5d2462125e..78b69a83a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,229 @@
+
+# [2.0.0-beta.7](https://github.com/driftyco/ionic/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2016-05-19)
+
+
+### Features
+
+* **datetime:** add ion-datetime ([1e331c9](https://github.com/driftyco/ionic/commit/1e331c9))
+* **input:** added functionality for clear input option on ion-input ([d8e2849](https://github.com/driftyco/ionic/commit/d8e2849))
+* **modal:** add inset modal feature ([a658524](https://github.com/driftyco/ionic/commit/a658524)), closes [#5423](https://github.com/driftyco/ionic/issues/5423)
+* **modal:** start of inset modals ([a1a594d](https://github.com/driftyco/ionic/commit/a1a594d))
+* **picker:** add ios/md/wp picker styles ([aa9a667](https://github.com/driftyco/ionic/commit/aa9a667))
+* **picker:** init picker ([d5068f8](https://github.com/driftyco/ionic/commit/d5068f8))
+* **platform:** add a readySource as ready resolved value ([f68ac8a](https://github.com/driftyco/ionic/commit/f68ac8a))
+* **platform:** cordova pause/resume events ([532096b](https://github.com/driftyco/ionic/commit/532096b))
+
+
+### Bug Fixes
+
+* **app:** add status bar padding to navbar when a tab subpage ([62b97ce](https://github.com/driftyco/ionic/commit/62b97ce)), closes [#6368](https://github.com/driftyco/ionic/issues/6368)
+* **app:** fix status bar padding for inset modals ([4d27680](https://github.com/driftyco/ionic/commit/4d27680))
+* **build:** fix e2e, demos, and karma tests to use new angular module setup. ([4c19d15](https://github.com/driftyco/ionic/commit/4c19d15))
+* **button:** add the solid class to bar buttons ([658b29b](https://github.com/driftyco/ionic/commit/658b29b))
+* **button:** add transparent background for clear/outline windows buttons ([da5c065](https://github.com/driftyco/ionic/commit/da5c065))
+* **button:** exclude solid from getting added to the button in the class ([4252448](https://github.com/driftyco/ionic/commit/4252448))
+* **button:** remove unnecessary ion-button-effect elements ([369d78b](https://github.com/driftyco/ionic/commit/369d78b))
+* **checkbox:** add ability to align checkboxes to the right ([e075ccd](https://github.com/driftyco/ionic/commit/e075ccd)), closes [#5925](https://github.com/driftyco/ionic/issues/5925)
+* **datetime:** fix property dayNames (it was using dayShort) ([0bd736d](https://github.com/driftyco/ionic/commit/0bd736d))
+* **datetime:** improve parseTemplate ([55ec80a](https://github.com/driftyco/ionic/commit/55ec80a))
+* **grid:** add ion-grid element which wraps the rows/cols and adds padding ([a0c0228](https://github.com/driftyco/ionic/commit/a0c0228))
+* **input:** clear text input ([bde103d](https://github.com/driftyco/ionic/commit/bde103d))
+* **input:** remove old clearInput code and clean up UI, added onChange calls ([71cd297](https://github.com/driftyco/ionic/commit/71cd297))
+* **loading:** include cssClass in the Loading options ([4c8ee95](https://github.com/driftyco/ionic/commit/4c8ee95)), closes [#6365](https://github.com/driftyco/ionic/issues/6365)
+* **nav:** transition toolbars on iOS ([daa4ccc](https://github.com/driftyco/ionic/commit/daa4ccc)), closes [#5692](https://github.com/driftyco/ionic/issues/5692)
+* **picker:** number of dom children != number of options (#6551) ([28cf16a](https://github.com/driftyco/ionic/commit/28cf16a))
+* **radio:** add styling for radio when item-left/item-right is added ([4c5dd0b](https://github.com/driftyco/ionic/commit/4c5dd0b))
+* **raf:** test for undefined raf ([1c16008](https://github.com/driftyco/ionic/commit/1c16008))
+* **segment:** add disabled property to segment and segment button ([4fca31e](https://github.com/driftyco/ionic/commit/4fca31e))
+* **select:** add min height to select text for windows since it shows border ([e9c1442](https://github.com/driftyco/ionic/commit/e9c1442))
+* **show-hide-when:** add !important to display as this should always take precedence ([617b7ac](https://github.com/driftyco/ionic/commit/617b7ac)), closes [#6270](https://github.com/driftyco/ionic/issues/6270)
+* **slides:** make slide method parameters optional ([f355087](https://github.com/driftyco/ionic/commit/f355087))
+* **slides:** set class using renderer instead of host ([132d8e9](https://github.com/driftyco/ionic/commit/132d8e9)), closes [#6275](https://github.com/driftyco/ionic/issues/6275)
+* **tabs:** move border to top for windows positioned bottom tabs ([af2085e](https://github.com/driftyco/ionic/commit/af2085e)), closes [#6526](https://github.com/driftyco/ionic/issues/6526)
+* **tabs:** remove min-width from tab so 5 tabs will fit ([b4647cd](https://github.com/driftyco/ionic/commit/b4647cd)), closes [#6056](https://github.com/driftyco/ionic/issues/6056)
+* **toast:** add toast back to the components export ([d7d4742](https://github.com/driftyco/ionic/commit/d7d4742))
+* **toggle:** add styling for toggle when placed left ([ab82d53](https://github.com/driftyco/ionic/commit/ab82d53))
+* **toolbar:** add the mode to the inverse function for a toolbar ([3ca3027](https://github.com/driftyco/ionic/commit/3ca3027)), closes [#6364](https://github.com/driftyco/ionic/issues/6364)
+* **toolbar:** md mode use the color contrast for toolbar button/title ([9f54f16](https://github.com/driftyco/ionic/commit/9f54f16))
+* **toolbar:** remove color change from outline buttons in toolbar ([6759074](https://github.com/driftyco/ionic/commit/6759074))
+* **toolbar:** set the text color of the toolbar based on the contrast of the background ([74afc18](https://github.com/driftyco/ionic/commit/74afc18))
+* **toolbar:** wp get title/button color from the contrast of toolbar background ([62bd13b](https://github.com/driftyco/ionic/commit/62bd13b))
+* **virtual-scroll:** fixes from rc1 breaking changes ([158f717](https://github.com/driftyco/ionic/commit/158f717))
+
+
+### BREAKING CHANGES
+
+#### Angular Update to 2.0.0-rc.1
+
+Angular has been updated to 2.0.0-rc.1, follow these steps to update Angular.
+
+1. Edit your `package.json` and **remove** the `angular2` entry:
+
+ ```
+ "angular2": "2.0.0-beta.15"
+ ```
+
+2. Then, run the following command from a terminal to update Ionic and Angular, or take a look at the starter's [package.json](https://github.com/driftyco/ionic2-app-base/commit/4861c099e2cc509eeb0eff4548554b34116c22a5) changes and update each version:
+
+ ```
+ npm install --save ionic-angular@2.0.0-beta.7 @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic @angular/router @angular/http rxjs@5.0.0-beta.6 zone.js@0.6.12 reflect-metadata
+ ```
+
+3. Run the following command from a terminal to update the gulp task for `ionic-gulp-scripts-copy`:
+
+ ```
+ npm install --save-dev ionic-gulp-scripts-copy@2.0.0
+ ```
+
+4. Then, change any imports in your application from `angular2` to `@angular`. For example, the following:
+
+ ```javascript
+ import {ViewChild} from 'angular2/core';
+ import {Http} from 'angular2/http';
+ ```
+
+ becomes
+
+ ```javascript
+ import {ViewChild} from '@angular/core';
+ import {Http} from '@angular/http';
+ ```
+
+5. Remove the import for `angular2-polyfills` in `index.html`:
+
+ ```html
+
+ ```
+
+ and replace it with the following scripts:
+
+ ```html
+
+
+ ```
+
+6. Replace all template variables in `ngFor` with `let`. For example:
+
+ ```
+ *ngFor="#session of group.sessions"
+ ```
+
+ becomes
+
+ ```
+ *ngFor="let session of group.sessions"
+ ```
+
+7. Replace all template variables in `virtualScroll`. For example:
+
+ ```
+ *virtualItem="#item"
+ ```
+
+ becomes
+
+ ```
+ *virtualItem="let item"
+ ```
+
+8. View the [Angular Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) for more in depth changes.
+
+
+#### IonicApp ([df32836](https://github.com/driftyco/ionic/commit/df32836)) references [#6199](https://github.com/driftyco/ionic/issues/6199)
+
+The `getComponent` method of `IonicApp` has been removed. Please use Angular's [ViewChild](https://angular.io/docs/ts/latest/api/core/ViewChild-var.html) instead.
+
+An example (in TypeScript) of getting the `Nav` ViewChild:
+
+```html
+
+```
+
+```javascript
+import {ViewChild} from '@angular/core';
+import {Nav} from 'ionic-angular';
+
+@App({
+ templateUrl: 'build/app.html'
+})
+class myApp {
+ @ViewChild(Nav) nav: Nav;
+
+ ...
+}
+```
+
+and the same example (in JavaScript):
+
+```javascript
+import {ViewChild} from '@angular/core';
+
+@App({
+ templateUrl: 'build/app.html',
+ queries: {
+ nav: new ViewChild('content')
+ }
+})
+class myApp {
+
+}
+```
+
+Please see the [Ionic Conference App](https://github.com/driftyco/ionic-conference-app) for more usage examples.
+
+
+#### Router
+
+The Angular router is currently under heavy development and refactoring. As a result of this, Angular’s router is currently disabled within Ionic. If your app requires use of the router we recommend waiting until a future release of Ionic when Angular has completed work on the new router. However, this does not affect Ionic’s navigation system and it continues to work with the same API from previous versions.
+
+
+#### Sass Changes
+
+##### Toolbar [#6364](https://github.com/driftyco/ionic/issues/6364)
+
+**iOS Mode**
+
+- `$toolbar-ios-button-color` now has a
+default value of `color-contrast($colors-ios, $toolbar-ios-background,
+ios)` which will evaluate to the primary color for light background
+toolbars and white for dark background toolbars.
+- `$bar-button-ios-color` has been renamed to `$toolbar-ios-button-color`
+- `$bar-button-ios-border-radius` has been renamed to
+`$toolbar-ios-button-border-radius`
+
+- added variables for the toolbar ios title for easier styling:
+
+ ```
+ $toolbar-ios-title-font-weight
+ $toolbar-ios-title-text-align
+ $toolbar-ios-title-text-color
+ ```
+
+**Windows Mode**
+
+- `$bar-button-wp-color` was renamed to `$toolbar-wp-button-color`
+- `$bar-button-wp-border-radius` was renamed to
+`$toolbar-wp-button-border-radius`
+- Added `$toolbar-wp-title-text-color` for better control of the title
+color
+- Removed `$toolbar-wp-button-color` from the default themes
+
+**Material Design Mode**
+
+- `$toolbar-md-button-color` no longer gets passed to the function that
+sets the contrast color for toolbar buttons, but it can still be used
+to set the default button color.
+- `$bar-button-md-color` was renamed to `$toolbar-md-button-color`
+- `$bar-button-md-border-radius` was renamed to
+`$toolbar-md-button-border-radius`
+
+##### Toggle, Checkbox, Radio ([4c5dd0b](https://github.com/driftyco/ionic/commit/4c5dd0b)), ([e075ccd](https://github.com/driftyco/ionic/commit/e075ccd)), ([ab82d53](https://github.com/driftyco/ionic/commit/ab82d53)) references [#5925](https://github.com/driftyco/ionic/issues/5925)
+
+Renamed Sass variables in toggle, checkbox, and
+radio. Changed the word `media` in `component-mode-media-padding` (for example)
+to `item-left`.
+
+
# [2.0.0-beta.6](https://github.com/driftyco/ionic/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2016-04-21)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 323fecfe18..a9eb87a7fa 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -50,7 +50,7 @@ Looking for an issue to fix? Make sure to look through our issues with the [help
- Install the linter: `gem install scss_lint`
- Make sure to run the linter at the root of the repository.
- To check all component Sass files: `scss-lint ionic/**/**/*.scss`
- - To check a specific Sass file: `scss-lint ionic/components/toolbar/toolbar.ios.scss`
+ - To check a specific Sass file: `scss-lint src/components/toolbar/toolbar.ios.scss`
#### Viewing Changes
@@ -87,7 +87,7 @@ Looking for an issue to fix? Make sure to look through our issues with the [help
#### Adding Demos
1. Create or modify the demo in the `demos/` folder.
-2. If it is new, link to the demo in the component's TypeScript (`*.ts`) file (under `ionic/components`) by adding a link to it in the documentation using `@demo`, for example:
+2. If it is new, link to the demo in the component's TypeScript (`*.ts`) file (under `src/components`) by adding a link to it in the documentation using `@demo`, for example:
```
/**
diff --git a/README.md b/README.md
index 3bc3426ac3..227488473a 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Ionic 2 is the next generation of [Ionic](http://ionicframework.com/), the open-
Ionic 2 is based on the new [2.x version of AngularJS](https://angular.io/), and comes with many significant performance, usability, and feature improvements.
-See [Adam Bradley](http://twitter.com/adamdbradley)'s [Building apps with Ionic 2](http://adamdbradley.github.io/building-with-ionic2) slides for a quick overview of Ionic 2.
+See the [Building apps with Ionic 2](http://adamdbradley.github.io/building-with-ionic2) slides for a quick overview of Ionic 2.
### Try Ionic 2
diff --git a/circle.yml b/circle.yml
index 059964c447..0cf60d8d08 100644
--- a/circle.yml
+++ b/circle.yml
@@ -3,6 +3,8 @@ general:
ignore:
- ins_n_outs
dependencies:
+ pre:
+ - ./scripts/docs/prepare.sh
cache_directories:
- "~/ionic-site" # cache ionic-site
machine:
@@ -12,7 +14,7 @@ test:
override:
- echo "Automatically marking tests as passing for now"
deployment:
- tasks:
- branch: "2.0"
- commands:
- - ./scripts/ci/deploy.sh
+ tasks:
+ branch: "2.0"
+ commands:
+ - ./scripts/ci/deploy.sh
diff --git a/demos/app.ios.scss b/demos/app.ios.scss
index e4cd894dd5..52acaea496 100644
--- a/demos/app.ios.scss
+++ b/demos/app.ios.scss
@@ -1 +1 @@
-@import "../ionic/ionic.ios";
+@import "../src/ionic.ios";
diff --git a/demos/app.md.scss b/demos/app.md.scss
index 81059855da..28e52b5d12 100644
--- a/demos/app.md.scss
+++ b/demos/app.md.scss
@@ -1 +1 @@
-@import "../ionic/ionic.md";
+@import "../src/ionic.md";
diff --git a/demos/app.wp.scss b/demos/app.wp.scss
index 0a2266b457..be0e452926 100644
--- a/demos/app.wp.scss
+++ b/demos/app.wp.scss
@@ -1 +1 @@
-@import "../ionic/ionic.wp";
+@import "../src/ionic.wp";
diff --git a/demos/config/main.html b/demos/config/main.html
index bb19934caf..aa235d1e66 100644
--- a/demos/config/main.html
+++ b/demos/config/main.html
@@ -43,9 +43,9 @@
@App({
config: {
- backButtonIcon: {{initialConfig.backButtonIcon}}
- iconMode: {{initialConfig.iconMode}}
- tabbarPlacement: {{initialConfig.tabbarPlacement}}
+ backButtonIcon: "{{initialConfig.backButtonIcon}}"
+ iconMode: "{{initialConfig.iconMode}}"
+ tabbarPlacement: "{{initialConfig.tabbarPlacement}}"
}
})
diff --git a/demos/datetime/index.ts b/demos/datetime/index.ts
new file mode 100644
index 0000000000..b207561ddd
--- /dev/null
+++ b/demos/datetime/index.ts
@@ -0,0 +1,71 @@
+import {App, Page} from 'ionic-angular';
+
+
+@Page({
+ templateUrl: 'main.html'
+})
+class MainPage {
+ wwwReleased = '1991';
+ netscapeReleased = '1994-12-15T13:47:20.789';
+ operaReleased = '1995-04-15';
+ webkitReleased = '1998-11-04T11:06Z';
+ firefoxReleased = '2002-09-23T15:03:46.789';
+ chromeReleased = '2008-09-02';
+
+ tokyoTime: string;
+ parisTime: string;
+ madisonTime: string;
+ alertTime = '10:15';
+
+ operaShortDay = [
+ 's\u00f8n',
+ 'man',
+ 'tir',
+ 'ons',
+ 'tor',
+ 'fre',
+ 'l\u00f8r'
+ ];
+
+ constructor() {
+ this.tokyoTime = this.calculateTime('+9');
+ this.parisTime = this.calculateTime('+1');
+ this.madisonTime = this.calculateTime('-6');
+
+ // If it is Daylight Savings Time
+ if (this.dst(new Date())) {
+ this.parisTime = this.calculateTime('+2');
+ this.madisonTime = this.calculateTime('-5');
+ }
+ }
+
+ calculateTime(offset) {
+ // create Date object for current location
+ let d = new Date();
+
+ // create new Date object for different city
+ // using supplied offset
+ let nd = new Date(d.getTime() + (3600000 * offset));
+
+ return nd.toISOString();
+ }
+
+ // Determine if the client uses DST
+ stdTimezoneOffset(today) {
+ let jan = new Date(today.getFullYear(), 0, 1);
+ let jul = new Date(today.getFullYear(), 6, 1);
+ return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());
+ }
+
+ dst(today) {
+ return today.getTimezoneOffset() < this.stdTimezoneOffset(today);
+ }
+}
+
+
+@App({
+ template: ' '
+})
+class ApiDemoApp {
+ root = MainPage;
+}
diff --git a/demos/datetime/main.html b/demos/datetime/main.html
new file mode 100644
index 0000000000..8c23fca162
--- /dev/null
+++ b/demos/datetime/main.html
@@ -0,0 +1,69 @@
+
+ DateTime
+
+
+
+
+ Web Release Dates
+
+
+ World Wide Web
+
+
+
+
+ Netscape
+
+
+
+
+ Opera
+
+
+
+
+ Webkit
+
+
+
+
+ Firefox
+
+
+
+
+ Chrome
+
+
+
+
+
+ World Times
+
+
+ Tokyo
+
+
+
+
+ Paris
+
+
+
+
+ Madison
+
+
+
+
+
+
+ Set Alarm
+
+
+ Alert
+
+
+
+
+
diff --git a/demos/events/main.html b/demos/events/main.html
index 0a7197ad94..cc5f0d5b71 100644
--- a/demos/events/main.html
+++ b/demos/events/main.html
@@ -10,7 +10,7 @@
Welcome, Administrator!
-
+
{{p.title}}
diff --git a/demos/infinite-scroll/index.ts b/demos/infinite-scroll/index.ts
index bdf2f02dae..5793d6f73e 100644
--- a/demos/infinite-scroll/index.ts
+++ b/demos/infinite-scroll/index.ts
@@ -1,5 +1,5 @@
import {App, InfiniteScroll} from 'ionic-angular';
-import {Injectable} from 'angular2/core';
+import {Injectable} from '@angular/core';
/**
* Mock Data Access Object
diff --git a/demos/infinite-scroll/main.html b/demos/infinite-scroll/main.html
index 2e4dea0ff3..a901e2adde 100644
--- a/demos/infinite-scroll/main.html
+++ b/demos/infinite-scroll/main.html
@@ -5,7 +5,7 @@
-
+
{{ item }}
diff --git a/demos/local-storage/index.ts b/demos/local-storage/index.ts
index b767c221a1..f8a2ee4ba8 100644
--- a/demos/local-storage/index.ts
+++ b/demos/local-storage/index.ts
@@ -1,6 +1,6 @@
import {App, Page, IonicApp, Config, Platform} from 'ionic-angular';
import {Storage, LocalStorage} from 'ionic-angular';
-import {Pipe, PipeTransform, Injectable} from 'angular2/core'
+import {Pipe, PipeTransform, Injectable} from '@angular/core'
@Pipe({name: 'cleanLocalData'})
diff --git a/demos/local-storage/main.html b/demos/local-storage/main.html
index 4645833ad5..f06f6fff2f 100644
--- a/demos/local-storage/main.html
+++ b/demos/local-storage/main.html
@@ -11,7 +11,7 @@
Key
-
+
{{ key }}
@@ -20,7 +20,7 @@
Value
-
+
{{ value }}
@@ -42,7 +42,7 @@
Key
Select a Key
-
+
{{ key }}
diff --git a/demos/output.ios.scss b/demos/output.ios.scss
index f3018826e5..42a4990bf0 100644
--- a/demos/output.ios.scss
+++ b/demos/output.ios.scss
@@ -33,4 +33,4 @@ $colors: (
bright: #FFC125
);
-@import "../ionic/ionic.ios";
+@import "../src/ionic.ios";
diff --git a/demos/output.md.scss b/demos/output.md.scss
index 4c0d7bd119..58b5fdff3c 100644
--- a/demos/output.md.scss
+++ b/demos/output.md.scss
@@ -33,4 +33,4 @@ $colors: (
bright: #FFC125
);
-@import "../ionic/ionic.md";
+@import "../src/ionic.md";
diff --git a/demos/radio/index.ts b/demos/radio/index.ts
index 64f6d23af8..149e49838a 100644
--- a/demos/radio/index.ts
+++ b/demos/radio/index.ts
@@ -3,4 +3,7 @@ import {App} from 'ionic-angular';
@App({
templateUrl: 'main.html'
})
-class ApiDemoApp {}
+class ApiDemoApp {
+ isDisabled = true;
+
+}
diff --git a/demos/radio/main.html b/demos/radio/main.html
index f5e7ef1e75..86b432503f 100644
--- a/demos/radio/main.html
+++ b/demos/radio/main.html
@@ -34,6 +34,11 @@
Auto-Lock
+
+ Enable "Never"
+
+
+
1 Minute
@@ -41,7 +46,7 @@
2 Minutes
-
+
@@ -51,7 +56,7 @@
Never
-
+
diff --git a/demos/refresher/index.ts b/demos/refresher/index.ts
index b4393df432..2b0bba2a41 100644
--- a/demos/refresher/index.ts
+++ b/demos/refresher/index.ts
@@ -1,5 +1,5 @@
import {App, Page, Refresher} from 'ionic-angular';
-import {Injectable} from 'angular2/core';
+import {Injectable} from '@angular/core';
/**
* Mock Data Access Object
diff --git a/demos/refresher/main.html b/demos/refresher/main.html
index 458575f6da..e9d6be46c3 100644
--- a/demos/refresher/main.html
+++ b/demos/refresher/main.html
@@ -12,7 +12,7 @@
-
+
{{ item }}
diff --git a/demos/select/main.html b/demos/select/main.html
index 15f8881355..8003bc4389 100644
--- a/demos/select/main.html
+++ b/demos/select/main.html
@@ -82,7 +82,7 @@
Pets
- {{o.text}}
+ {{o.text}}
diff --git a/demos/slides/main.html b/demos/slides/main.html
index 5b0274cc9e..b4dd4f6a8f 100644
--- a/demos/slides/main.html
+++ b/demos/slides/main.html
@@ -1,5 +1,5 @@
-
+
diff --git a/gulpfile.js b/gulpfile.js
index 8e33f96251..a8ffe254f9 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -86,9 +86,9 @@ gulp.task('watch', ['build'], function() {
function watchTask(task){
watch([
- 'ionic/**/*.ts',
- '!ionic/components/*/test/**/*',
- '!ionic/util/test/*'
+ 'src/**/*.ts',
+ '!src/components/*/test/**/*',
+ '!src/util/test/*'
],
function(file) {
if (file.event === "unlink") {
@@ -99,7 +99,7 @@ function watchTask(task){
}
);
- watch('ionic/**/*.scss', function() {
+ watch('src/**/*.scss', function() {
gulp.start('sass');
});
@@ -201,7 +201,7 @@ gulp.task('bundle.system', function(){
var tsResult = tsCompile(getTscOptions('es6'), 'system')
.pipe(babel(babelOptions));
- var swiper = gulp.src('ionic/components/slides/swiper-widget.system.js');
+ var swiper = gulp.src('src/components/slides/swiper-widget.system.js');
return merge([tsResult, swiper])
.pipe(remember('system'))
@@ -246,13 +246,13 @@ gulp.task('transpile', function(){
function tsCompile(options, cacheName){
return gulp.src([
'typings/main.d.ts',
- 'ionic/**/*.ts',
- '!ionic/**/*.d.ts',
- '!ionic/components/*/test/**/*',
- '!ionic/util/test/*',
- '!ionic/config/test/*',
- '!ionic/platform/test/*',
- '!ionic/**/*.spec.ts'
+ 'src/**/*.ts',
+ '!src/**/*.d.ts',
+ '!src/components/*/test/**/*',
+ '!src/util/test/*',
+ '!src/config/test/*',
+ '!src/platform/test/*',
+ '!src/**/*.spec.ts'
])
.pipe(cache(cacheName, { optimizeMemory: true }))
.pipe(tsc(options, undefined, tscReporter));
@@ -267,10 +267,10 @@ gulp.task('sass', function() {
var minifyCss = require('gulp-minify-css');
gulp.src([
- 'ionic/ionic.ios.scss',
- 'ionic/ionic.md.scss',
- 'ionic/ionic.wp.scss',
- 'ionic/ionic.scss'
+ 'src/ionic.ios.scss',
+ 'src/ionic.md.scss',
+ 'src/ionic.wp.scss',
+ 'src/ionic.scss'
])
.pipe(sass({
includePaths: [__dirname + '/node_modules/ionicons/dist/scss/'],
@@ -312,7 +312,7 @@ gulp.task('sass.themes', function() {
*/
gulp.task('fonts', function() {
gulp.src([
- 'ionic/fonts/*.+(ttf|woff|woff2)',
+ 'src/fonts/*.+(ttf|woff|woff2)',
'node_modules/ionicons/dist/fonts/*.+(ttf|woff|woff2)'
])
.pipe(gulp.dest('dist/fonts'));
@@ -323,9 +323,9 @@ gulp.task('fonts', function() {
*/
gulp.task('copy.scss', function() {
return gulp.src([
- 'ionic/**/*.scss',
- '!ionic/components/*/test/**/*',
- '!ionic/util/test/*'
+ 'src/**/*.scss',
+ '!src/components/*/test/**/*',
+ '!src/util/test/*'
])
.pipe(gulp.dest('dist'));
});
@@ -337,9 +337,9 @@ gulp.task('lint.scss', function() {
var scsslint = require('gulp-scss-lint');
return gulp.src([
- 'ionic/**/*.scss',
- '!ionic/components/*/test/**/*',
- '!ionic/util/test/*'
+ 'src/**/*.scss',
+ '!src/components/*/test/**/*',
+ '!src/util/test/*'
])
.pipe(scsslint())
.pipe(scsslint.failReporter());
@@ -355,18 +355,16 @@ gulp.task('copy.libs', function() {
'node_modules/systemjs/node_modules/es6-module-loader/dist/es6-module-loader.src.js', //npm2
'node_modules/es6-module-loader/dist/es6-module-loader.src.js', //npm3
'node_modules/systemjs/dist/system.src.js',
- 'node_modules/angular2/bundles/angular2-polyfills.js',
- 'node_modules/angular2/bundles/angular2.dev.js',
- 'node_modules/angular2/bundles/router.dev.js',
- 'node_modules/angular2/bundles/http.dev.js',
- 'node_modules/rxjs/bundles/Rx.js'
+ 'node_modules/rxjs/bundles/Rx.js',
+ 'node_modules/zone.js/dist/zone.js',
+ 'node_modules/reflect-metadata/Reflect.js'
])
.pipe(gulp.dest('dist/js'));
// for swiper-widget
var libs = gulp.src([
- 'ionic/**/*.js',
- 'ionic/**/*.d.ts'
+ 'src/**/*.js',
+ 'src/**/*.d.ts'
])
.pipe(gulp.dest('dist'));
@@ -385,7 +383,7 @@ gulp.task('copy.libs', function() {
gulp.task('watch.e2e', ['e2e'], function() {
watchTask('bundle.system');
- watch('ionic/components/*/test/**/*', function(file) {
+ watch('src/components/*/test/**/*', function(file) {
gulp.start('e2e.build');
});
});
@@ -421,8 +419,8 @@ gulp.task('e2e.build', function() {
// Get each test folder with gulp.src
var tsResult = gulp.src([
- 'ionic/components/*/test/*/**/*.ts',
- '!ionic/components/*/test/*/**/*.spec.ts'
+ 'src/components/*/test/*/**/*.ts',
+ '!src/components/*/test/*/**/*.spec.ts'
])
.pipe(cache('e2e.ts'))
.pipe(tsc(getTscOptions(), undefined, tscReporter))
@@ -433,8 +431,8 @@ gulp.task('e2e.build', function() {
.pipe(gulpif(/e2e.js$/, createPlatformTests()))
var testFiles = gulp.src([
- 'ionic/components/*/test/*/**/*',
- '!ionic/components/*/test/*/**/*.ts'
+ 'src/components/*/test/*/**/*',
+ '!src/components/*/test/*/**/*.ts'
])
.pipe(cache('e2e.files'))
@@ -463,7 +461,7 @@ gulp.task('e2e.build', function() {
function createPlatformTests(file) {
return through2.obj(function(file, enc, next) {
var self = this;
- var relativePath = path.dirname(file.path.replace(/^.*?ionic(\/|\\)components(\/|\\)/, ''));
+ var relativePath = path.dirname(file.path.replace(/^.*?src(\/|\\)components(\/|\\)/, ''));
relativePath = relativePath.replace('/test/', '/');
var contents = file.contents.toString();
platforms.forEach(function(platform) {
@@ -488,7 +486,7 @@ gulp.task('e2e.build', function() {
* Builds Ionic unit tests to dist/tests.
*/
gulp.task('tests', function() {
- return gulp.src('ionic/**/test/**/*.spec.ts')
+ return gulp.src('src/**/test/**/*.spec.ts')
.pipe(cache('tests'))
.pipe(tsc(getTscOptions(), undefined, tscReporter))
.pipe(rename(function(file) {
@@ -499,7 +497,7 @@ gulp.task('tests', function() {
});
gulp.task('watch.tests', ['tests'], function(){
- watch('ionic/**/test/**/*.spec.ts', function(){
+ watch('src/**/test/**/*.spec.ts', function(){
gulp.start('tests');
});
});
@@ -814,7 +812,7 @@ gulp.task('package', function(done){
var templateVars = {};
var packageJSON = require('./package.json');
templateVars.ionicVersion = packageJSON.version;
- templateVars.angularVersion = packageJSON.dependencies.angular2;
+ templateVars.angularVersion = packageJSON.dependencies['@angular/core'];
var packageTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
fs.writeFileSync(distDir + '/package.json', packageTemplate(templateVars));
done();
@@ -985,8 +983,8 @@ gulp.task('validate', function(done) {
gulp.task('tslint', function() {
var tslint = require('gulp-tslint');
return gulp.src([
- 'ionic/**/*.ts',
- '!ionic/**/test/**/*',
+ 'src/**/*.ts',
+ '!src/**/test/**/*',
]).pipe(tslint())
.pipe(tslint.report('verbose'));
});
diff --git a/ionic/components/app/test/cordova/e2e.ts b/ionic/components/app/test/cordova/e2e.ts
deleted file mode 100644
index c39673ffd6..0000000000
--- a/ionic/components/app/test/cordova/e2e.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-
-it('should navigate to page 2', function() {
- element(by.css('.e2eCordovaPage2')).click();
-});
-
-it('should open modal', function() {
- element(by.css('.e2eCordovaOpenModal')).click();
-});
diff --git a/ionic/components/button/test/sizes/index.ts b/ionic/components/button/test/sizes/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/button/test/sizes/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/advanced/index.ts b/ionic/components/card/test/advanced/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/advanced/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/basic/index.ts b/ionic/components/card/test/basic/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/basic/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/images/index.ts b/ionic/components/card/test/images/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/images/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/list/index.ts b/ionic/components/card/test/list/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/list/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/map/index.ts b/ionic/components/card/test/map/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/map/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/card/test/social/index.ts b/ionic/components/card/test/social/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/card/test/social/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/grid/test/alignment/index.ts b/ionic/components/grid/test/alignment/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/grid/test/alignment/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/grid/test/basic/index.ts b/ionic/components/grid/test/basic/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/grid/test/basic/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/grid/test/full/index.ts b/ionic/components/grid/test/full/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/grid/test/full/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/input/test/inset-inputs/index.ts b/ionic/components/input/test/inset-inputs/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/input/test/inset-inputs/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/input/test/placeholder-labels/index.ts b/ionic/components/input/test/placeholder-labels/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/input/test/placeholder-labels/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/item/test/dividers/index.ts b/ionic/components/item/test/dividers/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/item/test/dividers/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/item/test/icons/index.ts b/ionic/components/item/test/icons/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/item/test/icons/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/item/test/images/index.ts b/ionic/components/item/test/images/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/item/test/images/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/item/test/media/index.ts b/ionic/components/item/test/media/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/item/test/media/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/item/test/text/index.ts b/ionic/components/item/test/text/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/item/test/text/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/list/test/headers/index.ts b/ionic/components/list/test/headers/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/list/test/headers/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/list/test/inset/index.ts b/ionic/components/list/test/inset/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/list/test/inset/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/list/test/no-lines/index.ts b/ionic/components/list/test/no-lines/index.ts
deleted file mode 100644
index 94309ec640..0000000000
--- a/ionic/components/list/test/no-lines/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import {App} from 'ionic-angular';
-
-
-@App({
- templateUrl: 'main.html'
-})
-class E2EApp {}
diff --git a/ionic/components/modal/modal.ios.scss b/ionic/components/modal/modal.ios.scss
deleted file mode 100644
index 9bf6a6f680..0000000000
--- a/ionic/components/modal/modal.ios.scss
+++ /dev/null
@@ -1,11 +0,0 @@
-@import "../../globals.ios";
-
-// iOS Modals
-// --------------------------------------------------
-
-$modal-ios-background-color: $background-ios-color !default;
-
-
-ion-page.modal {
- background-color: $modal-ios-background-color;
-}
diff --git a/ionic/components/modal/modal.scss b/ionic/components/modal/modal.scss
deleted file mode 100644
index 94d2602903..0000000000
--- a/ionic/components/modal/modal.scss
+++ /dev/null
@@ -1,11 +0,0 @@
-@import "../../globals.core";
-
-// Modals
-// --------------------------------------------------
-
-ion-page.modal {
- z-index: $z-index-overlay;
-
- // hidden by default to prevent flickers, the animation will show it
- transform: translate3d(0, 100%, 0);
-}
diff --git a/ionic/components/nav/nav-router.ts b/ionic/components/nav/nav-router.ts
deleted file mode 100644
index 205ca62d80..0000000000
--- a/ionic/components/nav/nav-router.ts
+++ /dev/null
@@ -1,127 +0,0 @@
-import {Directive, ViewContainerRef, DynamicComponentLoader, Attribute} from 'angular2/core';
-import {
- RouterOutlet,
- Router,
- ComponentInstruction,
- Instruction} from 'angular2/router';
-
-import {Nav} from './nav';
-import {ViewController} from './view-controller';
-
-/**
- * @private
- */
-@Directive({
- selector: 'ion-nav'
-})
-export class NavRouter extends RouterOutlet {
- private _lastUrl: string;
- private _nav: Nav;
- private _parent: Router;
-
- constructor(
- viewContainerRef: ViewContainerRef,
- loader: DynamicComponentLoader,
- parentRouter: Router,
- @Attribute('name') nameAttr: string,
- nav: Nav
- ) {
- if (nav.parent) {
- parentRouter = parentRouter.childRouter(nav);
- }
- super(viewContainerRef, loader, parentRouter, nameAttr);
-
- this._nav = nav;
- this._parent = parentRouter;
-
- // register this router with Ionic's NavController
- // Ionic's NavController will call this NavRouter's "stateChange"
- // method when the NavController has...changed its state
- nav.registerRouter(this);
- }
-
- stateChange(direction: string, viewCtrl: ViewController) {
- // stateChange is called by Ionic's NavController
- // viewCtrl is Ionic's ViewController class, which has the properties "componentType" and "params"
-
- // only do an update if there's an actual view change
- if (!viewCtrl) {
- return;
- }
-
- // get the best PathRecognizer for this view's componentType
- let pathRecognizer = this.getPathRecognizerByComponent(viewCtrl.componentType);
- if (pathRecognizer) {
-
- // generate a componentInstruction from the view's PathRecognizer and params
- let componentInstruction = pathRecognizer.generate(viewCtrl.data);
-
- // create a ResolvedInstruction from the componentInstruction
- let instruction = new ResolvedInstruction(componentInstruction, null, null);
- if (instruction) {
- let url = instruction.toRootUrl();
- if (url === this._lastUrl) return;
-
- this._lastUrl = url;
-
- this._parent.navigateByInstruction(instruction);
-
- console.debug('NavRouter, stateChange, name:', viewCtrl.name, 'id:', viewCtrl.id, 'url:', url);
- }
- }
- }
-
- activate(nextInstruction: ComponentInstruction): Promise {
- var previousInstruction = this['_currentInstruction'];
- this['_currentInstruction'] = nextInstruction;
- var componentType = nextInstruction.componentType;
- var childRouter = this._parent.childRouter(componentType);
-
- // prevent double navigations to the same view
- let instruction = new ResolvedInstruction(nextInstruction, null, null);
- let url: string;
- if (instruction) {
- url = instruction.toRootUrl();
- if (url === this._lastUrl) {
- return Promise.resolve();
- }
- }
-
- console.debug('NavRouter, activate:', componentType.name, 'url:', url);
-
- // tell the NavController which componentType, and it's params, to navigate to
- return this._nav.push(componentType, nextInstruction.params);
- }
-
- reuse(nextInstruction: ComponentInstruction) {
- return Promise.resolve();
- }
-
- getPathRecognizerByComponent(componentType) {
- // given a componentType, figure out the best PathRecognizer to use
- let rules = this._parent.registry['_rules'];
-
- let pathRecognizer = null;
- rules.forEach((rule) => {
- pathRecognizer = rule.rules.find(function(routeRule) {
- return routeRule.handler.componentType === componentType;
- });
- });
-
- return pathRecognizer;
- }
-
-}
-
-// TODO: hacked from
-// https://github.com/angular/angular/blob/6ddfff5cd59aac9099aa6da5118c5598eea7ea11/modules/angular2/src/router/instruction.ts#L207
-class ResolvedInstruction extends Instruction {
- constructor(public component: ComponentInstruction, public child: Instruction,
- public auxInstruction: {[key: string]: Instruction}) {
- super(component, child, auxInstruction);
- }
-
- resolveComponent(): Promise {
- return Promise.resolve(this.component);
- }
-}
diff --git a/ionic/components/tabs/test/advanced/e2e.ts b/ionic/components/tabs/test/advanced/e2e.ts
deleted file mode 100644
index c5fd91320b..0000000000
--- a/ionic/components/tabs/test/advanced/e2e.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-
-it('should go to Tab1 Page1', function() {
- element(by.css('#signIn')).click();
-});
-
-it('should go to Tab1 Page2', function() {
- element(by.css('#goToTab1Page2')).click();
-});
-
-it('should go back to Tab1 Page1', function() {
- element(by.css('#backToTab1Page1')).click();
-});
-
-it('should go to Tab2 Page1', function() {
- element(by.css('.tab-button:nth-of-type(2)')).click();
-});
-
-it('should go back to Tab1 Page1', function() {
- element(by.css('.tab-button:nth-of-type(1)')).click();
-});
diff --git a/ionic/components/toast/test/basic/e2e.ts b/ionic/components/toast/test/basic/e2e.ts
deleted file mode 100644
index 0ae13ae804..0000000000
--- a/ionic/components/toast/test/basic/e2e.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-
-it('should open toast', function() {
- element(by.css('.e2eOpenToast')).click();
-});
-
-it('should close with backdrop click', function() {
- element(by.css('.backdrop')).click();
-});
diff --git a/ionic/platform/cordova.ios.scss b/ionic/platform/cordova.ios.scss
deleted file mode 100644
index 15a73bbb18..0000000000
--- a/ionic/platform/cordova.ios.scss
+++ /dev/null
@@ -1,41 +0,0 @@
-@import "../globals.ios";
-
-// iOS Cordova
-// --------------------------------------------------
-
-$cordova-ios-statusbar-padding: 20px !default;
-
-
-ion-navbar-section.statusbar-padding {
- height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-navbar-section.statusbar-padding > .toolbar ion-segment,
-ion-navbar-section.statusbar-padding > .toolbar ion-title,
-ion-navbar-section.statusbar-padding > .toolbar {
- padding-top: $cordova-ios-statusbar-padding;
-
- height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-nav > ion-page,
-ion-menu {
- > .toolbar.statusbar-padding:first-child ion-segment,
- > .toolbar.statusbar-padding:first-child ion-title,
- > .toolbar.statusbar-padding:first-child {
- padding-top: $cordova-ios-statusbar-padding;
- height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-ios-height} + #{$cordova-ios-statusbar-padding});
- }
-
- > ion-content.statusbar-padding:first-child scroll-content {
- padding-top: $cordova-ios-statusbar-padding;
- }
-
- > ion-content.statusbar-padding:first-child[padding] scroll-content,
- > ion-content.statusbar-padding:first-child[padding-top] scroll-content {
- padding-top: calc(#{$content-ios-padding} + #{$cordova-ios-statusbar-padding});
- }
-}
diff --git a/ionic/platform/cordova.md.scss b/ionic/platform/cordova.md.scss
deleted file mode 100644
index a65e78c5aa..0000000000
--- a/ionic/platform/cordova.md.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-@import "../globals.md";
-
-// iOS Cordova
-// --------------------------------------------------
-
-$cordova-ios-statusbar-padding: 20px !default;
-
-
-ion-navbar-section.statusbar-padding {
- height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-navbar-section.statusbar-padding > .toolbar {
- padding-top: $cordova-ios-statusbar-padding;
-
- height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-nav > ion-page,
-ion-menu {
- > .toolbar.statusbar-padding:first-child {
- padding-top: $cordova-ios-statusbar-padding;
- height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-md-height} + #{$cordova-ios-statusbar-padding});
- }
-
- > ion-content.statusbar-padding:first-child scroll-content {
- padding-top: $cordova-ios-statusbar-padding;
- }
-
- > ion-content.statusbar-padding:first-child[padding] scroll-content,
- > ion-content.statusbar-padding:first-child[padding-top] scroll-content {
- padding-top: calc(#{$content-md-padding} + #{$cordova-ios-statusbar-padding});
- }
-}
diff --git a/ionic/platform/cordova.wp.scss b/ionic/platform/cordova.wp.scss
deleted file mode 100644
index b0dea41f90..0000000000
--- a/ionic/platform/cordova.wp.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-@import "../globals.wp";
-
-// iOS Cordova
-// --------------------------------------------------
-
-$cordova-ios-statusbar-padding: 20px !default;
-
-
-ion-navbar-section.statusbar-padding {
- height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-navbar-section.statusbar-padding > .toolbar {
- padding-top: $cordova-ios-statusbar-padding;
-
- height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
-}
-
-ion-nav > ion-page,
-ion-menu {
- > .toolbar.statusbar-padding:first-child {
- padding-top: $cordova-ios-statusbar-padding;
- height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
- min-height: calc(#{$toolbar-wp-height} + #{$cordova-ios-statusbar-padding});
- }
-
- > ion-content.statusbar-padding:first-child scroll-content {
- padding-top: $cordova-ios-statusbar-padding;
- }
-
- > ion-content.statusbar-padding:first-child[padding] scroll-content,
- > ion-content.statusbar-padding:first-child[padding-top] scroll-content {
- padding-top: calc(#{$content-wp-padding} + #{$cordova-ios-statusbar-padding});
- }
-}
diff --git a/ionic/util/test/util.spec.ts b/ionic/util/test/util.spec.ts
deleted file mode 100644
index 92081e788a..0000000000
--- a/ionic/util/test/util.spec.ts
+++ /dev/null
@@ -1,399 +0,0 @@
-import * as util from '../../../ionic/util';
-
-export function run() {
- describe('extend', function() {
-
- describe('isCheckedProperty', function() {
-
- it('should test a=undefined', () => {
- expect(util.isCheckedProperty(undefined, undefined)).toBe(true);
- expect(util.isCheckedProperty(undefined, null)).toBe(true);
- expect(util.isCheckedProperty(undefined, '')).toBe(true);
- expect(util.isCheckedProperty(undefined, 'string')).toBe(false);
- expect(util.isCheckedProperty(undefined, 0)).toBe(false);
- expect(util.isCheckedProperty(undefined, '0')).toBe(false);
- expect(util.isCheckedProperty(undefined, 1000)).toBe(false);
- expect(util.isCheckedProperty(undefined, '1000')).toBe(false);
- expect(util.isCheckedProperty(undefined, -1)).toBe(false);
- expect(util.isCheckedProperty(undefined, true)).toBe(false);
- expect(util.isCheckedProperty(undefined, false)).toBe(false);
- expect(util.isCheckedProperty(undefined, 'true')).toBe(false);
- expect(util.isCheckedProperty(undefined, 'false')).toBe(false);
- });
-
- it('should test a=null', () => {
- expect(util.isCheckedProperty(null, undefined)).toBe(true);
- expect(util.isCheckedProperty(null, null)).toBe(true);
- expect(util.isCheckedProperty(null, '')).toBe(true);
- expect(util.isCheckedProperty(null, 'string')).toBe(false);
- expect(util.isCheckedProperty(null, 0)).toBe(false);
- expect(util.isCheckedProperty(null, '0')).toBe(false);
- expect(util.isCheckedProperty(null, 1000)).toBe(false);
- expect(util.isCheckedProperty(null, '1000')).toBe(false);
- expect(util.isCheckedProperty(null, -1)).toBe(false);
- expect(util.isCheckedProperty(null, true)).toBe(false);
- expect(util.isCheckedProperty(null, false)).toBe(false);
- expect(util.isCheckedProperty(null, 'true')).toBe(false);
- expect(util.isCheckedProperty(null, 'false')).toBe(false);
- });
-
- it('should test a=""', () => {
- expect(util.isCheckedProperty('', undefined)).toBe(true);
- expect(util.isCheckedProperty('', null)).toBe(true);
- expect(util.isCheckedProperty('', '')).toBe(true);
- expect(util.isCheckedProperty('', 'string')).toBe(false);
- expect(util.isCheckedProperty('', 0)).toBe(false);
- expect(util.isCheckedProperty('', '0')).toBe(false);
- expect(util.isCheckedProperty('', 1000)).toBe(false);
- expect(util.isCheckedProperty('', '1000')).toBe(false);
- expect(util.isCheckedProperty('', -1)).toBe(false);
- expect(util.isCheckedProperty('', true)).toBe(false);
- expect(util.isCheckedProperty('', false)).toBe(false);
- expect(util.isCheckedProperty('', 'true')).toBe(false);
- expect(util.isCheckedProperty('', 'false')).toBe(false);
- });
-
- it('should test a=true', () => {
- expect(util.isCheckedProperty(true, undefined)).toBe(false);
- expect(util.isCheckedProperty(true, null)).toBe(false);
- expect(util.isCheckedProperty(true, '')).toBe(false);
- expect(util.isCheckedProperty(true, 'string')).toBe(false);
- expect(util.isCheckedProperty(true, 0)).toBe(false);
- expect(util.isCheckedProperty(true, '0')).toBe(false);
- expect(util.isCheckedProperty(true, 1000)).toBe(false);
- expect(util.isCheckedProperty(true, '1000')).toBe(false);
- expect(util.isCheckedProperty(true, -1)).toBe(false);
- expect(util.isCheckedProperty(true, true)).toBe(true);
- expect(util.isCheckedProperty(true, false)).toBe(false);
- expect(util.isCheckedProperty(true, 'true')).toBe(true);
- expect(util.isCheckedProperty(true, 'false')).toBe(false);
- });
-
- it('should test a="true"', () => {
- expect(util.isCheckedProperty('true', undefined)).toBe(false);
- expect(util.isCheckedProperty('true', null)).toBe(false);
- expect(util.isCheckedProperty('true', '')).toBe(false);
- expect(util.isCheckedProperty('true', 'string')).toBe(false);
- expect(util.isCheckedProperty('true', 0)).toBe(false);
- expect(util.isCheckedProperty('true', '0')).toBe(false);
- expect(util.isCheckedProperty('true', 1000)).toBe(false);
- expect(util.isCheckedProperty('true', '1000')).toBe(false);
- expect(util.isCheckedProperty('true', -1)).toBe(false);
- expect(util.isCheckedProperty('true', true)).toBe(true);
- expect(util.isCheckedProperty('true', false)).toBe(false);
- expect(util.isCheckedProperty('true', 'true')).toBe(true);
- expect(util.isCheckedProperty('true', 'false')).toBe(false);
- });
-
- it('should test a=false', () => {
- expect(util.isCheckedProperty(false, undefined)).toBe(false);
- expect(util.isCheckedProperty(false, null)).toBe(false);
- expect(util.isCheckedProperty(false, '')).toBe(false);
- expect(util.isCheckedProperty(false, 'string')).toBe(false);
- expect(util.isCheckedProperty(false, 0)).toBe(false);
- expect(util.isCheckedProperty(false, '0')).toBe(false);
- expect(util.isCheckedProperty(false, 1000)).toBe(false);
- expect(util.isCheckedProperty(false, '1000')).toBe(false);
- expect(util.isCheckedProperty(false, -1)).toBe(false);
- expect(util.isCheckedProperty(false, true)).toBe(false);
- expect(util.isCheckedProperty(false, false)).toBe(true);
- expect(util.isCheckedProperty(false, 'true')).toBe(false);
- expect(util.isCheckedProperty(false, 'false')).toBe(true);
- });
-
- it('should test a="false"', () => {
- expect(util.isCheckedProperty('false', undefined)).toBe(false);
- expect(util.isCheckedProperty('false', null)).toBe(false);
- expect(util.isCheckedProperty('false', '')).toBe(false);
- expect(util.isCheckedProperty('false', 'string')).toBe(false);
- expect(util.isCheckedProperty('false', 0)).toBe(false);
- expect(util.isCheckedProperty('false', '0')).toBe(false);
- expect(util.isCheckedProperty('false', 1000)).toBe(false);
- expect(util.isCheckedProperty('false', '1000')).toBe(false);
- expect(util.isCheckedProperty('false', -1)).toBe(false);
- expect(util.isCheckedProperty('false', true)).toBe(false);
- expect(util.isCheckedProperty('false', false)).toBe(true);
- expect(util.isCheckedProperty('false', 'true')).toBe(false);
- expect(util.isCheckedProperty('false', 'false')).toBe(true);
- });
-
- it('should test a=0', () => {
- expect(util.isCheckedProperty(0, undefined)).toBe(false);
- expect(util.isCheckedProperty(0, null)).toBe(false);
- expect(util.isCheckedProperty(0, '')).toBe(false);
- expect(util.isCheckedProperty(0, 'string')).toBe(false);
- expect(util.isCheckedProperty(0, 0)).toBe(true);
- expect(util.isCheckedProperty(0, '0')).toBe(true);
- expect(util.isCheckedProperty(0, 1000)).toBe(false);
- expect(util.isCheckedProperty(0, '1000')).toBe(false);
- expect(util.isCheckedProperty(0, -1)).toBe(false);
- expect(util.isCheckedProperty(0, true)).toBe(false);
- expect(util.isCheckedProperty(0, false)).toBe(false);
- expect(util.isCheckedProperty(0, 'true')).toBe(false);
- expect(util.isCheckedProperty(0, 'false')).toBe(false);
- });
-
- it('should test a="0"', () => {
- expect(util.isCheckedProperty('0', undefined)).toBe(false);
- expect(util.isCheckedProperty('0', null)).toBe(false);
- expect(util.isCheckedProperty('0', '')).toBe(false);
- expect(util.isCheckedProperty('0', 'string')).toBe(false);
- expect(util.isCheckedProperty('0', 0)).toBe(true);
- expect(util.isCheckedProperty('0', '0')).toBe(true);
- expect(util.isCheckedProperty('0', 1000)).toBe(false);
- expect(util.isCheckedProperty('0', '1000')).toBe(false);
- expect(util.isCheckedProperty('0', -1)).toBe(false);
- expect(util.isCheckedProperty('0', true)).toBe(false);
- expect(util.isCheckedProperty('0', false)).toBe(false);
- expect(util.isCheckedProperty('0', 'true')).toBe(false);
- expect(util.isCheckedProperty('0', 'false')).toBe(false);
- });
-
- it('should test a=1000', () => {
- expect(util.isCheckedProperty(1000, undefined)).toBe(false);
- expect(util.isCheckedProperty(1000, null)).toBe(false);
- expect(util.isCheckedProperty(1000, '')).toBe(false);
- expect(util.isCheckedProperty(1000, 'string')).toBe(false);
- expect(util.isCheckedProperty(1000, 0)).toBe(false);
- expect(util.isCheckedProperty(1000, '0')).toBe(false);
- expect(util.isCheckedProperty(1000, 1000)).toBe(true);
- expect(util.isCheckedProperty(1000, '1000')).toBe(true);
- expect(util.isCheckedProperty(1000, -1)).toBe(false);
- expect(util.isCheckedProperty(1000, true)).toBe(false);
- expect(util.isCheckedProperty(1000, false)).toBe(false);
- expect(util.isCheckedProperty(1000, 'true')).toBe(false);
- expect(util.isCheckedProperty(1000, 'false')).toBe(false);
- });
-
- it('should test a="1000"', () => {
- expect(util.isCheckedProperty('1000', undefined)).toBe(false);
- expect(util.isCheckedProperty('1000', null)).toBe(false);
- expect(util.isCheckedProperty('1000', '')).toBe(false);
- expect(util.isCheckedProperty('1000', 'string')).toBe(false);
- expect(util.isCheckedProperty('1000', 0)).toBe(false);
- expect(util.isCheckedProperty('1000', '0')).toBe(false);
- expect(util.isCheckedProperty('1000', 1000)).toBe(true);
- expect(util.isCheckedProperty('1000', '1000')).toBe(true);
- expect(util.isCheckedProperty('1000', -1)).toBe(false);
- expect(util.isCheckedProperty('1000', true)).toBe(false);
- expect(util.isCheckedProperty('1000', false)).toBe(false);
- expect(util.isCheckedProperty('1000', 'true')).toBe(false);
- expect(util.isCheckedProperty('1000', 'false')).toBe(false);
- });
-
- it('should test a=-1', () => {
- expect(util.isCheckedProperty(-1, undefined)).toBe(false);
- expect(util.isCheckedProperty(-1, null)).toBe(false);
- expect(util.isCheckedProperty(-1, '')).toBe(false);
- expect(util.isCheckedProperty(-1, 'string')).toBe(false);
- expect(util.isCheckedProperty(-1, 0)).toBe(false);
- expect(util.isCheckedProperty(-1, '0')).toBe(false);
- expect(util.isCheckedProperty(-1, 1000)).toBe(false);
- expect(util.isCheckedProperty(-1, '1000')).toBe(false);
- expect(util.isCheckedProperty(-1, -1)).toBe(true);
- expect(util.isCheckedProperty(-1, true)).toBe(false);
- expect(util.isCheckedProperty(-1, false)).toBe(false);
- expect(util.isCheckedProperty(-1, 'true')).toBe(false);
- expect(util.isCheckedProperty(-1, 'false')).toBe(false);
- });
-
- it('should test a="-1"', () => {
- expect(util.isCheckedProperty('-1', undefined)).toBe(false);
- expect(util.isCheckedProperty('-1', null)).toBe(false);
- expect(util.isCheckedProperty('-1', '')).toBe(false);
- expect(util.isCheckedProperty('-1', 'string')).toBe(false);
- expect(util.isCheckedProperty('-1', 0)).toBe(false);
- expect(util.isCheckedProperty('-1', '0')).toBe(false);
- expect(util.isCheckedProperty('-1', 1000)).toBe(false);
- expect(util.isCheckedProperty('-1', '1000')).toBe(false);
- expect(util.isCheckedProperty('-1', -1)).toBe(true);
- expect(util.isCheckedProperty('-1', true)).toBe(false);
- expect(util.isCheckedProperty('-1', false)).toBe(false);
- expect(util.isCheckedProperty('-1', 'true')).toBe(false);
- expect(util.isCheckedProperty('-1', 'false')).toBe(false);
- });
-
- it('should test a="string"', () => {
- expect(util.isCheckedProperty('string', undefined)).toBe(false);
- expect(util.isCheckedProperty('string', null)).toBe(false);
- expect(util.isCheckedProperty('string', '')).toBe(false);
- expect(util.isCheckedProperty('string', 'string')).toBe(true);
- expect(util.isCheckedProperty('string', 'otherstring')).toBe(false);
- expect(util.isCheckedProperty('string', 0)).toBe(false);
- expect(util.isCheckedProperty('string', '0')).toBe(false);
- expect(util.isCheckedProperty('string', 1000)).toBe(false);
- expect(util.isCheckedProperty('string', '1000')).toBe(false);
- expect(util.isCheckedProperty('string', -1)).toBe(false);
- expect(util.isCheckedProperty('string', true)).toBe(false);
- expect(util.isCheckedProperty('string', false)).toBe(false);
- expect(util.isCheckedProperty('string', 'true')).toBe(false);
- expect(util.isCheckedProperty('string', 'false')).toBe(false);
- });
-
- });
-
- describe('getQuerystring', function() {
- it('should have no entries for empty url', () => {
- expect(util.getQuerystring('')).toEqual({});
- expect(util.getQuerystring(null)).toEqual({});
- expect(util.getQuerystring(undefined)).toEqual({});
- });
-
- it('should have no entries when without ?', () => {
- expect(util.getQuerystring('http://localhost:1234/')).toEqual({});
- });
-
- it('should have no entries with only ?', () => {
- expect(util.getQuerystring('http://localhost:1234/?')).toEqual({});
- });
-
- it('should have no entries for key with no =', () => {
- expect(util.getQuerystring('http://localhost:1234/?key')).toEqual({});
- });
-
- it('should have no entries with only #?', () => {
- expect(util.getQuerystring('http://localhost:1234/#?')).toEqual({});
- });
-
- it('should have no entries with only #?=', () => {
- expect(util.getQuerystring('http://localhost:1234/#?=')).toEqual({});
- });
-
- it('should have no entries for url with no "?" character', () => {
- expect(util.getQuerystring('http://localhost:1234/#key1=1&key2=2')).toEqual({});
- });
-
- it('should contain key/value entries for all the parameters after "?" character', () => {
- expect(util.getQuerystring('http://localhost:1234/#key1=1&key2x=2x?key3=3&key4=4')).toEqual({
- key3: '3',
- key4: '4'
- });
- });
-
- it('should lowercase param keys', () => {
- expect(util.getQuerystring('http://localhost:1234/#?KEY1=1&kEy2=2')).toEqual({
- key1: '1',
- key2: '2'
- });
- });
-
- it('should not include any values when # comes after ?', () => {
- expect(util.getQuerystring('http://localhost:1234/?key1=1#key2=2')).toEqual({
- key1: '1'
- });
- });
-
- it('should ignore empty ?& and &&', () => {
- expect(util.getQuerystring('http://localhost:1234/#?&&')).toEqual({});
-
- expect(util.getQuerystring('http://localhost:1234/#?&&key1=1&key2=2&&')).toEqual({
- key1: '1',
- key2: '2'
- });
- });
-
- it('should get "" when key has no value', () => {
- expect(util.getQuerystring('http://localhost:1234/#?key=')).toEqual({
- key: ''
- });
- });
-
- });
-
- describe('isTrueProperty', function() {
-
- it('should be true from boolean true', () => {
- expect(util.isTrueProperty(true)).toBe(true);
- });
-
- it('should be true from string "true"', () => {
- expect(util.isTrueProperty('true')).toBe(true);
- expect(util.isTrueProperty('TRUE')).toBe(true);
- expect(util.isTrueProperty(' true ')).toBe(true);
- });
-
- it('should be true from string "on"', () => {
- expect(util.isTrueProperty(true)).toBe(true);
- });
-
- it('should be true from empty string ""', () => {
- expect(util.isTrueProperty('')).toBe(true);
- expect(util.isTrueProperty(' ')).toBe(true);
- });
-
- it('should be true from number greater than zero', () => {
- expect(util.isTrueProperty(1)).toBe(true);
- expect(util.isTrueProperty(999)).toBe(true);
- });
-
- it('should be false from boolean false', () => {
- expect(util.isTrueProperty(false)).toBe(false);
- });
-
- it('should be false from string "off"', () => {
- expect(util.isTrueProperty(true)).toBe(true);
- });
-
- it('should be false from null', () => {
- expect(util.isTrueProperty(null)).toBe(false);
- });
-
- it('should be false from undefined', () => {
- expect(util.isTrueProperty(undefined)).toBe(false);
- });
-
- it('should be false from string "false"', () => {
- expect(util.isTrueProperty('false')).toBe(false);
- expect(util.isTrueProperty(' FALSE ')).toBe(false);
- expect(util.isTrueProperty('doesnt actually matter')).toBe(false);
- });
-
- });
-
- it('should extend simple', () => {
- var obj = { a: '0', c: '0' };
- expect( util.assign(obj, { a: '1', b: '2' }) ).toBe(obj);
- expect(obj).toEqual({ a: '1', b: '2', c: '0' });
- });
-
- it('should extend complex', () => {
- expect(util.assign(
- { a: '0', b: '0' },
- { b: '1', c: '1' },
- { c: '2', d: '2' }
- )).toEqual({
- a: '0',
- b: '1',
- c: '2',
- d: '2'
- });
- });
-
- });
-
- describe('defaults', function() {
-
- it('should simple defaults', () => {
- var obj = { a: '1' };
- expect(util.defaults(obj, { a: '2', b: '2' })).toBe(obj);
- expect(obj).toEqual({
- a: '1', b: '2'
- });
- });
-
- it('should complex defaults', () => {
- expect(util.defaults(
- { a: '0', b: '0' },
- { b: '1', c: '1', e: '1' },
- { c: '2', d: '2' }
- )).toEqual({
- a: '0',
- b: '0',
- c: '2',
- d: '2',
- e: '1'
- });
- });
-
- });
-}
diff --git a/package.json b/package.json
index 9de98841e8..8aa465ba17 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"private": "true",
"name": "ionic2",
- "version": "2.0.0-beta.6",
+ "version": "2.0.0-beta.7",
"license": "MIT",
"repository": {
"type": "git",
@@ -13,7 +13,14 @@
"link": "npm install && gulp src && npm link"
},
"dependencies": {
- "angular2": "2.0.0-beta.16",
+ "@angular/common": "2.0.0-rc.1",
+ "@angular/compiler": "2.0.0-rc.1",
+ "@angular/core": "2.0.0-rc.1",
+ "@angular/platform-browser": "2.0.0-rc.1",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.1",
+ "@angular/platform-server": "2.0.0-rc.1",
+ "@angular/http": "2.0.0-rc.1",
+ "@angular/router": "2.0.0-rc.1",
"colors": "^1.1.2",
"es6-shim": "^0.35.0",
"inquirer": "0.11.0",
@@ -21,8 +28,8 @@
"lodash": "3.10.1",
"mkdirp-no-bin": "0.5.1",
"q": "1.4.1",
- "reflect-metadata": "0.1.2",
- "rxjs": "5.0.0-beta.2",
+ "reflect-metadata": "^0.1.3",
+ "rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
@@ -92,4 +99,4 @@
"path": "node_modules/ionic-cz-conventional-changelog"
}
}
-}
+}
\ No newline at end of file
diff --git a/scripts/README.md b/scripts/README.md
index aa8843c2ef..78a46dc7ee 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -108,4 +108,4 @@ If you'd like to manually update the demos, follow the steps on the preview app
Ionic API demos are automatically compiled and deployed to the [ionic staging site](http://ionic-site-staging.herokuapp.com/) on every commit. No action is necessary.
-If you'd like to manually update the demos, clone the [`ionic-site`](https://github.com/driftyco/ionic-site) repo as a sibling of `ionic`. From `ionic` run gulp docs, and it'll compile and copy the demos to the `ionic-site` repo, ready for testing or committing.
+If you'd like to manually update the demos, clone the [`ionic-site`](https://github.com/driftyco/ionic-site) repo as a sibling of `ionic`. From `ionic` run `gulp demos` and then `gulp docs`, and it'll compile and copy the demos to the `ionic-site` repo, ready for testing.
diff --git a/scripts/build/config.js b/scripts/build/config.js
index daff9f57d3..31d1a3bb42 100644
--- a/scripts/build/config.js
+++ b/scripts/build/config.js
@@ -2,13 +2,13 @@
module.exports = {
dist: 'dist',
src: {
- spec: ['ionic/**/test/*.spec.js'],
- js: ['ionic/**/*.js'],
+ spec: ['src/**/test/*.spec.js'],
+ js: ['src/**/*.js'],
// Get all the non-js files and main.js
- e2e: ['ionic/components/*/test/*/**/*'],
- html: 'ionic/**/*.html',
- scss: 'ionic/**/*.scss',
+ e2e: ['src/components/*/test/*/**/*'],
+ html: 'src/**/*.html',
+ scss: 'src/**/*.scss',
},
scripts: [
diff --git a/scripts/demos/index.template.dev.html b/scripts/demos/index.template.dev.html
index a4020dbcaf..630bbcd43e 100644
--- a/scripts/demos/index.template.dev.html
+++ b/scripts/demos/index.template.dev.html
@@ -14,23 +14,34 @@
-
-
-
-
-
+
+
+
+
+
+
diff --git a/scripts/demos/index.template.html b/scripts/demos/index.template.html
index 8fd5da71e9..3a78fee192 100644
--- a/scripts/demos/index.template.html
+++ b/scripts/demos/index.template.html
@@ -18,19 +18,5 @@
-
-