From adf937659055ffc1dda53717eb165fb3948812d9 Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Thu, 15 Jun 2017 17:10:50 -0400 Subject: [PATCH] clicker -> insight-ui --- app/.editorconfig => .editorconfig | 0 app/.angular-cli.json | 2 +- app/.travis.yml | 70 ---- app/.travis/deploy.sh | 9 - app/.travis/travis_rsa.pem.enc | Bin 1680 -> 0 bytes app/CHANGELOG.md | 618 ----------------------------- app/LICENSE | 21 - app/README.md | 65 +-- app/appveyor.yml | 24 -- app/config.xml | 35 -- app/ionic.config.json | 5 - app/package.json | 26 +- 12 files changed, 14 insertions(+), 861 deletions(-) rename app/.editorconfig => .editorconfig (100%) delete mode 100644 app/.travis.yml delete mode 100755 app/.travis/deploy.sh delete mode 100644 app/.travis/travis_rsa.pem.enc delete mode 100644 app/CHANGELOG.md delete mode 100644 app/LICENSE delete mode 100644 app/appveyor.yml delete mode 100644 app/config.xml delete mode 100644 app/ionic.config.json diff --git a/app/.editorconfig b/.editorconfig similarity index 100% rename from app/.editorconfig rename to .editorconfig diff --git a/app/.angular-cli.json b/app/.angular-cli.json index d64f84b..7df07cc 100644 --- a/app/.angular-cli.json +++ b/app/.angular-cli.json @@ -1,7 +1,7 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { - "name": "my-ng-app" + "name": "insight-ui" }, "apps": [ { diff --git a/app/.travis.yml b/app/.travis.yml deleted file mode 100644 index ed93b2f..0000000 --- a/app/.travis.yml +++ /dev/null @@ -1,70 +0,0 @@ -# -# Configuration -# - -sudo: required -dist: trusty - -notifications: - email: true - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - google-chrome - packages: - - google-chrome-stable - - lib32stdc++6 - - lib32z1 - -branches: - only: - - master - - rc0 - -# -# Build Lifecycle: -# - -before_install: - - nvm install --lts - - node --version - - npm install -g cordova@6.4.0 ionic@3.2.0 - -install: npm install - -before_script: - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - -script: - - npm run test-ci # unit tests - - npm run e2e # run e2e tests against ionic - -after_success: - # Send coverage info off to cloud ppl - - ./node_modules/.bin/codecov - -before_deploy: - # start install android - - wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz - - tar -xzvf android-sdk_r24.2-linux.tgz - - echo "y" | ./android-sdk-linux/tools/android update sdk --no-ui --filter android-23,build-tools-23.0.1 - - export ANDROID_HOME=${PWD}/android-sdk-linux - # license fail workaround: http://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences - - mkdir -p ${ANDROID_HOME}/licenses - - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license" - - echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "${ANDROID_HOME}/licenses/android-sdk-preview-license" - # end install android - - cordova build android - # `ionic build android` wraps `cordova build android`, which gives a legit exit code if it fails. Ionic does not; test apk exists. - - ls ./platforms/android/build/outputs/apk/android*.apk - # test a browser prod build with ionic (#236) - - cordova build browser --prod - - ls ./platforms/browser/build/package.zip - -deploy: - provider: script - script: .travis/deploy.sh - skip_cleanup: true diff --git a/app/.travis/deploy.sh b/app/.travis/deploy.sh deleted file mode 100755 index 9d75d6f..0000000 --- a/app/.travis/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#! /usr/bin/env sh -# -# Helper script run from travis to deploy the app -# -# deploy to davonez in addition to ionic view for debug -# Ionic upload failing see https://github.com/ionic-team/ionic/issues/11872 -ionic upload --email $IONIC_EMAIL --password $IONIC_PASSWORD -# ssh-keyscan 176.58.107.25 >> ~/.ssh/known_hosts -# scp -i .travis/travis_rsa.pem platforms/android/build/outputs/apk/android-debug.apk shazleto@176.58.107.25:~/clicker \ No newline at end of file diff --git a/app/.travis/travis_rsa.pem.enc b/app/.travis/travis_rsa.pem.enc deleted file mode 100644 index 3141fa03d9982b5eec83baa8b4b2fba07db1cdf9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1680 zcmV;B25l_`m`l; ztR$q*P<}_W+r)%~4=RvyVnvob&;#hGR@JGV`%zCA$*Ij$I6rS27e9!+>)QDaG-gX= ze8HY4fG2~b)_Y6YthcW|Rv=%}#nQa{$qK40vtm`;AVrB~Mc7EC(NQu9&PAGTlrdQ% zh;nzXJTF?M^yv5X3l<%kK|{ZDeJV2ZHddrtI$Z+Xun!;It#__T5l&um89WAtd%{f- z;7sY(HMh1GB{r4(aAg1e^tm)O5aY@qc1@9&$}7NWDR69E8Wo)u0t_A)cWMLyqGwc| zwZKq!?I9{MiB%>NgC0j`?yJt(NCJWq#oPeYr~H^eE5IgF)HfMg?b8JeF;zvaGw zZn_kZxb~I?mFz3+fTa=O4CG=<6l>cc-pK+#R2KREkAfB$zah*8OCdZyhGI!*W|asb z(YSp15}|~(ez~4B{7S0-?w!V?d(<+!rB0_KZu@a}vfBOs(27F3x!4%jZOyRi*3cYr zv%8n#^*D}-Lf}8jqkv021LItRdWKGPJLD7}WN}nn-7L}K=-ki^!|Xm4he08`O+<)W z2;|TZKOxUDTRieHB)0se7~2ejGWj)5w0UQv5FdVf#%Ds{xx2Sz@sB3HPG@hQA3aXX^AHo^cfZlPux}?7LN0gs*wo|!>Jpw6UH z5CZwl|EYfY&Y_DQBAec|8R1hA`ej&}L|u7-N>4}ZedbPkt~pCV@*tgE^WFALESSx7 zXeGpay)4qp3_S>@e18&HrW$SDrdW4hL!D91RQ*JGM?_hGo5IHoG@}Of1`xRm`miKO z`oK!w^-|CZzdCZf0e3w|4~GzMk_!!Fa6R*;VRnl%P=q}8oUf0I3>L5>J6U7f)*)-y#XWA=Y+)t8!bDOI$A=pO}HMx z%Xi>ZU?)HfoS|qyPFtNX7+`GU@uyFEr?`%KyUseP9NZGFh>D0~iFud7DD8!`T%1$G z^v<74KnjIKeyloH2Nu7f+K;X4X$i|cXw;Kau1BMt8%f!cRwY_A4k0@r1K_}R{JQFc z5q+Ay!%042-~P4Ada3Sd0OL?uh4i1dbwV`KE`fyOTj-B1fGi4}==r^UzB&(iW2~(s zO{+bWRy+jG(uI;5Ds-l(wtp&33={7~V|WLcWW2$>W`0`o!lhYo2V9ay}{|k`Hz?#ky3B;Sla}_ivcg!ko;2|Qhrfee!$?&jdUQW%5Zc{#Y&-^K|x_iutBx18SRKfF71&>Rq8}2n=u{izqbrmy`Pb0q?nA zVLck}1v+TbWny$9w;|=3&G5Fi8ev>z>?`cw=Aw+2 diff --git a/app/CHANGELOG.md b/app/CHANGELOG.md deleted file mode 100644 index ade2e81..0000000 --- a/app/CHANGELOG.md +++ /dev/null @@ -1,618 +0,0 @@ - -# 2.15.0 (2017-06-11) - -### Features - -* **Unit**: Add alert example and coverage PR [#252](https://github.com/lathonez/clicker/pull/252) ([310a2e9](https://github.com/lathonez/clicker/commit/310a2e9)) - - -# 2.14.0 (2017-05-31) - -### Features - -* **Update**: Update to Ionic 3.3.0 and @angular/cli 1.0.6 (implying @angular 4.1.2) ([f9928ab](https://github.com/lathonez/clicker/commit/f9928ab)) - - -# 2.13.2 (2017-05-11) - -### Bug Fixes - -* **Build**: Use explicit version of ionic cli [#246](https://github.com/lathonez/clicker/pull/246) ([b334fe5](https://github.com/lathonez/clicker/commit/b334fe5)) - - -# 2.13.1 (2017-04-30) - -### Bug Fixes - -* **Unit**: Remove unused storage mock import [#244](https://github.com/lathonez/clicker/pull/244) ([daa3172](https://github.com/lathonez/clicker/commit/daa3172)) -* **Services**: Add typedef for load: ([105295a](https://github.com/lathonez/clicker/commit/105295a)) - - -# 2.13.0 (2017-04-25) - -### Features - -* **Unit**: Improve test coverage [#243](https://github.com/lathonez/clicker/pull/243) ([3e2551f](https://github.com/lathonez/clicker/commit/3e2551f)) - - -# 2.12.1 (2017-04-20) - -### Bug Fixes - -* **Unit**: Remove unused mocks code [#241](https://github.com/lathonez/clicker/issues/241) ([e97c14e](https://github.com/lathonez/clicker/commit/e97c14e)) - - -# 2.12.0 (2017-04-11) - -### Features - -* **Update**: Update to Ionic 3.0.1 and @angular/cli 1.0.0 (implying @angular 4.0.0) ([0ed7a16](https://github.com/lathonez/clicker/commit/0ed7a16)) -* **Unit**: Exclude mocks and config from coverage [#221](https://github.com/lathonez/clicker/issues/221) ([096e063](https://github.com/lathonez/clicker/commit/096e063)) - - -# 2.11.0 (2017-04-11) - -### Revert Deprecation - -The reverted code now lives on the [ionic-unit-testing-example branch](https://github.com/lathonez/clicker/commits/ionic-unit-testing-example) - -* **Update**: REVERT: Look at deprecating this repo [#239](https://github.com/lathonez/clicker/issues/239): ([bf946c7..7dbd3b8](https://github.com/lathonez/clicker/compare/bf946c7b819a3900f12947da7c92896329caa7ff...7dbd3b83a1301c9aaaa9b790b7c33655cb73e0ca)) - - -# 2.10.0 (2017-03-28) - -### Deprecate! - -(This version never really existed - I should have branced off but I didn't) - -* **Update**: Look at deprecating this repo [#239](https://github.com/lathonez/clicker/issues/239): ([689c02f..d56c7d6](https://github.com/lathonez/clicker/compare/689c02f381724822a25816677ae4c41fd554b46d...d56c7d6eca37f5064e63e2748b06e72138b0c99d)) - - -# 2.9.1 (2017-03-14) - -### Bug Fixes - -* **Build**: Reinstate tsconfig.json excludes for `ionic build --prod` [#236](https://github.com/lathonez/clicker/issues/236) ([f75ec74](https://github.com/lathonez/clicker/commit/f75ec74)) - - -# 2.9.0 (2017-02-27) - -### Features - -* **Update**: Update to Ionic 2.1.0 and @angular/cli rc.0 (implying @angular 2.4.0) ([13a6cd6](https://github.com/lathonez/clicker/commit/13a6cd6)) - - -# 2.8.0 (2016-02-24) - -### Features - -* **Unit**: Add functions to PlatforMock to facilitate testing of Slides [#227](https://github.com/lathonez/clicker/issues/227) ([d7ee4d4](https://github.com/lathonez/clicker/commit/d7ee4d4)) - - -# 2.7.0 (2017-01-26) - -### Features - -* **Update**: Update to Ionic 2.0.0 FINAL ([bac5ce3](https://github.com/lathonez/clicker/commit/bac5ce3)) - - -# 2.6.1 (2017-01-25) - -### Bug Fixes - -* **Build**: Remove [#135](https://github.com/lathonez/clicker/pull/135), it's been obsolute since ionic went back to webpack (and we moved to ng-cli) will be implemented by Ionic in https://github.com/driftyco/ionic-cli/issues/1205 [#217](https://github.com/lathonez/clicker/issues/217) ([5a3e177](https://github.com/lathonez/clicker/commit/5a3e177)) - - -# 2.6.0 (2017-01-18) - -### Features - -* **Update**: Update to Ionic RC5 ([7328aad](https://github.com/lathonez/clicker/commit/7328aad)) - -The above update includes creating a mock for Ionic's platform class and using it as a provider in test.ts. I have not attempted to mock out the whole class, what is there is sufficient for clicker. If anything is missing for your app, you can add easily by referencing the signature in node_modules/ionic-angular/platform/platform.d.ts. - -* **E2E**: Use serve-static to run protractor with a single commmand. closes [#210](https://github.com/lathonez/clicker/issues/210) ([8331382](https://github.com/lathonez/clicker/commit/8331382)) - - -# 2.5.3 (2016-01-03) - -### Bug Fixes - -* **Unit**: Add separate script for coverage as it breaks sourcemaps [#203](https://github.com/lathonez/clicker/issues/203) ([1f9993b](https://github.com/lathonez/clicker/commit/1f9993b)) - - -# 2.5.2 (2016-01-02) - -### Bug Fixes - -* **Unit**: Remove redundant "initialises with app" test [#202](https://github.com/lathonez/clicker/issues/202) ([d12d8ca](https://github.com/lathonez/clicker/commit/d12d8ca)) - - -# 2.5.1 (2016-12-26) - -### Bug Fixes - -* **Unit**: Fixing codecov integration [#200](https://github.com/lathonez/clicker/issues/200) ([ecf5d87](https://github.com/lathonez/clicker/commit/ecf5d87)) -* **Unit**: Reverting to typescript 2.0.10 to fix Jasmie typings misisng when ionic:build'ing [#159](https://github.com/lathonez/clicker/issues/159) ([973292a](https://github.com/lathonez/clicker/commit/973292a)) - - -# 2.5.0 (2016-12-22) - -### Features - -* **Update**: Update to Ionic RC4 ([b27aade](https://github.com/lathonez/clicker/commit/b27aade)) - -The above update includes a change to angular-cli which means you need to add the current working directory to template urls: - -For example: - -```javascript - templateUrl: 'hello-ionic.html', -``` - -becomes - -```javascript - templateUrl: './hello-ionic.html', -``` - -Also Ionic's DomController needs adding into test.ts as a provider - - - -# 2.4.0 (2016-12-08) - -### Features - -* **Unit**: Add example of TestBed component compiling manually in the component (Page2) as opposed to calling TestUtils closes [#179](https://github.com/lathonez/clicker/issues/179) ([51b5e23](https://github.com/lathonez/clicker/commit/51b5e23)) - -### Bug Fixes - -* **Unit**: Add mime type to karma.conf.js, closes [#178](https://github.com/lathonez/clicker/issues/178) ([5c0ffeb](https://github.com/lathonez/clicker/commit/5c0ffeb)) - -# 2.3.0 (2016-11-18) - -### Bug Fixes - -* **Unit/E2E**: Reverting to using jasmine types in main tsconfig.json as excluding spec means editors don't resolve modules, closes [#174](https://github.com/lathonez/clicker/issues/174) ([0ae024b](https://github.com/lathonez/clicker/commit/0ae024b)) - -### Features - -* **Update**: Update to Ionic RC3 ([d1a7df2](https://github.com/lathonez/clicker/commit/d1a7df2)) -* **Update**: Update Angular-CLI PR [#176](https://github.com/lathonez/clicker/pull/176)([b7486d2](https://github.com/lathonez/clicker/commit/b7486d2)) - - -# 2.2.1 (2016-11-17) - -### Bug Fixes - -* **Unit**: Don't mock Ionic when configuring the testing module [#175](https://github.com/lathonez/clicker/issues/175) ([2f49f96](https://github.com/lathonez/clicker/commit/2f49f96)) - - -# 2.2.0 (2016-11-07) - -### Features - -* **Update**: Update to Ionic RC2 ([694be18](https://github.com/lathonez/clicker/commit/694be18)) - - -# 2.1.2 (2016-11-03) - -### Bug Fixes - -* **Build**: Using environment variables for travis build directory [#162](https://github.com/lathonez/clicker/issues/162) ([9f81dc4](https://github.com/lathonez/clicker/commit/9f81dc4)) - - -# 2.1.1 (2016-10-31) - -### Bug Fixes - -* **Unit**: Windows 10 needs explicit excludes [#159](https://github.com/lathonez/clicker/issues/159) ([0e55cc1](https://github.com/lathonez/clicker/commit/0e55cc1)) - - -# 2.1.0 (2016-10-30) - -### Features - -* **E2E**: Re-implement e2e post rc1 ([a5ea70c](https://github.com/lathonez/clicker/commit/a5ea70c)) -* **Update**: Update deps ([b0a95a6](https://github.com/lathonez/clicker/commit/b0a95a6)) -* **Unit**: Rationalise beforeEach boilerplate into TestUtils.beforeEachCompiler ([a5fef51](https://github.com/lathonez/clicker/commit/a5fef51)) -* **Build**: Using workaround for missing SDK license ([b6751ac](https://github.com/lathonez/clicker/commit/a5fef51)) - -### Bug Fixes - -* **Unit**: Barrels aren't working with modules since latest upgrade: ([0c0993b](https://github.com/lathonez/clicker/commit/0c0993b)) -* **Unit**: Add compileComponents to beforeEach, use ng-cli's tsconfig.json for testing for [#155](https://github.com/lathonez/clicker/issues/155) ([d59d968](https://github.com/lathonez/clicker/commit/d59d968)) - - -# 2.0.0 (2016-10-16) - -### Features - -**Re-write project for to Ionic 2.0.0.rc0**: - -* restructure app for new directory structure: ([3e92e3c](https://github.com/lathonez/clicker/commit/3e92e3c)) ([bcb1c80](https://github.com/lathonez/clicker/commit/bcb1c80)) ([a992f38](https://github.com/lathonez/clicker/commit/a992f38)) -* merge config ([055bf22](https://github.com/lathonez/clicker/commit/055bf22)) -* build errors ([58d4732](https://github.com/lathonez/clicker/commit/58d4732)) -* remove ngrx ([07d5e6c](https://github.com/lathonez/clicker/commit/07d5e6c)) -* POC for ng-cli setup ([7b1a80c](https://github.com/lathonez/clicker/commit/7b1a80c)) -* centralise boilerplate ([c7e9b57](https://github.com/lathonez/clicker/commit/c7e9b57)) -* update *.spec ([819caf5](https://github.com/lathonez/clicker/commit/819caf5)) -* all unit tests working ([02b0901](https://github.com/lathonez/clicker/commit/02b0901)) -* tidy up and update to rc1 ([f66d45a](https://github.com/lathonez/clicker/commit/f66d45a)) - - -# 1.14.0 (2016-09-08) - -### Features - -* **Update**: Update deps PR [#143]([e69fad2](https://github.com/lathonez/clicker/commit/e69fad2)) - - -# 1.13.1 (2016-09-07) - -### Bug Fixes - -* **Unit**: Remove coverage transform on debug PR [#140](https://github.com/lathonez/clicker/pull/140) ([4eab003](https://github.com/lathonez/clicker/commit/4eab003)) - - -# 1.13.0 (2016-09-01) - -### Features - -* **Build**: Dynamic config based on environment PR [#135](https://github.com/lathonez/clicker/pull/135) ([b1a9489](https://github.com/lathonez/clicker/commit/b1a9489)) - - - -# 1.12.1 (2016-08-25) - -### Bug Fixes - -* **E2E**: Make test windows friendly PR [#136](https://github.com/lathonez/clicker/issues/136) ([7fcf752](https://github.com/lathonez/clicker/commit/7fcf752)) - - -# 1.12.0 (2016-08-24) - -### Features - -* **App**: Implement ngrx PR [#133](https://github.com/lathonez/clicker/pull/133) ([ab2cd9a](https://github.com/lathonez/clicker/commit/ab2cd9a)) - - -# 1.11.0 (2016-08-17) - -### Features - -* **E2E**: Add screenshot reporter for Protractor PR [#132](https://github.com/lathonez/clicker/pull/132) ([dd1242d](https://github.com/lathonez/clicker/commit/dd1242d)) - - -# 1.10.0 (2016-08-09) - -### Features - -* **Update**: Update to Ionic 2.0.0.beta.11 ([01530a7](https://github.com/lathonez/clicker/commit/01530a7)) - - -# 1.9.2 (2016-07-12) - -### Bug Fixes - -* **Unit Test**: Make (source) source maps available to debug mode by remove the coverage transform which seems to be mangling them [#119](https://github.com/lathonez/clicker/issues/119) ([74ec6fa](https://github.com/lathonez/clicker/commit/74ec6fa)) - - -# 1.9.1 (2016-07-11) - -### Bug Fixes - -* **Unit Test**: Make sure we're cleaning before running unit tests [#86](https://github.com/lathonez/clicker/issues/86) ([1f25717](https://github.com/lathonez/clicker/commit/1f25717)) - - -# 1.9.0 (2016-07-10) - -### Features - -* **Unit Test**: Break out storage and use DI to inject it, attempting to address [#86](https://github.com/lathonez/clicker/issues/86) ([297dd00](https://github.com/lathonez/clicker/commit/297dd00)) - - -# 1.8.1 (2016-07-04) - -### Bug Fixes - -* **Unit Test**: Remove coverage from debug mode [#115](https://github.com/lathonez/clicker/issues/115) ([0bdc6e4](https://github.com/lathonez/clicker/commit/0bdc6e4)) - - -# 1.8.0 (2016-06-30) - -### Features - -* **Unit Test**: Upgrade karma to 1.1.0 [#110](https://github.com/lathonez/clicker/issues/110) ([1a061b7](https://github.com/lathonez/clicker/commit/1a061b7)) - - -# 1.7.1 (2016-06-29) - -### Bug Fixes - -* **E2E**: Problems introduced with 1.7.0, missing menu, incorrect title, and transition timing on Page2 ([c0562f0](https://github.com/lathonez/clicker/commit/c0562f0)) - - -# 1.7.0 (2016-06-29) - -### Features - -* **Unit Test**: Implement Barrels and move mocks to individual files PR [#109](https://github.com/lathonez/clicker/pull/109) ([0734e45](https://github.com/lathonez/clicker/commit/0734e45)) -* **Update**: Update to Ionic 2.0.0.beta.10 ([1b1b2e3](https://github.com/lathonez/clicker/commit/1b1b2e3)) - - -# 1.6.0(2016-06-19) - -### Features - -* **Unit Test**: Centralise Testing DI Boilerplate ([#103](https://github.com/lathonez/clicker/issues/103)) ([4769372](https://github.com/lathonez/clicker/commit/4769372)) - - -# 1.5.0 (2016-06-18) - -### Features - -* **Update**: Update to Ionic 2.0.0.beta.9 ([a61432c](https://github.com/lathonez/clicker/commit/a61432c)) - - -# 1.4.0 (2016-06-07) - -### Features - -* **Update**: Update to Ionic 2.0.0.beta.8 PR [#98](https://github.com/lathonez/clicker/pull/98) ([5f8d5fb](https://github.com/lathonez/clicker/commit/5f8d5fb20f456d2e8b98d9db1098c51588e6568e)) - - -# 1.3.1 (2016-05-25) - -### Bug Fixes - -* **App**: Duplicate include of Reflect.js ([#96](https://github.com/lathonez/clicker/issues/96)) ([15bd2e6](https://github.com/lathonez/clicker/commit/15bd2e6)) - - -# 1.3.0 (2016-05-22) - -### Features - -* **Update**: Update to Ionic 2.0.0.beta.7 and Angular 2.0.0.rc.1 PR [#93](https://github.com/lathonez/clicker/pull/93) big update due to Angular RC1 ([bc392c3](https://github.com/lathonez/clicker/commit/bc392c3)) - - -# 1.2.0 (2016-04-28) - -### Features - -* **Unit Test**: Use browserify within Karma (see below) ([5f096f7](https://github.com/lathonez/clicker/commit/5f096f7)) -* **Unit Test**: Remove glob, gulp-load-plugins and gulp-util dependencies, refactor gulpfile to remove most typing dependencies ([c67beae](https://github.com/lathonez/clicker/commit/c67beae)) - -### Browserify in Karma - -* actually enables sourcemaps in Karma -* quicker builds -* remove the requirement for remapping coverage as it happens with browserify -* remove `test/config.ts` as it was only being used in gulpfile.ts, and as we're making everything lighter it seems unlikely to be extended -* remove `test/app.stub.js` Now using a workaround in Karma instead. See ([#79](https://github.com/lathonez/clicker/issues/79)) - - -# 1.1.1 (2016-04-27) - -### Bug Fixes - -* **Unit Test**: Merge PR [#87](https://github.com/lathonez/clicker/pull/87) which sorts out Karma's random "Formatting Errors" ([f3b6641](https://github.com/lathonez/clicker/commit/f3b6641)) -* **E2E**: Remove absolute path for protractor ([#83](https://github.com/lathonez/clicker/issues/83)) ([5894a5a](https://github.com/lathonez/clicker/commit/5894a5a)) -* **Unit Test**: Increase browser timeout ([#82](https://github.com/lathonez/clicker/issues/82)) ([ff59b33](https://github.com/lathonez/clicker/commit/ff59b33)) - - -# 1.1.0 (2016-04-23) - -### Features - -* **Update**: Update to Ionic 2.0.0.beta.6 ([a571e7c](https://github.com/lathonez/clicker/commit/a571e7c)) - -### Bug Fixes - -* **Unit Test**: Merge PR [#80](https://github.com/lathonez/clicker/pull/80) removing a trailing `;` ([e8fb205](https://github.com/lathonez/clicker/commit/e8fb205)) - - -# 1.0.0 (2016-04-20) - -### Features - -* **Unit Test**: [Lightweightify](https://github.com/lathonez/clicker/issues/68) ([440ac08](https://github.com/lathonez/clicker/commit/440ac08)) - -### BREAKING CHANGES - -Lightweightify is a major refactor to the framework. See [the issue](https://github.com/lathonez/clicker/issues/68) for further info. - -**The main changes are listed below** -* unit tests are now bundled into `test.bundle.js` -* sourcemaps are now produced @ `test.bundle.js.map` -* coverage is remapped onto source Typescript meaning that transpiled javascript is no longer pushed to `./coverage/source` -* gulpfile.ts has had a [large refactor](https://github.com/lathonez/clicker/commit/3119b92) away from the ng2-seed style and back toward what everyone else seems to be doing -* `app.stub.ts` has been renamed and largely re-written in `app.stub.js`, as was required by a change in the process - -**The following files have been removed as they are no longer required** -* .travis/push_built_tests.sh -* coverage/source/**.js -* test/ionic-angular.js -* test/test-main.js - -**Migration** - -I strongly suggest adopting the new framework as it brings with it many benefits. I will update this if firsthand information is forthcoming -* nuke the `./test` and replace it with the new version. Note that any proxies for external modules in `karma.conig.js` are no longer required, thus there should be no project specifics in that folder -* remove the `export function main()` wrapper from your `*.spec`: [example](https://github.com/lathonez/clicker/commit/f1b72ee) -* merge `package.json` (just for dependencies), some have been removed, some added. Note dependencies are now documented in README.md - -Hopefully that should be it. - - -# 0.12.0 (2016-04-13) - -### Features - -* **Deps**: Merge PR [#71](https://github.com/lathonez/clicker/pull/71) correcting `ionic-gulp-webpack` dependency ([efc9cdf](https://github.com/lathonez/clicker/commit/efc9cdf)) -* **Update**: Upgrade deps (angular2, etc) to latest Ionic 2.0.0.beta.4 ([5649061](https://github.com/lathonez/clicker/commit/5649061)) - - -# 0.11.0 (2016-03-25) - -### Bug Fixes - -* **Docs**: Add "two shell windows" to README.md after someone misread it ([69b5ccb](https://github.com/lathonez/clicker/commit/69b5ccb)) -* **Travis**: Adding install for Phantom manually to get around this 403 in Travis ([aa6173a](https://github.com/lathonez/clicker/commit/aa6173a)) - -### Features - -* **Update**: Merge PR [#62](https://github.com/lathonez/clicker/pull/62) update to Ionic 2.0.0.beta.3 ([f2f66d9](https://github.com/lathonez/clicker/commit/f2f66d9)) - - -# 0.10.1 (2016-03-22) - -### Bug Fixes - -* **Deps**: Merge PR [#60](https://github.com/lathonez/clicker/pull/60) missing `gulp-util` ([4398038](https://github.com/lathonez/clicker/commit/4398038)) - - -# 0.10.0 (2016-03-18) - -### Bug Fixes - -* **E2E**: Use sendKeys workaround to send delayed keystrokes for randomly failing e2e ([642973d](https://github.com/lathonez/clicker/commit/642973d)) -* **Build**: Merge PR [#56](https://github.com/lathonez/clicker/pull/56) remove `;` ([9ecdbf4](https://github.com/lathonez/clicker/commit/9ecdbf4)) - -### Features - -* **Travis**: Testing e2e in Travis ([4a6f5eb](https://github.com/lathonez/clicker/commit/4a6f5eb)) -* **Unit Test**: DOM test skeleton for @Page Clicker List ([65bf5d5](https://github.com/lathonez/clicker/commit/65bf5d5)) - - -# 0.9.0 (2016-03-12) - -### Features - -* **Build**: Hook into Ionic's gulpfile directly and remove ionic-app-lib ([6a4b17c](https://github.com/lathonez/clicker/commit/6a4b17c)) - - -# 0.8.0 (2016-03-11) - -### Features - -* **E2E**: Merge PR [#50](https://github.com/lathonez/clicker/pull/50) containing e2e tests with protractor ([440d463](https://github.com/lathonez/clicker/commit/440d463)) - - -# 0.7.0 (2016-03-09) - -### Bug Fixes - -* **Update**: Fixing CSS references broken in upgrade (again) ([40d682c](https://github.com/lathonez/clicker/commit/40d682c)) - -### Features - -* **Update**: Upgrade deps (angular2, etc) to latest Ionic 2.0.0.beta.2 ([1e9cc11](https://github.com/lathonez/clicker/commit/1e9cc11)) -* **E2E**: Starting groundwork for e2e testing based on ng2 seed ([36572b6](https://github.com/lathonez/clicker/commit/36572b6)) - - -# 0.6.1 (2016-03-06) - -### Bug Fixes - -* **Build**: Count source and target files in buildlocker rather than relying on existance of a specific file in the target ([6137fd8](https://github.com/lathonez/clicker/commit/6137fd8)) - - -# 0.6.0 (2016-03-05) - -### Bug Fixes - -* **Travis**: Ionic Framework .beta.18 was broken on Travis ([#24](https://github.com/lathonez/clicker/issues/24)), upgrade to .19 ([6003691](https://github.com/lathonez/clicker/commit/6003691)) -* **Update**: Upgrade angular2 to beta.9 which supports typescript 1.8.* ([#9](https://github.com/lathonez/clicker/issues/9) ([d46f017]) - -### Features - -* **Build**: Using Ionic's build tools in `ionic-app-lib` ([9005006](https://github.com/lathonez/clicker/commit/9005006)) -* **Unit Test**: Enable form tests again after our PR is merged into Ionic ([#12](https://github.com/lathonez/clicker/issues/12)) ([aa726486](https://github.com/lathonez/clicker/commit/aa726486)) -* **Build**: Improve workaround for `ionic-angular/index` by creating own references in `ionic-angular.js` ([#27](https://github.com/lathonez/clicker/issues/27)) ([21ba465](https://github.com/lathonez/clicker/commit/21ba465)) - - -# 0.5.1 (2016-03-03) - -### Bug Fixes - -* **Update**: Update webpack css font reference ([#28](https://github.com/lathonez/clicker/pull/28)) ([c333f56](https://github.com/lathonez/clicker/commit/c333f56)) - - -# 0.5.0 (2016-03-02) - -### Features - -* **Build**: Move conifg to `./test` ([#27](https://github.com/lathonez/clicker/issues/26)) ([f78363d](https://github.com/lathonez/clicker/commit/f78363d)) -* **Update**: Update to Ionic 2.0.0.beta.1 ([#25](https://github.com/lathonez/clicker/issues/25)) ([67bad59](https://github.com/lathonez/clicker/commit/67bad59)) -* **Build**: Use Cordova Hooks to prevent test files from ending up inside the apk ([82be26a](https://github.com/lathonez/clicker/commit/82be26a)) - - -# 0.4.0 (2016-02-25) - -### Bug Fixes - -* **Deps**: Use explicit versioning in npm ([#17]](https://github.com/lathonez/clicker/issues/17)) ([90f677d](https://github.com/lathonez/clicker/commit/90f677d)) - -### Features - -* **Deps**: Dependency Badge ([#13](https://github.com/lathonez/clicker/issues/13)) ([b30e24d](https://github.com/lathonez/clicker/commit/b30e24d)) -* **Deps**: Migrate from tsd to typings ([#10](https://github.com/lathonez/clicker/issues/10)) ([120c02e](https://github.com/lathonez/clicker/commit/120c02e)) -* **Build**: Move spec to source directory ([#11](https://github.com/lathonez/clicker/issues/11)) ([3d3650f4](https://github.com/lathonez/clicker/commit/3d3650f4)) - - -# 0.3.1 (2016-02-24) - -### Bug Fixes - -* **Build**: Merge PR [#8](https://github.com/lathonez/clicker/pull/8) Fixing test file name ([f524bcf](https://github.com/lathonez/clicker/commit/f524bcf)) - - -# 0.3.0 (2016-02-19) - -### Bug Fixes - -* **Unit Test**: Previously using a bunch of hacks accessing private control variables ([cc5c0a5](https://github.com/lathonez/clicker/commit/cc5c0a5)) -* **App**: Need to use one or the other when typing ([cc2d919](https://github.com/lathonez/clicker/commit/cc2d919)) - -### Features - -* **App**: Update tslint to enforce strict typing and change typescript to be strictly typed ([cc2d919](https://github.com/lathonez/clicker/commit/cc2d919)) - - -# 0.2.0 (2016-02-18) - -### Bug Fixes - -* **Unit Test**: Misconfiguration in Karma ([5af7958](https://github.com/lathonez/clicker/commit/5af7958)) -* **Unit Test**: Previously using toBeDefined, but they will always be defined! ([d8e1cf5](https://github.com/lathonez/clicker/commit/d8e1cf5)) - -### Features - -* **Unit Test**: Using Angular2's DI to test component's in the DOM ([07f60bf](https://github.com/lathonez/clicker/commit/07f60bf)) -* **App**: Utility function should be placed in `.catch` in any promise to debug errors ([0621169](https://github.com/lathonez/clicker/commit/07f60bf)) - - -# 0.1.0 (2016-02-17) - -### Bug Fixes - -* **Update**: CSS was broken in Ionic upgrade ([98c13c4](https://github.com/lathonez/clicker/commit/98c13c4)) -* **Update**: Icons were broken in Ionic upgrade ([c954c15](https://github.com/lathonez/clicker/commit/c954c15)) - -### Features - -* **Update**: Upgrade deps (angular2, etc) to Ionic 2.0.0.beta.0 ([830ae8b](https://github.com/lathonez/clicker/commit/830ae8b)) -* **App**: Adding MIT License ([a3475cf](https://github.com/lathonez/clicker/commit/a3475cf)) - - -# 0.0.1 (2016-01-08) - -### Features - -* **App**: ([f8865b0](https://github.com/lathonez/clicker/commit/f8865b0)) -* **Travis**: Build and deploy using Travis CI ([fb045f6](https://github.com/lathonez/clicker/commit/fb045f6)) -* **Unit Test**: Initial unit test set up now working ([04a1028](https://github.com/lathonez/clicker/commit/04a1028)) -* **App**: Clickers functionality including local storage ([9d04f8d](https://github.com/lathonez/clicker/commit/9d04f8d)) -* **App**: Skeleton app using `ionic start --v2 --ts clickers` ([8bde84f](https://github.com/lathonez/clicker/commit/8bde84f)) diff --git a/app/LICENSE b/app/LICENSE deleted file mode 100644 index 424fc94..0000000 --- a/app/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2015-2016 Stephen Hazleton - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/app/README.md b/app/README.md index 0e327b7..f8c949a 100644 --- a/app/README.md +++ b/app/README.md @@ -1,73 +1,24 @@ -## Ionic 2 Demo / Seed Project : Karma + Protractor + Travis -[![Build Status](https://travis-ci.org/lathonez/clicker.svg?branch=master)](https://travis-ci.org/lathonez/clicker) [![Build status](https://ci.appveyor.com/api/projects/status/github/lathonez/clicker?svg=true)](https://ci.appveyor.com/project/lathonez/clicker) [![codecov.io](https://codecov.io/github/lathonez/clicker/coverage.svg?branch=master)](https://codecov.io/github/lathonez/clicker?branch=master) [![Code Climate](https://codeclimate.com/github/lathonez/clicker/badges/gpa.svg)](https://codeclimate.com/github/lathonez/clicker) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) [![Dependency Status](https://david-dm.org/lathonez/clicker/status.svg)](https://david-dm.org/lathonez/clicker) [![devDependency Status](https://david-dm.org/lathonez/clicker/dev-status.svg)](https://david-dm.org/lathonez/clicker#info=devDependencies) -

- -

+[![Build Status](https://travis-ci.org/bitpay/insight-ui.svg?branch=ionic)](https://travis-ci.org/bitpay/insight-ui) +[![codecov.io](https://codecov.io/github/bitpay/insight-ui/coverage.svg?branch=ionic)](https://codecov.io/github/bitpay/insight-ui?branch=ionic) -## Ionic's official repo - -Ionic have created an official unit testing example over at [driftyco/ionic-unit-testing-example](https://github.com/driftyco/ionic-unit-testing-example). To understand why this repo still exists, see [#239](https://github.com/lathonez/clicker/issues/239), where we looked at deprecating `clicker` in favour of `ionic-unit-testing-example`. - -Broadly, the official example repo: - -* Is not mature or production ready -* Is intended as a simple example only / will not be supported by Ionic -* Does not support e2e -* Does not use `@angular/cli` and thus lacks testing support from the wider ng2 community - -For ~large or production projects, I suggest using clicker. For small apps / side projects the official example should suffice. +# Insight UI ## Install & Start - -You need to be running [the latest node LTS](https://nodejs.org/en/download/) or newer +You need to be running [the latest node LTS](https://nodejs.org/en/download/) or newer. ```bash -git clone https://github.com/lathonez/clicker.git -cd clicker +git clone https://github.com/bitpay/insight-ui.git +cd insight-ui/app npm install -npm start # start the application (ionic serve) +npm start ``` -Running as root? You probably shouldn't be. If you need to: `npm run postinstall` before `npm start`. [#111](https://github.com/lathonez/clicker/issues/111) for more info. - ## Run Unit Tests ```bash -npm test # run unit tests +npm test ``` ## Run E2E ``` npm run e2e ``` - -## Blog Topics - -* [Unit testing walkthrough](http://lathonez.com/2017/ionic-2-unit-testing/) -* [E2E testing walkthrough](http://lathonez.com/2017/ionic-2-e2e-testing/) -* [Removing assets from the APK](http://lathonez.com/2016/cordova-remove-assets/) - -## Contribute -PRs are welcome, see the [roadmap sticky](https://github.com/lathonez/clicker/issues/38) - -## Help - -* If you can't get the testing working, raise an issue -* If you have a general question about unit testing (e.g. how can I write a unit test for `some-module`), see [#191](https://github.com/lathonez/clicker/issues/191) - -## Acks - -* This started out as a fork of [Angular 2 Seed](https://github.com/mgechev/angular2-seed) and would not be possible without it -* @bengro for the lightweightify inspiration (#68) -* @ric9176 and @DanielaGSB for E2E tests (#50) -* @tja4472 for the ngrx implementation (#133) -* [Everyone else](https://github.com/lathonez/clicker/graphs/contributors) for the advice, help, PRs etc - -## Changelog - -See the changelog [here](https://github.com/lathonez/clicker/blob/master/CHANGELOG.md) - -## Updated for: - -* **@angular/*:** 4.1.2 -* **@angular/cli:**: 1.0.6 -* **@ionic-angular:** 3.3.0 diff --git a/app/appveyor.yml b/app/appveyor.yml deleted file mode 100644 index 9f3c9c7..0000000 --- a/app/appveyor.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Test against this version of Node.js -environment: - nodejs_version: "6.5" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install -g cordova@6.4.0 ionic@3.2.0 - - npm install - -build: none - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - # run tests - - npm run test-ci - - npm run postinstall # this shouldn't be necessary, but it is - - npm run e2e - diff --git a/app/config.xml b/app/config.xml deleted file mode 100644 index cd962c7..0000000 --- a/app/config.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Clicker - An awesome Ionic/Cordova app. - Stephen Hazleton - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/ionic.config.json b/app/ionic.config.json deleted file mode 100644 index 19a581a..0000000 --- a/app/ionic.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "clicker", - "app_id": "f0281363", - "type": "ionic-angular" -} diff --git a/app/package.json b/app/package.json index 3bdb664..84bf140 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,6 @@ { - "name": "Clicker", - "author": "Stephen Hazleton", - "homepage": "https://github.com/lathonez/clicker", + "name": "insight-ui", + "version": "0.5.0", "private": true, "scripts": { "clean": "ionic-app-scripts clean", @@ -9,13 +8,12 @@ "ionic:build": "ionic-app-scripts build", "ionic:serve": "ionic-app-scripts serve", "e2e": "ionic-app-scripts build && protractor", - "postinstall": "mkdirp www && cordova prepare && webdriver-manager update", + "postinstall": "mkdirp www && webdriver-manager update", "start": "ionic serve", "test": "ng test", "test-coverage": "ng test --code-coverage", - "test-ci": "ng test --watch=false --code-coverage" + "test-ci": "ng test --watch=false --code-coverage && npm run e2e" }, - "version": "2.15.0", "dependencies": { "@angular/common": "4.1.2", "@angular/compiler": "4.1.2", @@ -58,19 +56,5 @@ "tslint-eslint-rules": "3.2.3", "typescript": "2.3.3" }, - "cordovaPlugins": [ - "cordova-plugin-whitelist", - "cordova-plugin-console", - "cordova-plugin-statusbar", - "cordova-plugin-device", - "cordova-plugin-splashscreen", - "ionic-plugin-keyboard" - ], - "cordovaPlatforms": [], - "repository": { - "type": "git", - "url": "https://github.com/lathonez/clicker.git" - }, - "license": "MIT", - "description": "Clicker: An Ionic project" + "license": "MIT" }