Skip to content

Commit 207d26b

Browse files
committed
task: update cli composer.json while building phar
- updated dependncies - updated manifest.json
1 parent e4c14c9 commit 207d26b

File tree

19 files changed

+4237
-1087
lines changed

19 files changed

+4237
-1087
lines changed

bin/build-phar.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
CLI_DIR="src/cli"
5+
6+
composer config repositories.local-etl '{"type": "path", "url": "../core/etl", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
7+
composer config repositories.local-adapter-csv '{"type": "path", "url": "../adapter/etl-adapter-csv", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
8+
composer config repositories.local-adapter-parquet '{"type": "path", "url": "../adapter/etl-adapter-parquet", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
9+
composer config repositories.local-adapter-doctrine '{"type": "path", "url": "../adapter/etl-adapter-doctrine", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
10+
composer config repositories.local-adapter-json '{"type": "path", "url": "../adapter/etl-adapter-json", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
11+
composer config repositories.local-adapter-text '{"type": "path", "url": "../adapter/etl-adapter-text", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
12+
composer config repositories.local-adapter-xml '{"type": "path", "url": "../adapter/etl-adapter-xml", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
13+
composer config repositories.local-adapter-excel '{"type": "path", "url": "../adapter/etl-adapter-excel", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
14+
composer config repositories.local-adapter-chartjs '{"type": "path", "url": "../adapter/etl-adapter-chartjs", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
15+
composer config repositories.local-openapi-specification '{"type": "path", "url": "../bridge/openapi/specification", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
16+
composer config repositories.local-parquet-viewer '{"type": "path", "url": "../lib/parquet-viewer", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
17+
composer config repositories.local-postgresql '{"type": "path", "url": "../lib/postgresql", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
18+
composer config repositories.local-types '{"type": "path", "url": "../lib/types", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
19+
composer config repositories.local-array-dot '{"type": "path", "url": "../lib/array-dot", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
20+
composer config repositories.local-filesystem '{"type": "path", "url": "../lib/filesystem", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
21+
composer config repositories.local-parquet '{"type": "path", "url": "../lib/parquet", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
22+
composer config repositories.local-snappy '{"type": "path", "url": "../lib/snappy", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
23+
composer config repositories.local-doctrine-dbal-bulk '{"type": "path", "url": "../lib/doctrine-dbal-bulk", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
24+
composer config repositories.local-dremel '{"type": "path", "url": "../lib/dremel", "options": {"symlink": false}}' --working-dir="$CLI_DIR"
25+
26+
rm -rf "$CLI_DIR/vendor"
27+
28+
composer update --no-dev --working-dir="$CLI_DIR"
29+
30+
tools/box/vendor/bin/box compile --config "$CLI_DIR/box.json"
31+
32+
composer config repositories --unset --working-dir="$CLI_DIR"
33+
34+
rm -rf "$CLI_DIR/vendor"

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@
442442
"./tools/rector/vendor/bin/rector -c ./rector.tests.php"
443443
],
444444
"build:phar": [
445-
"composer update --working-dir=./src/cli",
446-
"tools/box/vendor/bin/box compile --config ./src/cli/box.json",
445+
"bin/build-phar.sh",
447446
"cp ./build/flow.phar ./web/landing/assets/wasm/tools/flow.phar"
448447
],
449448
"build:wasm": [

0 commit comments

Comments
 (0)