diff --git a/1-Authentication/0-sign-in-vanillajs/.vscode/launch.json b/1-Authentication/0-sign-in-vanillajs/.vscode/launch.json new file mode 100644 index 000000000..199cbe981 --- /dev/null +++ b/1-Authentication/0-sign-in-vanillajs/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceFolder}\\.vscode\\vsCodeLaunchVanillaJsSample.js", + "args": [ + "${input:taskDelay}" + ] + } + ], + "inputs": [ + { + "id": "taskDelay", + "type": "command", + "command": "ms-entra:getScenarioEndTime", + "args": "UserFlowDelay" + } + ] +} diff --git a/1-Authentication/0-sign-in-vanillajs/.vscode/vsCodeLaunchVanillaJsSample.js b/1-Authentication/0-sign-in-vanillajs/.vscode/vsCodeLaunchVanillaJsSample.js new file mode 100644 index 000000000..c2523a5ce --- /dev/null +++ b/1-Authentication/0-sign-in-vanillajs/.vscode/vsCodeLaunchVanillaJsSample.js @@ -0,0 +1,21 @@ +const {exec} = require('child_process'); +const path = require("path"); + +const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now()); + + +setTimeout(() => { + console.log("Running Vanilla JS Sample..."); + + exec('npm install && npm run start', {cwd: path.resolve('.\\App')}, (err, output) => { + // once the command has completed, the callback function is called + if (err) { + // log and return if we encounter an error + console.error("Error on running commands: ", err) + return + } + // log the output received from the command + console.log("Output: \n", output) + }) + }, startDelay +) diff --git a/1-Authentication/1-sign-in-react/.vscode/launch.json b/1-Authentication/1-sign-in-react/.vscode/launch.json index 5aba59fc0..ea6d3374e 100644 --- a/1-Authentication/1-sign-in-react/.vscode/launch.json +++ b/1-Authentication/1-sign-in-react/.vscode/launch.json @@ -1,15 +1,22 @@ -// A launch configuration that compiles the extension and then opens it inside a new window -// 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}\\.vscode\\vsCodeLaunchReactSample.js" - } - ] + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceFolder}\\.vscode\\vsCodeLaunchReactSample.js", + "args": [ + "${input:taskDelay}" + ] + } + ], + "inputs": [ + { + "id": "taskDelay", + "type": "command", + "command": "ms-entra:getScenarioEndTime", + "args": "UserFlowDelay" + } + ] } diff --git a/1-Authentication/1-sign-in-react/.vscode/vsCodeLaunchReactSample.js b/1-Authentication/1-sign-in-react/.vscode/vsCodeLaunchReactSample.js index b6090a253..cf855c75b 100644 --- a/1-Authentication/1-sign-in-react/.vscode/vsCodeLaunchReactSample.js +++ b/1-Authentication/1-sign-in-react/.vscode/vsCodeLaunchReactSample.js @@ -1,12 +1,19 @@ const {exec} = require('child_process'); const path = require("path"); -exec('npm install && npm start',{cwd:path.resolve('.\\SPA')}, (err, output) => { + +const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now()); + +setTimeout(() => { + console.log("Running React Sample..."); + + exec('npm install && npm start', {cwd: path.resolve('.\\SPA')}, (err, output) => { // once the command has completed, the callback function is called if (err) { - // log and return if we encounter an error - console.error("Error on running commands: ", err) - return + // log and return if we encounter an error + console.error("Error on running commands: ", err) + return } // log the output received from the command console.log("Output: \n", output) -}) \ No newline at end of file + }) +}, startDelay) diff --git a/1-Authentication/2-sign-in-angular/.vscode/launch.json b/1-Authentication/2-sign-in-angular/.vscode/launch.json index 1691c89e4..76e9847c1 100644 --- a/1-Authentication/2-sign-in-angular/.vscode/launch.json +++ b/1-Authentication/2-sign-in-angular/.vscode/launch.json @@ -1,14 +1,22 @@ { - // 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}\\.vscode\\vsCodeLaunchAngularSample.js" - } + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceFolder}\\.vscode\\vsCodeLaunchAngularSample.js", + "args": [ + "${input:taskDelay}" + ] + } + ], + "inputs": [ + { + "id": "taskDelay", + "type": "command", + "command": "ms-entra:getScenarioEndTime", + "args": "UserFlowDelay" + } ] -} \ No newline at end of file +} diff --git a/1-Authentication/2-sign-in-angular/.vscode/vsCodeLaunchAngularSample.js b/1-Authentication/2-sign-in-angular/.vscode/vsCodeLaunchAngularSample.js index b6090a253..f32d684dc 100644 --- a/1-Authentication/2-sign-in-angular/.vscode/vsCodeLaunchAngularSample.js +++ b/1-Authentication/2-sign-in-angular/.vscode/vsCodeLaunchAngularSample.js @@ -1,12 +1,18 @@ const {exec} = require('child_process'); const path = require("path"); -exec('npm install && npm start',{cwd:path.resolve('.\\SPA')}, (err, output) => { + +const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now()); + +setTimeout(() => { + console.log("Running Angular JS Sample..."); + exec('npm install && npm start', {cwd: path.resolve('.\\SPA')}, (err, output) => { // once the command has completed, the callback function is called if (err) { - // log and return if we encounter an error - console.error("Error on running commands: ", err) - return + // log and return if we encounter an error + console.error("Error on running commands: ", err) + return } // log the output received from the command console.log("Output: \n", output) -}) \ No newline at end of file + }) +}, startDelay) diff --git a/1-Authentication/6-sign-in-node-cli-app/.vscode/launch.json b/1-Authentication/6-sign-in-node-cli-app/.vscode/launch.json index c65510dd2..2b2175ef9 100644 --- a/1-Authentication/6-sign-in-node-cli-app/.vscode/launch.json +++ b/1-Authentication/6-sign-in-node-cli-app/.vscode/launch.json @@ -1,14 +1,22 @@ { - // 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}\\.vscode\\vsCodeLaunchNodeSample.js" + "program": "${workspaceFolder}\\.vscode\\vsCodeLaunchNodeSample.js", + "args": [ + "${input:taskDelay}" + ] + } + ], + "inputs": [ + { + "id": "taskDelay", + "type": "command", + "command": "ms-entra:getScenarioEndTime", + "args": "UserFlowDelay" } ] -} \ No newline at end of file +} diff --git a/1-Authentication/6-sign-in-node-cli-app/.vscode/vsCodeLaunchNodeSample.js b/1-Authentication/6-sign-in-node-cli-app/.vscode/vsCodeLaunchNodeSample.js index 327f923c8..4c8d8ce6b 100644 --- a/1-Authentication/6-sign-in-node-cli-app/.vscode/vsCodeLaunchNodeSample.js +++ b/1-Authentication/6-sign-in-node-cli-app/.vscode/vsCodeLaunchNodeSample.js @@ -1,12 +1,18 @@ const {exec} = require('child_process'); const path = require("path"); -exec('npm install && npm start',{cwd:path.resolve('.\\App')}, (err, output) => { + +const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now()); + +setTimeout(() => { + console.log("Running Node Sample..."); + exec('npm install && npm start', {cwd: path.resolve('.\\App')}, (err, output) => { // once the command has completed, the callback function is called if (err) { - // log and return if we encounter an error - console.error("Error on running commands: ", err) - return + // log and return if we encounter an error + console.error("Error on running commands: ", err) + return } // log the output received from the command console.log("Output: \n", output) -}) \ No newline at end of file + }) +}, startDelay);