Files
nebula.js/.github/scripts/nebula_create.sh
renovate[bot] c6edb201b8 fix(deps): update dependency @qlik/api to ^2.8.0 (#2003)
* fix(deps): update dependency @qlik/api to ^2.8.0

* chore: update playwright

* chore: move the playwright install in test-create

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: caele <tsm@qlik.com>
2026-05-19 16:55:49 +02:00

40 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
PROJECT_NAME="$1"
PICASSO_TEMPLATE="${2:-none}"
MASHUP="${3:-false}"
INSTALL="${4:-false}"
BUILD="${5:-true}"
TEST="${6:-true}"
if [ "$MASHUP" = "true" ]; then
echo "Create mashup project"
./commands/cli/lib/index.js create mashup "$PROJECT_NAME" --install "$INSTALL" --pkgm yarn
else
echo "Create project based on Picasso template"
./commands/cli/lib/index.js create "$PROJECT_NAME" --picasso "$PICASSO_TEMPLATE" --install "$INSTALL" --pkgm yarn
fi
touch "$PROJECT_NAME"/yarn.lock
echo "Yarn"
YARN_ENABLE_HARDENED_MODE=0 yarn
echo "Linking packages"
cd "$PROJECT_NAME"
yarn link ../../apis/stardust
yarn link ../../commands/cli
yarn link ../../commands/serve
yarn link ../../commands/build
echo "Log node_modules/@nebula.js"
ls -la node_modules/@nebula.js
if [ "$BUILD" = "true" ]; then
yarn run build
fi
if [ "$TEST" = "true" ]; then
echo "Installing Playwright browser for this generated project"
if [ "${CI:-false}" = "true" ]; then
yarn playwright install chromium --with-deps
else
yarn playwright install chromium
fi
yarn run test:e2e
fi