create-application-template 2.0.0 → 2.2.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FdaveKontro%2Fcreate-application-template%2Fmain%2Fpackage.json&query=%24.version&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEnRFWHRfcV9pY29PcmlnRGVwdGgAMzLV4rjsAAABRUlEQVQ4jcWSP0tCYRyFz++9gV3KCEoroxZxSiLEoCT7MwUGrQ1tfoD28AMEFTQ1F40OOWVLcPMSDqENrU0SBHUpQrA/cr2nQTEwSm8QnfGF5znnhR/w35HWh0LuYUsoYZara9HV0RcAMAyjy6uFjwi+Tc/7k98Krs4fZym1CxFRNfJYHJUCAApTSrgOAEKsRBb9p18E+fyt7rH1MwFjP24mrquV5/hMIlQGAAUA6XRa67b1TFu4Xjnp6e0/yWZvPE1BcHhpA+ByW7g5AnNDPX2bjS9QiqZVEshYpwIAoEOrTF9ACqY1ooA7N/Bn1IT6HViPbVdFAKCYuy+JqHFXNPHkrQwG6gtE23HbLsLdUELeFQBE4gP74mCPJDuBa5CDqbhvG2i9RMOKQkOSDmJQCILUG3WvdFDSlFySzmFkwW+6Xfx3+QCAd27zrNWLdgAAAABJRU5ErkJggg==&label=version&labelColor=%23454145&color=%23cec2eb)
2
2
  ![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FdaveKontro%2Fcreate-application-template%2Fmain%2Fpackage.json&query=%24.engines.node&logo=nodedotjs&label=node&labelColor=%23454145&color=%23cec2eb)
3
- ![Static Badge](https://img.shields.io/badge/npm-v10.2.4-%23cec2eb?logo=npm&labelColor=%23454145)
3
+ ![Static Badge](https://img.shields.io/badge/npm->=v10-%23cec2eb?logo=npm&labelColor=%23454145)
4
4
 
5
5
  # Create Application Template
6
6
  This project aims to provide a configured application template for you to build upon.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-application-template",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "provides a configured application template for you to build upon",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,6 +33,7 @@
33
33
  "stylelint",
34
34
  "javascript"
35
35
  ],
36
+ "url": "https://www.createapplicationtemplate.com/",
36
37
  "repository": {
37
38
  "type": "git",
38
39
  "url": "https://github.com/daveKontro/create-application-template.git"
@@ -41,7 +42,8 @@
41
42
  "license": "MIT",
42
43
  "proxy": "http://localhost:3000",
43
44
  "engines": {
44
- "node": ">=20.18.3"
45
+ "node": ">=20",
46
+ "npm": ">=10"
45
47
  },
46
48
  "dependencies": {
47
49
  "browserslist": "4.24.4",
@@ -60,7 +62,7 @@
60
62
  "@babel/preset-env": "7.26.9",
61
63
  "@babel/preset-react": "7.26.3",
62
64
  "@babel/preset-typescript": "7.26.0",
63
- "@babel/runtime": "7.26.9",
65
+ "@babel/runtime": "7.26.10",
64
66
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
65
67
  "@testing-library/jest-dom": "6.6.3",
66
68
  "@testing-library/react": "16.2.0",
@@ -106,12 +108,14 @@
106
108
  "stylelint-config-standard": "36.0.0",
107
109
  "stylelint-no-unsupported-browser-features": "8.0.4",
108
110
  "terser-webpack-plugin": "5.3.12",
111
+ "ts-node": "10.9.2",
109
112
  "typescript": "5.8.2",
110
113
  "webpack": "5.98.0",
111
114
  "webpack-cli": "6.0.1",
112
115
  "webpack-dev-server": "5.2.0",
113
116
  "webpack-manifest-plugin": "5.0.0",
114
117
  "webpack-merge": "6.0.1",
118
+ "webpack-shell-plugin-next": "2.3.2",
115
119
  "whatwg-fetch": "3.6.20"
116
120
  }
117
121
  }
@@ -0,0 +1,25 @@
1
+ const { existsSync, writeFileSync } = require('fs')
2
+ const path = require('path')
3
+ const packageJson = require('../package.json')
4
+
5
+ const now = new Date().toISOString()
6
+ const sitemapPath = path.resolve(__dirname, '../src/public/sitemap.xml')
7
+ const baseUrl = packageJson.url || 'https://www.createapplicationtemplate.com/'
8
+
9
+ if (existsSync(sitemapPath)) {
10
+ console.log('📝 overwriting existing sitemap.xml')
11
+ }
12
+
13
+ const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
14
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
15
+ <url>
16
+ <loc>${baseUrl}</loc>
17
+ <lastmod>${now}</lastmod>
18
+ <changefreq>weekly</changefreq>
19
+ <priority>1.0</priority>
20
+ </url>
21
+ </urlset>`
22
+
23
+ writeFileSync(sitemapPath, sitemap.trim())
24
+
25
+ console.info('✅ sitemap.xml updated with lastmod:', now)
@@ -1,3 +1,6 @@
1
1
  # https://www.robotstxt.org/robotstxt.html
2
2
  User-agent: *
3
- Allow: /
3
+ Disallow:
4
+
5
+ Sitemap: https://www.createapplicationtemplate.com/sitemap.xml
6
+
@@ -0,0 +1,9 @@
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>
@@ -4,6 +4,7 @@ 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')
7
8
  const env = require('./utilities/env')
8
9
  const getPaths = require('./utilities/getPaths')
9
10
  const createEnvironmentHash = require('./utilities/createEnvironmentHash')
@@ -156,6 +157,13 @@ module.exports = (webpackEnv) => {
156
157
  }],
157
158
  }),
158
159
  new Dotenv(),
160
+ new WebpackShellPluginNext({
161
+ onBuildStart: {
162
+ scripts: ['ts-node scripts/generate-sitemap.ts'],
163
+ blocking: true,
164
+ parallel: false,
165
+ },
166
+ }),
159
167
  ],
160
168
  }
161
169
  }