package.json 2.06 KB
Newer Older
Des Holmes's avatar
init  
Des Holmes committed
1
2
3
4
5
6
{
  "name": "dholmes.co.uk-blog-frontend-code-quality-example",
  "version": "0.1.0",
  "description": "Example frontend development code quality repo for the blog post: https://dholmes.co.uk/blog/frontend-development-code-quality/",
  "repository": "https://github.com/desholmes/dholmes.co.uk-blog-frontend-code-quality-example",
  "scripts": {
Des Holmes's avatar
Des Holmes committed
7
    "audit": "npm audit --audit-level=high",
Des Holmes's avatar
init  
Des Holmes committed
8
9
10
11
12
13
14
15
    "clean": "rm -rf ./dist/*.css ./dist/*.map ./dist/*.html ./dist/*.js ./dist/*.jpg ./dist/*.png ./dist/*.ico",
    "build": "npm run clean && parcel build ./src/index.html",
    "build-serve": "http-server dist/",
    "lint": "./node_modules/.bin/eslint --max-warnings=0 --ext=js src",
    "lint-fix": "./node_modules/.bin/eslint --max-warnings=0 --fix --ext=js src",
    "prettier": "./node_modules/.bin/prettier --check ./src/",
    "prettier-fix": "./node_modules/.bin/prettier --write ./src/",
    "prettier-lint-fix": "npm run prettier-fix && npm run lint-fix",
Des Holmes's avatar
Des Holmes committed
16
    "start": "./node_modules/.bin/parcel ./src/index.html",
Des Holmes's avatar
Des Holmes committed
17
18
19
20
    "test": "jest --coverage ./src/modules/**/*.test.js",
    "test-ci": "jest --reporters=jest-junit --coverage=true  --coverageDirectory=./coverage --coverageReporters=cobertura html --testResultsProcessor=./node_modules/jest-html-reporter --bail=true",
    "test-cov-serve": "http-server coverage/",
    "test-report-serve": "http-server test-report.html",
Des Holmes's avatar
init  
Des Holmes committed
21
22
23
24
25
    "test-watch": "jest --watchAll"
  },
  "author": "Des Holmes https://github.com/desholmes",
  "license": "MIT",
  "devDependencies": {
Des Holmes's avatar
Des Holmes committed
26
27
28
29
30
31
32
33
34
    "@babel/core": "^7.15.8",
    "@babel/preset-env": "^7.15.8",
    "@parcel/transformer-sass": "^2.0.0-rc.0",
    "eslint": "^7.32.0",
    "eslint-config-airbnb-base": "^14.2.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-import": "^2.24.2",
    "eslint-plugin-jest": "^25.0.6",
    "http-server": "^13.0.2",
Des Holmes's avatar
init  
Des Holmes committed
35
    "jest": "27.2.5",
Des Holmes's avatar
Des Holmes committed
36
37
    "jest-html-reporter": "^3.4.1",
    "jest-junit": "^13.0.0",
Des Holmes's avatar
Des Holmes committed
38
39
    "parcel": "^2.0.0-rc.0",
    "prettier": "^2.1.2"
Des Holmes's avatar
Des Holmes committed
40
41
42
43
44
  },
  "jest": {
    "moduleNameMapper": {
      "\\.(css|scss)$": "<rootDir>/src/__mocks__/styleMock.js"
    }
Des Holmes's avatar
init  
Des Holmes committed
45
46
  }
}