|
5 | 5 |
|
6 | 6 | - name: Install packages with yarn |
7 | 7 | yarn: |
8 | | - executable: "{{ __galaxy_major_version is version('25.1', '>=') | ternary('corepack ', '') }}yarn --network-timeout 300000 --check-files" |
| 8 | + executable: "yarn --network-timeout 300000 --check-files" |
9 | 9 | path: "{{ galaxy_server_dir }}/client" |
10 | 10 | environment: |
11 | 11 | PATH: "{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
12 | 12 | VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
| 13 | + when: __galaxy_major_version is version('26.0', '<') |
| 14 | + |
| 15 | +- name: Install packages with pnpm |
| 16 | + command: "pnpm install" |
| 17 | + args: |
| 18 | + chdir: "{{ galaxy_server_dir }}/client" |
| 19 | + environment: |
| 20 | + PATH: "{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
| 21 | + VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
| 22 | + when: __galaxy_major_version is version('26.0', '>=') |
13 | 23 |
|
14 | 24 | - name: Ensure deconstructed build is supported |
15 | 25 | assert: |
|
19 | 29 | fail_msg: "Deconstructed client build is not supported for Galaxy version {{ __galaxy_major_version }}, please set 'galaxy_client_make_target'" |
20 | 30 |
|
21 | 31 | - name: Run gulp # noqa no-changed-when |
22 | | - command: "{{ __galaxy_major_version is version('25.1', '>=') | ternary('corepack ', '') }}yarn run gulp {{ item }}" |
| 32 | + command: "yarn run gulp {{ item }}" |
23 | 33 | args: |
24 | 34 | chdir: "{{ galaxy_server_dir }}/client" |
25 | 35 | with_items: "{{ galaxy_client_build_steps[__galaxy_major_version] | default(galaxy_client_build_steps.default) }}" |
26 | 36 | environment: |
27 | 37 | PATH: "{{ galaxy_server_dir }}/client/node_modules/.bin:{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
28 | 38 | VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
29 | 39 | NODE_ENV: "{{ galaxy_client_node_env }}" |
| 40 | + when: __galaxy_major_version is version('26.0', '<') |
| 41 | + |
| 42 | +- name: Build plugins # noqa no-changed-when |
| 43 | + command: "pnpm run plugins" |
| 44 | + args: |
| 45 | + chdir: "{{ galaxy_server_dir }}/client" |
| 46 | + environment: |
| 47 | + PATH: "{{ galaxy_server_dir }}/client/node_modules/.bin:{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
| 48 | + VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
| 49 | + NODE_ENV: "{{ galaxy_client_node_env }}" |
| 50 | + when: __galaxy_major_version is version('26.0', '>=') |
30 | 51 |
|
31 | 52 | - name: Run webpack # noqa no-changed-when |
32 | | - command: "{{ __galaxy_major_version is version('25.1', '>=') | ternary('corepack ', '') }}yarn run webpack{{ (galaxy_client_node_env == 'production') | ternary('-production', '') }}" |
| 53 | + command: "yarn run webpack{{ (galaxy_client_node_env == 'production') | ternary('-production', '') }}" |
| 54 | + args: |
| 55 | + chdir: "{{ galaxy_server_dir }}/client" |
| 56 | + environment: |
| 57 | + PATH: "{{ galaxy_server_dir }}/client/node_modules/.bin:{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
| 58 | + VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
| 59 | + NODE_OPTIONS: --max_old_space_size=8192 |
| 60 | + when: __galaxy_major_version is version('26.0', '<') |
| 61 | + |
| 62 | +- name: Run client build # noqa no-changed-when |
| 63 | + command: "pnpm run build-production" |
33 | 64 | args: |
34 | 65 | chdir: "{{ galaxy_server_dir }}/client" |
35 | 66 | environment: |
36 | 67 | PATH: "{{ galaxy_server_dir }}/client/node_modules/.bin:{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
37 | 68 | VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
38 | 69 | NODE_OPTIONS: --max_old_space_size=8192 |
| 70 | + SKIP_VIZ: "1" |
| 71 | + when: __galaxy_major_version is version('26.0', '>=') |
39 | 72 |
|
40 | 73 | - name: Stage built client |
41 | | - command: "{{ __galaxy_major_version is version('25.1', '>=') | ternary('corepack ', '') }}yarn run stage-build" |
| 74 | + command: "yarn run stage-build" |
42 | 75 | args: |
43 | 76 | chdir: "{{ galaxy_server_dir }}/client" |
44 | 77 | environment: |
45 | 78 | PATH: "{{ galaxy_server_dir }}/client/node_modules/.bin:{{ galaxy_venv_dir }}/bin:{{ ansible_env.PATH }}" |
46 | 79 | VIRTUAL_ENV: "{{ galaxy_venv_dir }}" |
47 | | - when: "__galaxy_major_version is version('23.0', '>=')" |
| 80 | + when: __galaxy_major_version is version('23.0', '>=') and __galaxy_major_version is version('26.0', '<') |
0 commit comments