Skip to content

Commit

Permalink
(#412) Copy bootstrap.bundle.min.js
Browse files Browse the repository at this point in the history
Instead of importing Bootstrap into each file,
Bootstap will now be its standalone file that is
copied over to each repository from node_modules.

Due to Bootstrap needing to be used in the global
scope now, this was causing issues with the
eslint and esbuild portions of the build process.
  • Loading branch information
st3phhays committed Sep 4, 2024
1 parent 3d536df commit d12b783
Show file tree
Hide file tree
Showing 32 changed files with 331 additions and 22,099 deletions.
90 changes: 45 additions & 45 deletions CREDITS.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions build/choco-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ const init = async () => {
destination: `${repository.js}theme-toggle.min.js`,
isFolder: false
},
{
task: 'bootstrap.bundle.min.js',
source: 'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js',
destination: `${repository.js}bootstrap.bundle.min.js`,
isFolder: false
},
{
task: `${repository.name}.min.js`,
source: `${repositoryConfig.theme.js}${repository.name}.min.js`,
Expand Down
2,162 changes: 0 additions & 2,162 deletions dist/js/blog.js

Large diffs are not rendered by default.

17 changes: 4 additions & 13 deletions dist/js/blog.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/boxstarter.js

Large diffs are not rendered by default.

21 changes: 7 additions & 14 deletions dist/js/boxstarter.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/community-packages.js

Large diffs are not rendered by default.

245 changes: 119 additions & 126 deletions dist/js/community-packages.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/community.js

Large diffs are not rendered by default.

39 changes: 16 additions & 23 deletions dist/js/community.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/design.js

Large diffs are not rendered by default.

21 changes: 7 additions & 14 deletions dist/js/design.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/docs.js

Large diffs are not rendered by default.

41 changes: 17 additions & 24 deletions dist/js/docs.min.js

Large diffs are not rendered by default.

2,206 changes: 0 additions & 2,206 deletions dist/js/fest.js

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions dist/js/fest.min.js

Large diffs are not rendered by default.

2,162 changes: 0 additions & 2,162 deletions dist/js/org.js

Large diffs are not rendered by default.

67 changes: 30 additions & 37 deletions dist/js/org.min.js

Large diffs are not rendered by default.

2,160 changes: 0 additions & 2,160 deletions dist/js/portal.js

Large diffs are not rendered by default.

21 changes: 7 additions & 14 deletions dist/js/portal.min.js

Large diffs are not rendered by default.

2,207 changes: 0 additions & 2,207 deletions dist/js/zendesk.js

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions dist/js/zendesk.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/blog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/alerts.js';
import './src/callouts.js';
Expand Down
1 change: 0 additions & 1 deletion js/boxstarter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/alerts.js';
import './src/clipboard.js';
Expand Down
1 change: 0 additions & 1 deletion js/community.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/alerts.js';
import './src/announcements.js';
Expand Down
1 change: 0 additions & 1 deletion js/design.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/alerts.js';
import './src/code-copy-for-view.js'; // Purposely put before callouts.js because this script needs to execute first
Expand Down
1 change: 0 additions & 1 deletion js/docs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/alerts.js';
import './src/callouts.js';
Expand Down
1 change: 0 additions & 1 deletion js/fest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import 'lite-youtube-embed';
import './src/alerts.js';
import './src/callouts.js';
Expand Down
1 change: 0 additions & 1 deletion js/org.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import 'add-to-calendar-button';
import balanceText from 'balance-text';
import './src/lib/prism.js';
Expand Down
1 change: 0 additions & 1 deletion js/portal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/lib/prism.js';
import './src/callouts.js';
import './src/ts/code.ts';
Expand Down
1 change: 0 additions & 1 deletion js/zendesk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import './src/inputs.js';
import './src/ts/tables.ts';
import './src/theme-toggle.js';
134 changes: 71 additions & 63 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,13 @@ __metadata:
languageName: node
linkType: hard

"@rtsao/scc@npm:^1.1.0":
version: 1.1.0
resolution: "@rtsao/scc@npm:1.1.0"
checksum: 10c0/b5bcfb0d87f7d1c1c7c0f7693f53b07866ed9fec4c34a97a8c948fb9a7c0082e416ce4d3b60beb4f5e167cbe04cdeefbf6771320f3ede059b9ce91188c409a5b
languageName: node
linkType: hard

"@sindresorhus/is@npm:^5.2.0":
version: 5.6.0
resolution: "@sindresorhus/is@npm:5.6.0"
Expand Down Expand Up @@ -1359,20 +1366,20 @@ __metadata:
linkType: hard

"@types/node@npm:*":
version: 22.5.1
resolution: "@types/node@npm:22.5.1"
version: 22.5.3
resolution: "@types/node@npm:22.5.3"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10c0/35373176d8a1d4e16004a1ed303e68d39e4c6341024dc056f2577982df98c1a045a6b677f12ed557796f09bbf7d621f428f6874cc37ed28f7b336fa604b5f6a6
checksum: 10c0/a068e31dd424a0eadfba7d9a5c5b415b76cfd729f3caa299674ad257f59df85c5fe77f1d0a343e811864c790baefb9003d7627618ee3cf85400af338481ba29f
languageName: node
linkType: hard

"@types/node@npm:^20.14.2":
version: 20.16.2
resolution: "@types/node@npm:20.16.2"
version: 20.16.4
resolution: "@types/node@npm:20.16.4"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10c0/74fac185dbd2c6b301cde75747c1cd6c9ca1ad7266147ea107a798837f40b8a05991177ebd7925fc7450d51334096259d186afad6e0d22864b7c97f8afef6ba7
checksum: 10c0/1dfd24b8a1552adf1f37c189bcebb6e287184852188d8aa28f8e955f15079f8ee62d88f142b6a52c0fd59132fc40644bf6197c139e4e1d645c1db040b231caaa
languageName: node
linkType: hard

Expand Down Expand Up @@ -1770,7 +1777,7 @@ __metadata:
languageName: node
linkType: hard

"array-includes@npm:^3.1.7":
"array-includes@npm:^3.1.8":
version: 3.1.8
resolution: "array-includes@npm:3.1.8"
dependencies:
Expand All @@ -1791,7 +1798,7 @@ __metadata:
languageName: node
linkType: hard

"array.prototype.findlastindex@npm:^1.2.3":
"array.prototype.findlastindex@npm:^1.2.5":
version: 1.2.5
resolution: "array.prototype.findlastindex@npm:1.2.5"
dependencies:
Expand Down Expand Up @@ -2083,9 +2090,9 @@ __metadata:
linkType: hard

"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001646":
version: 1.0.30001653
resolution: "caniuse-lite@npm:1.0.30001653"
checksum: 10c0/7aedf037541c93744148f599daea93d46d1f93ab4347997189efa2d1f003af8eadd7e1e05347ef09261ac1dc635ce375b8c6c00796245fffb4120a124824a14f
version: 1.0.30001655
resolution: "caniuse-lite@npm:1.0.30001655"
checksum: 10c0/fff0c0c3ffcba89828bfa6b99f118e82c064f46f15bb8655b9f2a352a3f552ccac0b87a9fe9532f8c5a29e284aae5579791e196480ec717d11ef1d1a1c2e3ff9
languageName: node
linkType: hard

Expand Down Expand Up @@ -2609,31 +2616,31 @@ __metadata:
linkType: hard

"datatables.net-bs5@npm:^2.0.8":
version: 2.1.4
resolution: "datatables.net-bs5@npm:2.1.4"
version: 2.1.5
resolution: "datatables.net-bs5@npm:2.1.5"
dependencies:
datatables.net: "npm:2.1.4"
datatables.net: "npm:2.1.5"
jquery: "npm:>=1.7"
checksum: 10c0/dabb4f8e9c764dc76e0a3df6b1e1ba195b63ed74bc1c510aefee6125572b67e59f841521264fa31da5503fdb6eea0d6c574165e6b83c01483856a86f4206914b
checksum: 10c0/29b3bedd714d88225e340554cdf08d84a7baff6379d6eafaa898dd3e489a910323a671357d6cccd1ea9dc8bd7be15acaaf9da8809831a0f87b735804d697b7c9
languageName: node
linkType: hard

"datatables.net-dt@npm:^2.0.8":
version: 2.1.4
resolution: "datatables.net-dt@npm:2.1.4"
version: 2.1.5
resolution: "datatables.net-dt@npm:2.1.5"
dependencies:
datatables.net: "npm:2.1.4"
datatables.net: "npm:2.1.5"
jquery: "npm:>=1.7"
checksum: 10c0/8e4eecd7cf575abe3178ddea2d0ed0b5fc42f59247df7b3af6c8f6a1bbfbaf95d0e4f0076a91ac9eee6e4880631fdae488289d7e2cc6a05b460500738dfbf6c0
checksum: 10c0/745d0b002ce717c53b11042719a973aeef48974fc795d76fdf50a46a5b466f29544419f1bb90d73ac7fa9c3909584f76cbd305097fddf0bd0db4aada75785265
languageName: node
linkType: hard

"datatables.net@npm:2.1.4":
version: 2.1.4
resolution: "datatables.net@npm:2.1.4"
"datatables.net@npm:2.1.5":
version: 2.1.5
resolution: "datatables.net@npm:2.1.5"
dependencies:
jquery: "npm:>=1.7"
checksum: 10c0/9e52bd4260a202ce0eb5bfca019714c39c8ada05b0f06d790473c1f493a26c90272f5dc38391fcd735edab4feacc0bdb27c0b910fb2aac97d9bec7e7fcc3d3b4
checksum: 10c0/16ee8845b6f85278d4c86412d63d927f7c1fe120ca0b2c5076a086835384780dde944a038aad87bb3abab63be7f5adaeb91d7f07fcecffdb4ab627ea1b49e84e
languageName: node
linkType: hard

Expand Down Expand Up @@ -3128,15 +3135,15 @@ __metadata:
languageName: node
linkType: hard

"eslint-module-utils@npm:^2.8.0":
version: 2.8.2
resolution: "eslint-module-utils@npm:2.8.2"
"eslint-module-utils@npm:^2.9.0":
version: 2.9.0
resolution: "eslint-module-utils@npm:2.9.0"
dependencies:
debug: "npm:^3.2.7"
peerDependenciesMeta:
eslint:
optional: true
checksum: 10c0/98c5ca95db75507b148c05d157b287116c677bfc9ca6bef4d5455c8b199eb2c35b9204a15ca7a3497085daef8ca3a3f579bd9e753ad4ad4df6256e4ef1107c51
checksum: 10c0/7c45c5b54402a969e99315890c10e9bf8c8bee16c7890573343af05dfa04566d61546585678c413e5228af0550e39461be47e35a8ff0d1863e113bdbb28d1d29
languageName: node
linkType: hard

Expand All @@ -3154,29 +3161,30 @@ __metadata:
linkType: hard

"eslint-plugin-import@npm:^2.29.1":
version: 2.29.1
resolution: "eslint-plugin-import@npm:2.29.1"
version: 2.30.0
resolution: "eslint-plugin-import@npm:2.30.0"
dependencies:
array-includes: "npm:^3.1.7"
array.prototype.findlastindex: "npm:^1.2.3"
"@rtsao/scc": "npm:^1.1.0"
array-includes: "npm:^3.1.8"
array.prototype.findlastindex: "npm:^1.2.5"
array.prototype.flat: "npm:^1.3.2"
array.prototype.flatmap: "npm:^1.3.2"
debug: "npm:^3.2.7"
doctrine: "npm:^2.1.0"
eslint-import-resolver-node: "npm:^0.3.9"
eslint-module-utils: "npm:^2.8.0"
hasown: "npm:^2.0.0"
is-core-module: "npm:^2.13.1"
eslint-module-utils: "npm:^2.9.0"
hasown: "npm:^2.0.2"
is-core-module: "npm:^2.15.1"
is-glob: "npm:^4.0.3"
minimatch: "npm:^3.1.2"
object.fromentries: "npm:^2.0.7"
object.groupby: "npm:^1.0.1"
object.values: "npm:^1.1.7"
object.fromentries: "npm:^2.0.8"
object.groupby: "npm:^1.0.3"
object.values: "npm:^1.2.0"
semver: "npm:^6.3.1"
tsconfig-paths: "npm:^3.15.0"
peerDependencies:
eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
checksum: 10c0/5f35dfbf4e8e67f741f396987de9504ad125c49f4144508a93282b4ea0127e052bde65ab6def1f31b6ace6d5d430be698333f75bdd7dca3bc14226c92a083196
checksum: 10c0/4c9dcb1f27505c4d5dd891d2b551f56c70786d136aa3992a77e785bdc67c9f60200a2c7fb0ce55b7647fe550b12bc433d5dfa59e2c00ab44227791c5ab86badf
languageName: node
linkType: hard

Expand Down Expand Up @@ -3501,12 +3509,12 @@ __metadata:
linkType: hard

"follow-redirects@npm:^1.0.0":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
version: 1.15.8
resolution: "follow-redirects@npm:1.15.8"
peerDependenciesMeta:
debug:
optional: true
checksum: 10c0/9ff767f0d7be6aa6870c82ac79cf0368cd73e01bbc00e9eb1c2a16fbb198ec105e3c9b6628bb98e9f3ac66fe29a957b9645bcb9a490bb7aa0d35f908b6b85071
checksum: 10c0/ffb8f71338000717f6bfefddc3247dda226326f29fdafb9ef32ef67176339a1ae13c419aea837645b58331f94eba6168704149f4d10a8a976687efd2e45131d2
languageName: node
linkType: hard

Expand Down Expand Up @@ -4208,7 +4216,7 @@ __metadata:
languageName: node
linkType: hard

"is-core-module@npm:^2.12.1, is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1":
"is-core-module@npm:^2.12.1, is-core-module@npm:^2.13.0, is-core-module@npm:^2.15.1":
version: 2.15.1
resolution: "is-core-module@npm:2.15.1"
dependencies:
Expand Down Expand Up @@ -5170,7 +5178,7 @@ __metadata:
languageName: node
linkType: hard

"object.fromentries@npm:^2.0.7":
"object.fromentries@npm:^2.0.8":
version: 2.0.8
resolution: "object.fromentries@npm:2.0.8"
dependencies:
Expand All @@ -5182,7 +5190,7 @@ __metadata:
languageName: node
linkType: hard

"object.groupby@npm:^1.0.1":
"object.groupby@npm:^1.0.3":
version: 1.0.3
resolution: "object.groupby@npm:1.0.3"
dependencies:
Expand All @@ -5193,7 +5201,7 @@ __metadata:
languageName: node
linkType: hard

"object.values@npm:^1.1.7":
"object.values@npm:^1.2.0":
version: 1.2.0
resolution: "object.values@npm:1.2.0"
dependencies:
Expand Down Expand Up @@ -5351,9 +5359,9 @@ __metadata:
linkType: hard

"picocolors@npm:^1.0.0, picocolors@npm:^1.0.1":
version: 1.0.1
resolution: "picocolors@npm:1.0.1"
checksum: 10c0/c63cdad2bf812ef0d66c8db29583802355d4ca67b9285d846f390cc15c2f6ccb94e8cb7eb6a6e97fc5990a6d3ad4ae42d86c84d3146e667c739a4234ed50d400
version: 1.1.0
resolution: "picocolors@npm:1.1.0"
checksum: 10c0/86946f6032148801ef09c051c6fb13b5cf942eaf147e30ea79edb91dd32d700934edebe782a1078ff859fb2b816792e97ef4dab03d7f0b804f6b01a0df35e023
languageName: node
linkType: hard

Expand Down Expand Up @@ -6203,13 +6211,13 @@ __metadata:
linkType: hard

"postcss@npm:^8.4.32, postcss@npm:^8.4.35, postcss@npm:^8.4.4, postcss@npm:^8.4.41":
version: 8.4.41
resolution: "postcss@npm:8.4.41"
version: 8.4.45
resolution: "postcss@npm:8.4.45"
dependencies:
nanoid: "npm:^3.3.7"
picocolors: "npm:^1.0.1"
source-map-js: "npm:^1.2.0"
checksum: 10c0/c1828fc59e7ec1a3bf52b3a42f615dba53c67960ed82a81df6441b485fe43c20aba7f4e7c55425762fd99c594ecabbaaba8cf5b30fd79dfec5b52a9f63a2d690
checksum: 10c0/ad6f8b9b1157d678560373696109745ab97a947d449f8a997acac41c7f1e4c0f3ca4b092d6df1387f430f2c9a319987b1780dbdc27e35800a88cde9b606c1e8f
languageName: node
linkType: hard

Expand Down Expand Up @@ -6547,15 +6555,15 @@ __metadata:
linkType: hard

"sass@npm:^1.71.1":
version: 1.77.8
resolution: "sass@npm:1.77.8"
version: 1.78.0
resolution: "sass@npm:1.78.0"
dependencies:
chokidar: "npm:>=3.0.0 <4.0.0"
immutable: "npm:^4.0.0"
source-map-js: "npm:>=0.6.2 <2.0.0"
bin:
sass: sass.js
checksum: 10c0/2bfd62794070352c804f949e69bd8bb5b4ec846deeb924251b2c3f7b503170fb1ae186f513f0166907749eb34e0277dee747edcb78c886fb471aac01be1e864c
checksum: 10c0/6577a87c00b03a5a50f3a11b4b6592f28abce34e61812e381535a3b712151bd94db3ca06467d20395431e0f38a23f99e616d6859d771fb6d4617c359f590c48c
languageName: node
linkType: hard

Expand Down Expand Up @@ -6740,9 +6748,9 @@ __metadata:
linkType: hard

"sortablejs@npm:^1.15.2":
version: 1.15.2
resolution: "sortablejs@npm:1.15.2"
checksum: 10c0/9b9101f47a46976070f1e7ab45d1850a8754f6e71252506868731292af46a7f1a3add03914fe074cd2a6bdfe8cd6cad149cfa260fe8a53475f5306ae679bf38c
version: 1.15.3
resolution: "sortablejs@npm:1.15.3"
checksum: 10c0/dfd79a7dd7041fe1080d58d2191cd4df62cfc9912bbb4069f295fb2c5f23eb31112931614faddce7011d30fe784d26af3416c94182e02bcf4f6274509b60242e
languageName: node
linkType: hard

Expand Down Expand Up @@ -7120,9 +7128,9 @@ __metadata:
linkType: hard

"sweetalert2@npm:^11.12.3":
version: 11.12.4
resolution: "sweetalert2@npm:11.12.4"
checksum: 10c0/bdbd511dbc5dbfc77438289a2709c9e206c7248189f4d0133cf603d3e390fbe5dac638d9373397173889745b2507973610c18aff5f897eec3f3b6121c91727c1
version: 11.13.2
resolution: "sweetalert2@npm:11.13.2"
checksum: 10c0/20fa00f5bc50bdf5759ca362798ed4c03c033fbf65a8b24d629bf2a879bf1309124cfa7cb209b726454536a678858c6e8bd246606327e523546299b42db02c9b
languageName: node
linkType: hard

Expand Down Expand Up @@ -7725,11 +7733,11 @@ __metadata:
linkType: hard

"yaml@npm:^2.4.2":
version: 2.5.0
resolution: "yaml@npm:2.5.0"
version: 2.5.1
resolution: "yaml@npm:2.5.1"
bin:
yaml: bin.mjs
checksum: 10c0/771a1df083c8217cf04ef49f87244ae2dd7d7457094425e793b8f056159f167602ce172aa32d6bca21f787d24ec724aee3cecde938f6643564117bd151452631
checksum: 10c0/40fba5682898dbeeb3319e358a968fe886509fab6f58725732a15f8dda3abac509f91e76817c708c9959a15f786f38ff863c1b88062d7c1162c5334a7d09cb4a
languageName: node
linkType: hard

Expand Down

0 comments on commit d12b783

Please sign in to comment.