Skip to content

Commit

Permalink
"download:unzip:copy": "gulp 0-download && gulp 1-decompress && gulp …
Browse files Browse the repository at this point in the history
…3-copy-to-repos",
  • Loading branch information
mikepsinn committed Nov 16, 2019
1 parent 3d17434 commit fcc05e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
25 changes: 18 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const sdksReposPath = './sdk-repos';
let languages = [
"akka-scala",
"android",
"async-scala",
//"async-scala",
"csharp",
"CsharpDotNet2",
//"CsharpDotNet2",
"dart",
"dynamic-html",
"flash",
Expand All @@ -54,7 +54,7 @@ let languages = [
"swift",
"tizen",
"typescript-angular",
"typescript-angular2",
//"typescript-angular2",
//"typescript-fetch",
"typescript-node"
];
Expand Down Expand Up @@ -499,7 +499,19 @@ function commitChanges(language, filesToResetArray){
' && git push origin ' + apiVersionNumber);
}
function resetPackageJsonAndReadme(){
const command = "cd " + getRepoPathForSdkLanguage(language) + ' && git checkout package.json && git checkout README.md';
var toReset = [
'package.json',
'README.md',
'qmHelpers.js',
'qmChrome.js',
'psychedelic-loader.js',
'popup.js',
'ionIcons.js'
];
var command = "cd " + getRepoPathForSdkLanguage(language);
toReset.forEach(function(file){
command += " && git checkout "+file;
});
executeCommand(command);
}
gulp.task('5-commit-changes', [], function(){
Expand All @@ -511,14 +523,13 @@ gulp.task('5-commit-changes', [], function(){
}
});
try {
var Quantimodo = require('quantimodo');
authenticateQuantiModoSdk();
} catch (error) {
logError(error);
}
let defaultClient;
function authenticateQuantiModoSdk() {
defaultClient = Quantimodo.ApiClient.instance;
var Quantimodo = require('quantimodo');
let defaultClient = Quantimodo.ApiClient.instance;
if(process.env.APP_HOST_NAME){defaultClient.basePath = process.env.APP_HOST_NAME + '/api';}
const quantimodo_oauth2 = defaultClient.authentications['quantimodo_oauth2'];
const clientId = defaultClient.authentications['client_id'];
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"download:unzip:copy": "gulp 0-download && gulp 1-decompress && gulp 3-copy-to-repos",
"test": "gulp check-responses",
"postinstall": "",
"prepare": "gulp clean-folders-and-clone-repos",
Expand Down

0 comments on commit fcc05e0

Please sign in to comment.