Skip to content

Commit

Permalink
add scripts (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Apr 13, 2024
1 parent e36ccf1 commit 01d8f90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
build-and-analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v4
- run: npm install
- run: npm test
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down
3 changes: 0 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ useTabs: false
# js and ts rules:
arrowParens: avoid

# jsx and tsx rules:
jsxBracketSameLine: false

plugins:
- prettier-plugin-java

Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"scripts": {
"preinstall-ci": "npm run replace-version",
"install-ci": "./mvnw -ntp clean install -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true --batch-mode",
"install-jar": "./mvnw install -Dgpg.skip=true",
"prettier:check": "prettier --check .",
"prettier:format": "prettier --write .",
"replace-version": "test-integration/scripts/10-replace-version-jhipster.sh",
"test": "npm run prettier:check"
},
"devDependencies": {
"prettier": "3.2.5",
"prettier-plugin-java": "2.6.0"
},
"scripts": {
"prettier:check": "prettier --check .",
"prettier:format": "prettier --write ."
}
}

0 comments on commit 01d8f90

Please sign in to comment.