Tips and Tricks
Less than 1 minute
Keep packages up to-date
Fusion Framework is a mono repo, which means all packages are built in relation. Normally this would not cause issue, but good practice is to have all framework packages on the same build.
install npm-check-updates globally
npm install -g npm-check-updates
update all packages related to Fusion Framework
ncu -i -f /fusion-framework/ -t latest
Linting code
React
POJ
name: Lint project files
on: [pull_request]
jobs:
eslint:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install Node Dependencies
run: npm ci
- name: Save Code Linting Report JSON
# "lint:report": "eslint --output-file eslint-report.log.json --format json ./src/**"
run: npm run lint:report
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@1.2.0
with:
repo-token: "${{ github.token }}"
report-json: "eslint-report.log.json"
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint-report.log.json
path: eslint-report.log.json