- Updated package.json scripts to include separate unit and integration tests before building. - Added a new script `test-build-test` to run tests before and after the build process. - Introduced a new local CI/CD script for streamlined local development and testing. - Refactored PlayerTab component to normalize skills data structure and added tooltips for Space Marine and Power Armour abilities. - Added named export for Tooltip in DeathwatchRoller for reuse in other components.
77 lines
2.6 KiB
JSON
Executable File
77 lines
2.6 KiB
JSON
Executable File
{
|
|
"name": "deathwatch-roller",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"bcrypt": "^5.1.0",
|
|
"better-sqlite3": "^12.2.0",
|
|
"cors": "^2.8.5",
|
|
"express": "^5.1.0",
|
|
"pdf-parse": "^1.1.1",
|
|
"pdfjs-dist": "^4.8.69",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"sqlite3": "^5.1.7",
|
|
"web-vitals": "^2.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "npm test && react-scripts start",
|
|
"dev": "npm test && react-scripts start",
|
|
"build": "npm run test:unit && npm run test:integration && react-scripts build && npm run test:unit",
|
|
"test-build-test": "npm run test:unit && npm run test:integration && npm run build && npm run test:unit",
|
|
"test": "jest --runInBand --passWithNoTests",
|
|
"test:unit": "jest --runInBand --passWithNoTests --testPathPattern=src/tests",
|
|
"test:integration": "npm run pm2:start && sleep 1 && jest --runInBand --passWithNoTests --testPathPattern=tests && npm run pm2:stop",
|
|
"deploy:build": "npm run build && npm run pm2:start && npm run pm2:reload",
|
|
"eject": "react-scripts eject",
|
|
"serve": "npm test && serve -s build",
|
|
"extract:armoury": "node scripts/extract-armoury.js \"$PWD/Deathwatch-Core-Rulebook.pdf\" public/deathwatch-armoury.json",
|
|
"server": "npm test && cd database && node server.js",
|
|
"server:notest": "cd database && node server.js",
|
|
"db:sqlite": "cd database && ./switch-db.sh sqlite",
|
|
"pm2:start": "cd database && pm2 start pm2.config.js --env production --update-env",
|
|
"pm2:stop": "pm2 stop deathwatch-server || true",
|
|
"pm2:reload": "cd database && pm2 reload pm2.config.js --env production --update-env",
|
|
"prestart": "",
|
|
"preserver": ""
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest",
|
|
"prettier"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.1",
|
|
"autoprefixer": "^10.4.14",
|
|
"axios": "^1.11.0",
|
|
"babel-loader": "^10.0.0",
|
|
"cheerio": "^1.1.2",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"html-webpack-plugin": "^5.6.4",
|
|
"node-fetch": "^2.7.0",
|
|
"postcss": "^8.4.23",
|
|
"prettier-eslint": "^16.4.2",
|
|
"react-scripts": "^5.0.1",
|
|
"tailwindcss": "^3.3.2",
|
|
"webpack-dev-server": "^5.2.2",
|
|
"pm2": "^5.2.0"
|
|
}
|
|
}
|