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