Skip to content

Commit

Permalink
feat: Package Phpactor with composer (#59)
Browse files Browse the repository at this point in the history
* Use packaged phpactor in vendor and remove update option.

* Update CI steps to include composer, add vsce ignore file.

* Remove obsolete npm scripts
  • Loading branch information
zobo authored Oct 26, 2023
1 parent db66a74 commit a9d375c
Show file tree
Hide file tree
Showing 9 changed files with 3,981 additions and 74 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
node-version: '16.14.2'
- run: mkdir artifacts
- run: npm ci
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer
- name: Composer Install
run: composer install --prefer-dist --no-interaction --optimize-autoloader --no-dev
- name: Prettier
run: npm run prettier-check
- name: Lint
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ jobs:
with:
node-version: 14
- run: mkdir artifacts
- run: npm install
- run: npm build
- run: npm ci
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer
- name: Composer Install
run: composer install --prefer-dist --no-interaction --optimize-autoloader --no-dev
- run: npm compile
- name: Package
run: npx vsce package --out=artifacts/phpactor.vsix ${{ github.event.release.tag_name }}
- name: 'Release Extension'
uses: actions/upload-release-asset@v1
env:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
out
node_modules
.vscode-test
artifacts/*
out/
node_modules/
.vscode-test/
artifacts/
vendor/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode-test/
coverage/
out/
vendor/
package-lock.json
package.json
15 changes: 15 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.github/**
.vscode/**
.vscode-test/**
images/**
!images/logo.png
out/test/**
src/**
.gitignore
.npmignore
.prettierignore
vendor/bin/**
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"phpactor/phpactor": "2023.08.06-1"
}
}
Loading

0 comments on commit a9d375c

Please sign in to comment.