Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ function createBuildTask(args?: { platform: TPlatform; env: TBuild; config: stri
? ['(function () {\nvar module = undefined;\n', '})();']
: null
),
createConcatTask(
getFileName('sentry-vendors.js', env as TBuild),
meta.sentryVendors,
join(outputPath, 'js')
),
createConcatTask(
getFileName('vendor-styles.css', env as TBuild),
meta.stylesheets,
Expand Down
1 change: 1 addition & 0 deletions scripts/htmlTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function getScriptsList(input: string) {

return [
filesMap['vendors'],
filesMap['sentry-vendors'],
filesMap['bundle'],
filesMap['templates']
];
Expand Down
1 change: 1 addition & 0 deletions ts-scripts/interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Stream } from 'stream';

export interface IMetaJSON {
vendors: Array<string>;
sentryVendors: Array<string>;
exportPageVendors: Array<string>;
stylesheets: Array<string>;
domain: string;
Expand Down
5 changes: 4 additions & 1 deletion ts-scripts/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"vendors": [
"node_modules/@waves/bignumber/dist/bignumber.umd.js",
"node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js",
"node_modules/@sentry/browser/build/bundle.min.js",
"node_modules/@waves/oracle-data/dist/oracle-data.min.js",
"node_modules/parse-json-bignumber/dist/parse-json-bignumber.min.js",
"node_modules/worker-wrapper/dist/WorkerWrapper.min.js",
Expand Down Expand Up @@ -39,6 +38,9 @@
"node_modules/i18next/dist/umd/i18next.js",
"node_modules/n3-charts/build/LineChart.min.js"
],
"sentryVendors": [
"node_modules/@sentry/browser/build/bundle.min.js"
],
"exportPageVendors": [
"node_modules/ts-utils/dist/ts-utils.min.js",
"node_modules/@waves/waves-browser-bus/dist/browser-bus.min.js"
Expand Down Expand Up @@ -166,6 +168,7 @@
],
"developmentScripts": [
"dist/dev/js/vendors.js",
"dist/dev/js/sentry-vendors.js",
"dist/dev/js/bundle.js",
"dist/dev/js/templates.js"
],
Expand Down
3 changes: 2 additions & 1 deletion ts-scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ export function getScripts(param: IPrepareHTMLOptions, pack, meta) {
const sourceFiles = getFilesFrom(join(__dirname, '../src'), '.js', function (name, path) {
return !name.includes('.spec') && !path.includes('/test/');
});
const sentryScripts = meta.sentryVendors.map((i) => join(__dirname, '..', i));
const cacheKiller = `?v${pack.version}`;
scripts = meta.vendors.map((i) => join(__dirname, '..', i)).concat(sourceFiles);
scripts = meta.vendors.map((i) => join(__dirname, '..', i)).concat(sentryScripts).concat(sourceFiles);
meta.debugInjections.forEach((path) => {
scripts.unshift(join(__dirname, '../', path));
});
Expand Down