This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, h } from '@stencil/core'; | |
import { initFirebase } from '../../helpers/firebase'; | |
@Component({ | |
tag: 'app-root', | |
styleUrl: 'app-root.css' | |
}) | |
export class AppRoot { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Module run with $ionicPlatform.ready() as promise', function () { | |
'use strict'; | |
var ionicPlatform; | |
var readyThenCallbackFn; | |
beforeEach(function () { | |
module('ngViews'); | |
module('swMobileApp', function ($provide) { | |
$provide.value('$ionicPlatform', { | |
// Or like this for ready callback | |
//ready: jasmine.createSpy('$ionicPlatform.ready').and.callFake(function (callbackFn) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install --save-dev karma-ng-html2js-preprocessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary --user-data-dir=/Users/$USER/Library/Application\\ Support/Google/ChromeCanaryTestUnsecure --new-window --window-position=0,0 --window-size=1440,900 --incognito --disable-web-security -–allow-file-access-from-files > /dev/null 2>&1 &" | |
delay 1 | |
tell application "Google Chrome Canary" | |
activate | |
tell application "System Events" to keystroke "j" using {command down, option down} | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var connect = require('gulp-connect'); | |
var sass = require('gulp-sass'); | |
var paths = { | |
sassEntryPointFile: './scss/main.scss', | |
sassInputFiles: ['./scss/**/*.scss'], | |
cssOutputFolder: './css/', | |
htmlInputFiles: ['./manage/**/*.html'] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-app", | |
"private": "true", | |
"devDependencies": { | |
"ionic": "driftyco/ionic-bower#1.0.0-rc.2", | |
"angular-mocks": "~1.3.15" | |
}, | |
"resolutions": { | |
"angular": "1.3.13" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Building Ionic/Cordova iOS release..." | |
ionic build --release ios | |
# Save current directory and cd to other dir | |
pushd platforms/ios/ | |
# Build archive | |
xcodebuild -scheme "MyApp" -configuration Release clean archive | |
# Can also specify archive path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FINAL_BINARY_FILEPATH="platforms/android/build/outputs/apk/wakatime-android-release-signed.apk" | |
echo "*** Build Ionic release for Android ***" | |
rm $FINAL_BINARY_FILEPATH | |
ionic build --release android | |
echo "Signing APK..." | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/Dropbox/WakaTime/Build/Android/wakatime.keystore -storepass $WAKATIME_STOREPASS platforms/android/build/outputs/apk/android-release-unsigned.apk android | |
echo "Optimizing APK (zipalign)..." | |
~/Library/Android/sdk/build-tools/23.0.3/zipalign -v -f 4 platforms/android/build/outputs/apk/android-release-unsigned.apk $FINAL_BINARY_FILEPATH | |
# echo "Opening APK..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Building Ionic/Cordova iOS release..." | |
ionic build --release ios | |
export DEVICES=`ios-sim showdevicetypes 2>&1` | |
export DEVICES=\"`echo $DEVICES | sed -e 's/ com./" "com./g' | sed -e 's/, /,~/g'`\" | |
PS3='Please enter your choice: ' | |
options=($DEVICES) | |
app="`find ./platforms/ios/build/emulator/ -name *.app -print`" | |
escaped_app="\"$app\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// This plugin replaces text in a file with the app version from config.xml. | |
var wwwFileToReplace = "js/build.js"; | |
var fs = require('fs'); | |
var path = require('path'); | |
var rootdir = process.argv[2]; |
NewerOlder