Skip to content

Commit

Permalink
Merge pull request microsoft#1 from annakocheshkova/assets-customvisi…
Browse files Browse the repository at this point in the history
…onapp

Customvision app + Assets module
  • Loading branch information
patniko authored Jun 8, 2018
2 parents 345a93d + e5f9abb commit 3212ff6
Show file tree
Hide file tree
Showing 222 changed files with 13,268 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@ localization/unzip/
.classpath

/Configure

sdk/gradle/wrapper/gradle-wrapper\.jar

sdk/gradle/wrapper/gradle-wrapper\.properties

sdk/gradlew

sdk/gradlew\.bat
1 change: 1 addition & 0 deletions apps/customvision/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
116 changes: 116 additions & 0 deletions apps/customvision/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}"
},
{
"name": "Python: Attach",
"type": "python",
"request": "attach",
"localRoot": "${workspaceFolder}",
"remoteRoot": "${workspaceFolder}",
"port": 3000,
"secret": "my_secret",
"host": "localhost"
},
{
"name": "Python: Terminal (integrated)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "Python: Terminal (external)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "externalTerminal"
},
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver",
"--noreload",
"--nothreading"
],
"debugOptions": [
"RedirectOutput",
"Django"
]
},
{
"name": "Python: Flask (0.11.x or later)",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "${workspaceFolder}/app.py"
},
"args": [
"run",
"--no-debugger",
"--no-reload"
]
},
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "module.name"
},
{
"name": "Python: Pyramid",
"type": "python",
"request": "launch",
"args": [
"${workspaceFolder}/development.ini"
],
"debugOptions": [
"RedirectOutput",
"Pyramid"
]
},
{
"name": "Python: Watson",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/console.py",
"args": [
"dev",
"runserver",
"--noreload=True"
]
},
{
"name": "Python: All debug Options",
"type": "python",
"request": "launch",
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"module": "module.name",
"env": {
"VAR1": "1",
"VAR2": "2"
},
"envFile": "${workspaceFolder}/.env",
"args": [
"arg1",
"arg2"
],
"debugOptions": [
"RedirectOutput"
]
}
]
}
3 changes: 3 additions & 0 deletions apps/customvision/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\python.exe"
}
1 change: 1 addition & 0 deletions apps/customvision/CodePushNodeJs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions apps/customvision/CodePushNodeJs/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\CodePushRelease.js"
}
]
}
27 changes: 27 additions & 0 deletions apps/customvision/CodePushNodeJs/CodePushRelease.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
var CodePush = require("code-push");

if (process.argv.length < 7)
throw Error('usage: node CodePushRelease.js <app center access token> <app name> <deployment name> <update contents path> <target binary version>');

let accessKey = process.argv[2];
let appName = process.argv[3];
let deploymentName = process.argv[4];
let updateContentsPath = process.argv[5];
let targetBinaryVersion = process.argv[6];
let updateMetadata = {};
let codePush = new CodePush(accessKey);

codePush.release(appName, deploymentName, updateContentsPath, targetBinaryVersion, updateMetadata)
.then(result => {
console.log('release result:');
console.dir(result);
},
error => {
console.log('failed to release:');
console.dir(error);
if (error.statusCode = 409) {
console.log(error.message); // The uploaded package was not released because it is identical to the contents of the specified deployment's current release
} else {
process.exit(1);
}
});
Loading

0 comments on commit 3212ff6

Please sign in to comment.