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 12, 2023
1 parent 788d029 commit c858d19
Show file tree
Hide file tree
Showing 61 changed files with 561 additions and 81 deletions.
14 changes: 14 additions & 0 deletions samples/app-checkin-location/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);
});
20 changes: 11 additions & 9 deletions samples/app-checkin-location/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 @@ -28,13 +29,14 @@
"isomorphic-fetch": "^3.0.0",
"memorystorage": "^0.12.0"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/app-complete-auth/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);
});
20 changes: 11 additions & 9 deletions samples/app-complete-auth/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 @@ -31,13 +32,14 @@
"multer": "^1.4.4",
"restify": "~8.5.1"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.15"
}
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.15",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/app-complete-sample/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/app-complete-sample/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 Down Expand Up @@ -39,6 +40,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/app-hello-world/nodejs/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['src/app.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/app-hello-world/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Microsoft Teams Hello World sample app written in ES6 with Bot Framework v4 SDK",
"scripts": {
"start": "nodemon --exec babel-node src/app.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node build.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,6 +38,7 @@
"del": "^5.1.0",
"gulp": "^3.9.1",
"gulp-zip": "^5.0.1",
"nodemon": "^2.0.3"
"nodemon": "^2.0.3",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/app-installation-using-qr-code/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);
});
20 changes: 11 additions & 9 deletions samples/app-installation-using-qr-code/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 @@ -28,13 +29,14 @@
"isomorphic-fetch": "^3.0.0",
"memorystorage": "^0.12.0"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/app-link-unfurling-in-share-to-teams/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);
});
20 changes: 11 additions & 9 deletions samples/app-link-unfurling-in-share-to-teams/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 @@ -28,13 +29,14 @@
"isomorphic-fetch": "^3.0.0",
"memorystorage": "^0.12.0"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.15"
}
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "^2.0.15",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/bot-adaptive-card-actions/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);
});
20 changes: 11 additions & 9 deletions samples/bot-adaptive-card-actions/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 @@ -28,13 +29,14 @@
"isomorphic-fetch": "^3.0.0",
"memorystorage": "^0.12.0"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
14 changes: 14 additions & 0 deletions samples/bot-all-cards/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/bot-all-cards/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 @@ -29,6 +30,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/bot-archive-groupchat-messages/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);
});
20 changes: 11 additions & 9 deletions samples/bot-archive-groupchat-messages/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 @@ -24,13 +25,14 @@
"isomorphic-fetch": "^3.0.0",
"restify": "^10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4",
"esbuild": "^0.18.1"
}
}
Loading

0 comments on commit c858d19

Please sign in to comment.