From b39fec93120c00b6f18206a12475ea09b920c08e Mon Sep 17 00:00:00 2001 From: tonis Date: Mon, 25 Mar 2024 17:11:42 +0200 Subject: [PATCH] replace bower with npm dependency --- .github/workflows/php.yml | 3 +++ package.json | 7 +++++++ src/QueryBuilderAsset.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 package.json diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 4d6404a..d37a404 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -27,6 +27,9 @@ jobs: restore-keys: | ${{ runner.os }}-php- + - name: Install npm dependencies + run: yarn install + - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/package.json b/package.json new file mode 100644 index 0000000..da43b88 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "yii2-jquery-querybuilder", + "version": "1.0.0", + "dependencies": { + "jQuery-QueryBuilder": "^3.0.0" + } +} diff --git a/src/QueryBuilderAsset.php b/src/QueryBuilderAsset.php index f467322..bad511e 100644 --- a/src/QueryBuilderAsset.php +++ b/src/QueryBuilderAsset.php @@ -11,7 +11,7 @@ */ class QueryBuilderAsset extends AssetBundle { - public $sourcePath = '@bower/jquery-querybuilder/dist'; + public $sourcePath = '@npm/jQuery-QueryBuilder/dist'; /** * @var string[]