|
1 | 1 | {
|
2 | 2 | "name": "webpack-react-typescript-template",
|
3 |
| - "version": "1.0.0", |
4 |
| - "description": "Template for create react app using webpack and typescript", |
| 3 | + "version": "2.0.0", |
| 4 | + "license": "MIT", |
| 5 | + "description": "Modern template to start creating react app using webpack and typescript.", |
5 | 6 | "keywords": [
|
6 | 7 | "react",
|
7 | 8 | "typescript",
|
8 | 9 | "webpack",
|
9 | 10 | "react-router",
|
| 11 | + "styled-components", |
10 | 12 | "i18next",
|
11 | 13 | "eslint",
|
12 | 14 | "prettier",
|
13 | 15 | "husky",
|
14 | 16 | "commitlint"
|
15 | 17 | ],
|
16 |
| - "author": "Martik Avagyan <martikavagyan1@gmail.com> (https://github.com/m-avagyan)", |
| 18 | + "author": "Martik Avagyan <dev@martikavagyan.com> (https://github.com/m-avagyan)", |
17 | 19 | "homepage": "https://github.com/m-avagyan/webpack-react-typescript-template#readme",
|
18 | 20 | "repository": {
|
19 | 21 | "type": "git",
|
|
23 | 25 | "url": "https://github.com/m-avagyan/webpack-react-typescript-template/issues"
|
24 | 26 | },
|
25 | 27 | "scripts": {
|
26 |
| - "start": "webpack serve --progress --mode development", |
27 |
| - "clean": "rm -rf ./build", |
28 |
| - "build": "yarn clean && webpack --progress --mode production", |
29 |
| - "lint": "yarn eslint src --ext .js,.ts,.tsx --ignore-pattern '!.*.js' --no-error-on-unmatched-pattern", |
30 |
| - "lint:fix": "yarn lint --fix" |
| 28 | + "clean": "rm -rf ./dist", |
| 29 | + "prepare-icons": "node prepare-icons.js", |
| 30 | + "build": "webpack --progress --mode production", |
| 31 | + "analyze": "webpack --progress --mode production --env analyze", |
| 32 | + "dev": "yarn webpack serve --progress --mode none", |
| 33 | + "start": "yarn webpack serve --progress --mode development", |
| 34 | + "watch": "yarn webpack serve --progress --mode production", |
| 35 | + "lint": "eslint src --ext .js,.ts,.tsx --ignore-pattern '!.*.js'", |
| 36 | + "format": "yarn lint --fix", |
| 37 | + "postinstall": "husky install" |
| 38 | + }, |
| 39 | + "dependencies": { |
| 40 | + "i18next": "^21.9.2", |
| 41 | + "i18next-browser-languagedetector": "^6.1.5", |
| 42 | + "i18next-resources-to-backend": "^1.0.0", |
| 43 | + "react": "^18.2.0", |
| 44 | + "react-dom": "^18.2.0", |
| 45 | + "react-router-dom": "5.3.3", |
| 46 | + "styled-components": "^5.3.6" |
31 | 47 | },
|
32 | 48 | "devDependencies": {
|
33 |
| - "@babel/core": "^7.19.1", |
34 |
| - "@babel/preset-env": "^7.19.1", |
| 49 | + "@babel/core": "^7.20.12", |
| 50 | + "@babel/preset-env": "^7.20.2", |
35 | 51 | "@babel/preset-react": "^7.18.6",
|
36 | 52 | "@babel/preset-typescript": "^7.18.6",
|
37 |
| - "@commitlint/cli": "^17.1.1", |
38 |
| - "@commitlint/config-conventional": "^17.1.0", |
39 |
| - "@svgr/webpack": "^6.3.1", |
40 |
| - "@types/react": "^17.0.1", |
41 |
| - "@types/react-dom": "^17.0.1", |
42 |
| - "@typescript-eslint/eslint-plugin": "4.0.1", |
43 |
| - "@typescript-eslint/parser": "4.0.1", |
44 |
| - "babel-loader": "^8.2.5", |
45 |
| - "css-loader": "^6.7.1", |
46 |
| - "eslint": "^7.26.0", |
47 |
| - "eslint-plugin-jsx-a11y": "^6.4.1", |
48 |
| - "eslint-plugin-prettier": "^3.4.0", |
49 |
| - "eslint-plugin-react": "^7.23.2", |
50 |
| - "eslint-plugin-react-hooks": "^4.2.0", |
| 53 | + "@commitlint/cli": "^17.4.4", |
| 54 | + "@commitlint/config-conventional": "^17.4.4", |
| 55 | + "@svgr/webpack": "^6.5.1", |
| 56 | + "@trivago/prettier-plugin-sort-imports": "^4.0.0", |
| 57 | + "@types/node": "^18.11.18", |
| 58 | + "@types/react": "^18.0.27", |
| 59 | + "@types/react-dom": "^18.0.10", |
| 60 | + "@types/react-i18next": "^8.1.0", |
| 61 | + "@types/react-router-dom": "^5.3.3", |
| 62 | + "@types/styled-components": "^5.1.26", |
| 63 | + "@typescript-eslint/eslint-plugin": "^5.49.0", |
| 64 | + "@typescript-eslint/parser": "^5.49.0", |
| 65 | + "babel-loader": "^9.1.2", |
| 66 | + "babel-plugin-styled-components": "^2.0.7", |
| 67 | + "copy-webpack-plugin": "^11.0.0", |
| 68 | + "css-loader": "^6.7.3", |
| 69 | + "dotenv-webpack": "^8.0.1", |
| 70 | + "esbuild-loader": "^2.21.0", |
| 71 | + "eslint": "^8.32.0", |
| 72 | + "eslint-plugin-jsx-a11y": "^6.7.1", |
| 73 | + "eslint-plugin-prettier": "^4.2.1", |
| 74 | + "eslint-plugin-react": "^7.32.1", |
| 75 | + "eslint-plugin-react-hooks": "^4.6.0", |
51 | 76 | "file-loader": "^6.2.0",
|
52 | 77 | "html-webpack-plugin": "^5.5.0",
|
53 | 78 | "husky": "^8.0.0",
|
54 |
| - "lint-staged": "^13.0.3", |
55 |
| - "prettier": "^2.3.0", |
| 79 | + "mini-css-extract-plugin": "^2.7.2", |
| 80 | + "postcss": "^8.4.31", |
| 81 | + "postcss-loader": "^7.0.2", |
| 82 | + "postcss-preset-env": "^7.8.3", |
| 83 | + "prettier": "^2.8.3", |
56 | 84 | "style-loader": "^3.3.1",
|
57 |
| - "ts-loader": "^9.4.1", |
58 |
| - "typescript": "^4.8.2", |
59 |
| - "webpack": "^5.74.0", |
60 |
| - "webpack-cli": "^4.10.0", |
| 85 | + "ts-loader": "^9.4.2", |
| 86 | + "typescript": "^4.9.4", |
| 87 | + "webpack": "^5.76.0", |
| 88 | + "webpack-bundle-analyzer": "^4.8.0", |
| 89 | + "webpack-cli": "^5.0.1", |
61 | 90 | "webpack-dev-server": "^4.11.1"
|
62 | 91 | },
|
63 |
| - "dependencies": { |
64 |
| - "i18next": "^21.9.2", |
65 |
| - "i18next-browser-languagedetector": "^6.1.5", |
66 |
| - "i18next-resources-to-backend": "^1.0.0", |
67 |
| - "react": "^17.0.1", |
68 |
| - "react-dom": "^17.0.1", |
69 |
| - "react-i18next": "^11.18.6", |
70 |
| - "react-router-dom": "^6.4.1" |
71 |
| - }, |
72 |
| - "lint-staged": { |
73 |
| - "*.{js,jsx,ts,tsx}": [ |
74 |
| - "eslint --quiet --cache --fix" |
75 |
| - ], |
76 |
| - "*.{json,js,ts,jsx,tsx,html}": [ |
77 |
| - "prettier --write" |
78 |
| - ] |
79 |
| - }, |
80 |
| - "license": "MIT", |
81 |
| - "private": true, |
82 | 92 | "engines": {
|
83 | 93 | "node": ">=8.0.0",
|
84 | 94 | "npm": ">=6.0.0",
|
|
0 commit comments