clovie 0.1.7 ā 0.1.9
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/bin/cli.js +4 -4
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/server/README.md +9 -12
- package/templates/server/package.json +1 -1
- package/templates/server/partials/footer.html +4 -12
- package/templates/server/partials/header.html +8 -24
- package/templates/server/scripts/app.js +22 -152
- package/templates/server/styles/main.scss +222 -561
- package/templates/server/views/about.html +69 -0
- package/templates/server/views/index.html +16 -26
- package/templates/static/package.json +1 -1
- package/templates/server/partials/nav.html +0 -49
- package/templates/server/views/dashboard.html +0 -70
- package/templates/server/views/login.html +0 -73
- package/templates/server/views/profile.html +0 -65
package/bin/cli.js
CHANGED
|
@@ -7,8 +7,8 @@ import { dirname } from 'path';
|
|
|
7
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
8
|
const __dirname = dirname(__filename);
|
|
9
9
|
|
|
10
|
-
// Local
|
|
11
|
-
import { createClovie } from "../
|
|
10
|
+
// Local - import from compiled dist for published package
|
|
11
|
+
import { createClovie } from "../dist/index.js";
|
|
12
12
|
|
|
13
13
|
// Check for create command first (before any argument parsing)
|
|
14
14
|
if (process.argv.includes('create') && process.argv.length > 2) {
|
|
@@ -94,8 +94,8 @@ if (process.argv.includes('create') && process.argv.length > 2) {
|
|
|
94
94
|
if (templateType === 'server') {
|
|
95
95
|
console.log('\nš Server template features:');
|
|
96
96
|
console.log(' ⢠API endpoints ready at /api/*');
|
|
97
|
-
console.log(' ā¢
|
|
98
|
-
console.log(' ā¢
|
|
97
|
+
console.log(' ⢠Dynamic user profiles at /user/:id');
|
|
98
|
+
console.log(' ⢠Interactive API demos on homepage');
|
|
99
99
|
console.log(' ⢠Use "npm run start" for production server');
|
|
100
100
|
} else if (templateType === 'static') {
|
|
101
101
|
console.log('\nš Static template features:');
|
package/dist/index.cjs
CHANGED
|
@@ -4252,7 +4252,9 @@ class Server extends ServiceProvider {
|
|
|
4252
4252
|
req.path.endsWith("/") || req.path.includes(".") ? next() : res.redirect(req.path + "/");
|
|
4253
4253
|
})) : console.log("ā ļø No output directory configured or it does not exist, serving basic routes only");
|
|
4254
4254
|
await this.#setupDev(config), process.on("SIGINT", () => {
|
|
4255
|
-
this.
|
|
4255
|
+
this.#isRunning && this.#server.close(() => {
|
|
4256
|
+
this.#isRunning = !1, console.log("š Development server stopped");
|
|
4257
|
+
});
|
|
4256
4258
|
});
|
|
4257
4259
|
}
|
|
4258
4260
|
actions(useContext) {
|