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 bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
#set -o xtrace | |
version=$1 | |
cmd_base='yo @microsoft/sharepoint --solutionName spfx --component-name HelloWorld --component-description HelloWorld --skip-install' | |
cmd_v1_1="$cmd_base --no-skip-feature-deployment" |
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
// Use Chrome browser to debug SharePoint Framework React webpart with Visual Studio Code on Windows | |
// - Install "Debugger for Chrome" extension | |
// - Add this configuration to the launch.json | |
// - Close all Chrome browser active instances | |
// - Start the SPFx nodejs server by executing "gulp serve" | |
// - Go to VS Code debug view (top menu -> View -> Debug) | |
// - Hit the play (start debugging) button | |
// Happy debugging! | |
// Full guides | |
// http://blog.velingeorgiev.pro/how-debug-sharepoint-framework-webpart-visual-studio-code |
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
.PHONY: run | |
# certs and output | |
OUTPUT_FILE=apkname.apk | |
ALIAS=youralias | |
KEYPASS=yourkeypass | |
KEYSTORE=certs/yourcert.keystore | |
UNSIGNED=platforms/android/build/outputs/apk/android-release-unsigned.apk | |
# or, if you're using Crosswalk: |
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
angular.module('app').factory('dbService', [ | |
'$q', function($q) { | |
return { | |
init: function() { | |
var deferred = $q.defer(); | |
var request = indexedDB.open("db"); | |
request.onupgradeneeded = function() { | |
// The database did not previously exist, so create object stores and indexes. |