Lapanti/ts-react-boilerplate

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "ts-react-boilerplate",
  "version": "0.0.2",
  "description": "A very opinionated (React/TypeScript/Redux/etc) frontend boilerplate",
  "main": "dist/index.js",
  "author": "Lapanti",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Lapanti/ts-react-boilerplate.git"
  },
  "bugs": {
    "url": "https://github.com/Lapanti/ts-react-boilerplate/issues"
  },
  "homepage": "https://github.com/Lapanti/ts-react-boilerplate#README.md",
  "jest": {
    "snapshotSerializers": [
      "<rootDir>/node_modules/enzyme-to-json/serializer"
    ],
    "transform": {
      ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
    },
    "testRegex": "(/__specs__/.*|\\.(spec))\\.(ts|tsx)$",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js"
    ],
    "setupTestFrameworkScriptFile": "<rootDir>/src/jest/setup.js"
  },
  "scripts": {
    "precommit": "lint-staged",
    "prepush": "yarn test",
    "lint:sass": "sass-lint 'src/**/*.scss' -v --max-warnings 1",
    "lint:ts": "tslint --project tsconfig.json",
    "test": "concurrently --kill-others-on-fail -p \"{name}\" -n \"SASS-LINT,TS-LINT,JEST\" -c \"bgBlue,bgMagenta,bgCyan\" \"yarn lint:sass\" \"yarn lint:ts\" \"jest\"",
    "test:update": "jest --updateSnapshot",
    "test:watch": "jest --watch",
    "test:ci": "yarn lint:sass && yarn lint:ts && jest --runInBand --forceExit --coverage",
    "clean": "rm -rf dist",
    "develop": "yarn clean && webpack-dev-server -d --env=dev --colors --port 9966",
    "build:server": "webpack -d --env=server -p --colors",
    "build:client": "webpack -d --env=prod --colors",
    "build": "yarn clean && concurrently --kill-others-on-fail -p \"{name}\" -n \"SERVER,CLIENT\" -c \"bgBlue,bgMagenta\" \"yarn build:server\" \"yarn build:client\"",
    "start": "cd dist && NODE_ENV=production node server.js",
    "docs:clean": "rm -rf _book",
    "docs:prepare": "gitbook install",
    "docs:watch": "gitbook serve",
    "docs:build": "yarn docs:prepare && gitbook build -g Lapanti/ts-react-boilerplate",
    "docs:publish": "yarn docs:clean && yarn docs:build && cp CNAME _book && cd _book && git init && git commit --allow-empty -m \"Update book\" && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am \"Update book\" && git push git@github.com:Lapanti/ts-react-boilerplate gh-pages --force"
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "prettier --single-quote --print-width 120 --tab-width 4 --trailing-comma all --write",
      "git add"
    ],
    "*.scss": [
      "prettier --single-quote --print-width 120 --tab-width 4 --write",
      "git add"
    ]
  },
  "dependencies": {
    "@types/react-router-redux": "^5.0.11",
    "express": "^4.16.2",
    "history": "^4.7.2",
    "http-status-enum": "^1.0.2",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-redux": "^5.0.6",
    "react-router-dom": "^4.2.2",
    "react-router-redux": "^5.0.0-alpha.9",
    "redux": "^3.7.2",
    "redux-observable": "^0.17.0",
    "rxjs": "^5.5.6"
  },
  "devDependencies": {
    "@types/express": "^4.11.0",
    "@types/history": "^4.6.2",
    "@types/jest": "^22.0.1",
    "@types/nock": "^9.1.1",
    "@types/react": "^16.0.34",
    "@types/react-dom": "^16.0.3",
    "@types/react-hot-loader": "^3.0.5",
    "@types/react-redux": "^5.0.14",
    "@types/react-router-dom": "^4.2.3",
    "awesome-typescript-loader": "^4.0.0",
    "babel": "^6.23.0",
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.0",
    "babel-loader": "^7.1.2",
    "babel-preset-env": "^1.6.1",
    "concurrently": "^3.5.1",
    "copy-webpack-plugin": "^4.3.1",
    "coveralls": "^3.0.0",
    "css-loader": "^0.28.8",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.0",
    "extract-text-webpack-plugin": "^3.0.2",
    "gitbook-cli": "^2.3.2",
    "gitbook-plugin-advanced-emoji": "^0.2.2",
    "gitbook-plugin-anker-enable": "^0.0.4",
    "gitbook-plugin-edit-link": "^2.0.2",
    "gitbook-plugin-github": "^3.0.0",
    "gitbook-plugin-prism": "^2.3.0",
    "gitbook-plugin-theme-default": "^1.0.7",
    "husky": "^0.14.3",
    "jest": "^22.0.5",
    "lint-staged": "^7.0.0",
    "nock": "^9.1.6",
    "node-sass": "^4.7.2",
    "prettier": "^1.10.2",
    "react-hot-loader": "^4.0.0",
    "react-test-renderer": "^16.2.0",
    "sass-lint": "^1.12.1",
    "sass-loader": "^6.0.6",
    "source-map-loader": "^0.2.3",
    "style-loader": "^0.20.0",
    "ts-jest": "^22.0.1",
    "tslint": "^5.8.0",
    "tslint-config-prettier": "^1.6.0",
    "tslint-react": "^3.3.3",
    "typescript": "^2.6.2",
    "webpack": "^4.0.0",
    "webpack-dev-server": "^3.0.0"
  }
}