Skip to content

Commit

Permalink
Implementing Esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Harikrishnan-MSFT committed Jun 13, 2023
1 parent 2624fb3 commit cbe8d8c
Show file tree
Hide file tree
Showing 44 changed files with 381 additions and 28 deletions.
14 changes: 14 additions & 0 deletions samples/meetings-attendance-report/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/meetings-attendance-report/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -34,6 +35,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.7"
"nodemon": "^2.0.7",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/meetings-events/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['server/index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/meetings-events/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server/index.js",
"watch": "nodemon server/index.js",
"build": "node build.js",
"lint": "eslint .",
"server": "npm install && node server/index.js",
"manifest": "del \"appPackage\\appPackage.zip\" 2> nul && powershell Compress-Archive appPackage/* appPackage/appPackage.zip"
Expand All @@ -33,6 +34,7 @@
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1"
"eslint-plugin-standard": "^4.0.1",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/meetings-live-caption/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/meetings-live-caption/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -35,6 +36,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.7"
"nodemon": "^2.0.7",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/meetings-notification/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/meetings-notification/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -38,7 +39,8 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
},
"bugs": {
"url": "https://github.com/Microsoft/BotBuilder-Samples/issues"
Expand Down
14 changes: 14 additions & 0 deletions samples/meetings-transcription/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/meetings-transcription/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -37,6 +38,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.7"
"nodemon": "^2.0.7",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-action-preview/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/msgext-action-preview/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -27,6 +28,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-action-quickstart/js/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
6 changes: 4 additions & 2 deletions samples/msgext-action-quickstart/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"main": "index.js",
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js"
"watch": "nodemon ./index.js",
"build": "node build.js"
},
"dependencies": {
"botbuilder": "^4.18.0",
"dotenv": "^8.0.0",
"express": "~4.17.1",
"html-entities": "^1.3.1"
"html-entities": "^1.3.1",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-action/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/msgext-action/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -36,6 +37,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-link-unfurling/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/msgext-link-unfurling/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -27,6 +28,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-message-reminder/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/msgext-message-reminder/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -36,6 +37,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-search-quickstart/js/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
6 changes: 4 additions & 2 deletions samples/msgext-search-quickstart/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"main": "index.js",
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js"
"watch": "nodemon ./index.js",
"build": "node build.js"
},
"dependencies": {
"botbuilder": "^4.18.0",
"dotenv": "^8.0.0",
"express": "~4.17.1",
"html-entities": "^1.3.1"
"html-entities": "^1.3.1",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/msgext-search-sso-config/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
outfile: 'dist/index.js'
})
.then((r) => {
console.log(`Build succeeded.`);
})
.catch((e) => {
console.log("Error building:", e.message);
process.exit(1);
});
4 changes: 3 additions & 1 deletion samples/msgext-search-sso-config/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "node ./index.js",
"watch": "nodemon ./index.js",
"build": "node build.js",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -30,6 +31,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
Loading

0 comments on commit cbe8d8c

Please sign in to comment.