create-application-template 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-application-template",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "provides a configured application template for you to build upon",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -23,7 +23,16 @@ export const Typewriter: FC<
23
23
  const [displayedText, setDisplayedText] = useState('')
24
24
  const [currentIndex, setCurrentIndex] = useState(0)
25
25
 
26
- useEffect(() => {
26
+ // NOTE: supports hot reload behavior in development:
27
+ // A) when the `text` prop changes (e.g. via hot reload), reset internal state
28
+ // B) this triggers the typing animation effect to restart with the new text
29
+
30
+ useEffect(() => { // A
31
+ setDisplayedText('')
32
+ setCurrentIndex(0)
33
+ }, [text])
34
+
35
+ useEffect(() => { // B
27
36
  const mySpeed = (currentIndex === 0) ? delay + speed : speed
28
37
 
29
38
  if (currentIndex < text.length) {
@@ -4,7 +4,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
4
4
  const Dotenv = require('dotenv-webpack')
5
5
  const { WebpackManifestPlugin } = require('webpack-manifest-plugin')
6
6
  const CopyPlugin = require('copy-webpack-plugin')
7
- const WebpackShellPluginNext =require('webpack-shell-plugin-next')
8
7
  const env = require('./utilities/env')
9
8
  const getPaths = require('./utilities/getPaths')
10
9
  const createEnvironmentHash = require('./utilities/createEnvironmentHash')
@@ -157,13 +156,6 @@ module.exports = (webpackEnv) => {
157
156
  }],
158
157
  }),
159
158
  new Dotenv(),
160
- new WebpackShellPluginNext({
161
- onBuildStart: {
162
- scripts: ['ts-node scripts/generate-sitemap.ts'],
163
- blocking: true,
164
- parallel: false,
165
- },
166
- }),
167
159
  ],
168
160
  }
169
161
  }
@@ -2,6 +2,7 @@ const webpack = require('webpack')
2
2
  const TerserPlugin = require('terser-webpack-plugin')
3
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin')
4
4
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
5
+ const WebpackShellPluginNext =require('webpack-shell-plugin-next')
5
6
  const getPaths = require('./utilities/getPaths')
6
7
  const getTerserOptions = require('./utilities/getTerserOptions')
7
8
 
@@ -29,6 +30,13 @@ module.exports = (webpackEnv) => {
29
30
  filename: paths.static.css.filenameCss,
30
31
  chunkFilename: paths.static.css.chunkFilenameCss,
31
32
  }),
33
+ new WebpackShellPluginNext({
34
+ onBuildStart: {
35
+ scripts: ['ts-node scripts/generate-sitemap.ts'],
36
+ blocking: true,
37
+ parallel: false,
38
+ },
39
+ }),
32
40
  ],
33
41
  }
34
42
  }
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
- <url>
4
- <loc>https://www.createapplicationtemplate.com/</loc>
5
- <lastmod>2025-04-08T16:38:42.528Z</lastmod>
6
- <changefreq>weekly</changefreq>
7
- <priority>1.0</priority>
8
- </url>
9
- </urlset>