Skip to content

Commit

Permalink
chore: update retype to v3.5 (#142)
Browse files Browse the repository at this point in the history
* Updated packages

* Updated retype config to add pro:true
  • Loading branch information
patricklafrance authored Sep 17, 2023
1 parent 45734ad commit c613c7c
Show file tree
Hide file tree
Showing 12 changed files with 1,173 additions and 1,104 deletions.
30 changes: 30 additions & 0 deletions docs/webpack/configure-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,36 @@ Then, open the newly created `index.html` file and copy/paste the following cont

The content of the `public/index.html` file is the default template that will be used by [HtmlWebpackPlugin](https://webpack.js.org/plugins/html-webpack-plugin/).

#### Adding local assets

To link local assets such as a `favicon.png` in the default HTML template, it is recommended to preprend the **relative** path of every asset with the `publicPath` of the webpack config.

First, add the asset to the `public` folder at the root of the project:

``` !#4
web-project
├── public
├──── index.html
├──── favicon.png
├── src
├──── ...
├── package.json
```

Then, add the assets to the `index.html` file:

```html !#4 public/index.html
<!DOCTYPE html>
<html>
<head>
<link href="<%=webpackConfig.output.publicPath%>favicon.png" rel="icon">
</head>
<body>
<div id="root"></div>
</body>
</html>
```

### defineBuildConfig

Next, create a configuration file named `webpack.build.js` at the root of the project:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@typescript-eslint/parser": "6.6.0",
"@typescript-eslint/parser": "6.7.0",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"eslint": "8.49.0",
"jest": "29.6.4",
"jest": "29.7.0",
"prettier": "3.0.3",
"retypeapp": "3.4.1",
"retypeapp": "3.5.0",
"stylelint": "15.10.3",
"ts-node": "10.9.1",
"typescript": "5.2.2"
Expand Down
14 changes: 7 additions & 7 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"build": "tsup"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest": "^27.4.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-mdx": "^2.2.0",
"eslint-plugin-react": "^7.33.2",
Expand All @@ -62,19 +62,19 @@
}
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/eslint": "8.44.2",
"@types/estree": "1.0.1",
"@types/jest": "29.5.4",
"@types/node": "20.6.0",
"@typescript-eslint/parser": "6.6.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.2",
"@typescript-eslint/parser": "6.7.0",
"@workleap/swc-configs": "workspace:*",
"@workleap/tsup-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"eslint": "8.49.0",
"jest": "29.6.4",
"jest": "29.7.0",
"ts-node": "10.9.1",
"tsup": "7.2.0",
"typescript": "5.2.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/postcss-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
"postcss": ">=8.4.6"
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.4",
"@types/node": "20.6.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.2",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/swc-configs": "workspace:*",
"@workleap/tsup-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"jest": "29.6.4",
"jest": "29.7.0",
"postcss": "8.4.29",
"ts-node": "10.9.1",
"tsup": "7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}
},
"devDependencies": {
"@types/node": "20.6.0",
"@types/node": "20.6.2",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/tsup-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/swc-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
"build": "tsup"
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.4",
"@types/jest": "29.5.5",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/tsup-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"browserslist": "4.21.10",
"jest": "29.6.4",
"jest": "29.7.0",
"ts-node": "10.9.1",
"tsup": "7.2.0",
"typescript": "5.2.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/tsup-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"typescript": "*"
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.4",
"@types/jest": "29.5.5",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/swc-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"jest": "29.6.4",
"jest": "29.7.0",
"ts-node": "10.9.1",
"tsup": "7.2.0",
"typescript": "5.2.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/webpack-configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@
}
},
"devDependencies": {
"@swc/core": "1.3.83",
"@swc/core": "1.3.84",
"@swc/helpers": "0.5.2",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.4",
"@types/node": "20.6.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.2",
"@workleap/eslint-plugin": "workspace:*",
"@workleap/swc-configs": "workspace:*",
"@workleap/tsup-configs": "workspace:*",
"@workleap/typescript-configs": "workspace:*",
"browserslist": "4.21.10",
"jest": "29.6.4",
"jest": "29.7.0",
"postcss": "8.4.29",
"postcss-load-config": "4.0.1",
"ts-node": "10.9.1",
Expand Down
Loading

0 comments on commit c613c7c

Please sign in to comment.