|
568 | 568 | "{projectRoot}/artifacts/js/dx.custom.debug.js" |
569 | 569 | ] |
570 | 570 | }, |
571 | | - "bundle:debug:headers": { |
| 571 | + "bundle:headers": { |
572 | 572 | "executor": "devextreme-nx-infra-plugin:add-license-headers", |
573 | 573 | "options": { |
574 | 574 | "targetDirectory": "./artifacts/js", |
|
580 | 580 | "dx.*.debug.js" |
581 | 581 | ] |
582 | 582 | }, |
| 583 | + "configurations": { |
| 584 | + "prod": { |
| 585 | + "includePatterns": [ |
| 586 | + "dx.all.js", |
| 587 | + "dx.web.js", |
| 588 | + "dx.viz.js", |
| 589 | + "dx.ai-integration.js" |
| 590 | + ] |
| 591 | + } |
| 592 | + }, |
583 | 593 | "inputs": [ |
584 | | - "{projectRoot}/artifacts/js/dx.*.debug.js", |
| 594 | + "{projectRoot}/artifacts/js/dx.*.js", |
585 | 595 | "{projectRoot}/build/gulp/license-header.txt" |
586 | 596 | ], |
587 | 597 | "outputs": [ |
588 | | - "{projectRoot}/artifacts/js/dx.*.debug.js" |
| 598 | + "{projectRoot}/artifacts/js/dx.*.js" |
589 | 599 | ] |
590 | 600 | }, |
591 | 601 | "bundle:debug": { |
592 | 602 | "executor": "nx:run-commands", |
593 | 603 | "options": { |
594 | 604 | "commands": [ |
595 | 605 | "pnpm nx bundle:debug:build devextreme", |
596 | | - "pnpm nx bundle:debug:headers devextreme" |
| 606 | + "pnpm nx bundle:headers devextreme" |
597 | 607 | ], |
598 | 608 | "parallel": false |
599 | 609 | }, |
|
613 | 623 | "{projectRoot}/artifacts/js/dx.custom.debug.js" |
614 | 624 | ] |
615 | 625 | }, |
| 626 | + "bundle:prod:build": { |
| 627 | + "executor": "devextreme-nx-infra-plugin:bundle", |
| 628 | + "options": { |
| 629 | + "entries": [ |
| 630 | + "bundles/dx.ai-integration.js", |
| 631 | + "bundles/dx.all.js", |
| 632 | + "bundles/dx.web.js", |
| 633 | + "bundles/dx.viz.js" |
| 634 | + ], |
| 635 | + "sourceDir": "./artifacts/transpiled-renovation-npm", |
| 636 | + "outDir": "./artifacts/js", |
| 637 | + "mode": "production", |
| 638 | + "webpackConfigPath": "./webpack.config.js" |
| 639 | + }, |
| 640 | + "inputs": [ |
| 641 | + { |
| 642 | + "env": "BUILD_TEST_INTERNAL_PACKAGE" |
| 643 | + }, |
| 644 | + "{projectRoot}/artifacts/transpiled-renovation-npm/bundles/**/*", |
| 645 | + "{projectRoot}/artifacts/transpiled-renovation-npm/**/*.js", |
| 646 | + "{projectRoot}/webpack.config.js" |
| 647 | + ], |
| 648 | + "outputs": [ |
| 649 | + "{projectRoot}/artifacts/js/dx.all.js", |
| 650 | + "{projectRoot}/artifacts/js/dx.web.js", |
| 651 | + "{projectRoot}/artifacts/js/dx.viz.js", |
| 652 | + "{projectRoot}/artifacts/js/dx.ai-integration.js" |
| 653 | + ] |
| 654 | + }, |
616 | 655 | "bundle:prod": { |
617 | 656 | "executor": "nx:run-commands", |
618 | 657 | "options": { |
619 | | - "command": "gulp js-bundles-prod", |
620 | | - "cwd": "{projectRoot}" |
| 658 | + "commands": [ |
| 659 | + "pnpm nx bundle:prod:build devextreme", |
| 660 | + "pnpm nx bundle:headers devextreme -c prod" |
| 661 | + ], |
| 662 | + "parallel": false |
621 | 663 | }, |
622 | 664 | "inputs": [ |
623 | 665 | { |
624 | 666 | "env": "BUILD_TEST_INTERNAL_PACKAGE" |
625 | 667 | }, |
626 | | - "{projectRoot}/artifacts/transpiled/**/*", |
627 | | - "{projectRoot}/artifacts/transpiled-esm/**/*", |
628 | | - "{projectRoot}/build/gulp/js-bundles.js", |
629 | | - "{projectRoot}/webpack.config.js" |
| 668 | + "{projectRoot}/artifacts/transpiled-renovation-npm/**/*", |
| 669 | + "{projectRoot}/webpack.config.js", |
| 670 | + "{projectRoot}/build/gulp/license-header.txt" |
630 | 671 | ], |
631 | 672 | "outputs": [ |
632 | 673 | "{projectRoot}/artifacts/js/dx.all.js", |
633 | | - "{projectRoot}/artifacts/js/dx.all.js.map" |
| 674 | + "{projectRoot}/artifacts/js/dx.web.js", |
| 675 | + "{projectRoot}/artifacts/js/dx.viz.js", |
| 676 | + "{projectRoot}/artifacts/js/dx.ai-integration.js" |
634 | 677 | ] |
635 | 678 | }, |
636 | 679 | "build:vectormap": { |
|
0 commit comments