mwalajs 1.0.2 → 1.0.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/app.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ //app.mjs
1
2
  import mwalajs from 'mwalajs';
2
3
  import { homeRoutes } from './routes/homeRoutes.mjs';
3
4
  import { fileURLToPath } from 'url';
package/createProject.mjs CHANGED
@@ -51,9 +51,9 @@ async function createProject() {
51
51
  fs.mkdirSync(newProjectPath);
52
52
 
53
53
  const itemsToCopy = [
54
- "app.mjs", "controllers", "mwalajs", "routes",
55
- "views", "middlewares", "models", "package.json",
56
- "README.md", "public"
54
+ "app.mjs", "controllers", "migrations", "routes",
55
+ "views", "middlewares", "models",
56
+ "README.md","public"
57
57
  ];
58
58
 
59
59
  for (const item of itemsToCopy) {
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "mwalajs",
3
- "version": "1.0.2",
4
- "description": "MwalaJS Framework CLI Tool",
3
+ "version": "1.0.3",
4
+ "description": "MwalaJS Framework CLI Tool and Web Framework for Backend and Frontend Development.",
5
5
  "type": "module",
6
6
  "main": "app.mjs",
7
- "scripts": {
8
- "start": "node app.mjs",
9
- "cli": "node bin/mwala.mjs"
7
+ "exports": {
8
+ ".": "./index.mjs"
10
9
  },
11
10
  "bin": {
12
11
  "mwala": "bin/mwala.mjs"
13
12
  },
13
+ "scripts": {
14
+ "start": "node app.mjs",
15
+ "cli": "node bin/mwala.mjs",
16
+ "test": "echo \"No test specified\" && exit 0",
17
+ "prepare": "npm run build",
18
+ "build": "echo 'Build step if needed'",
19
+ "postinstall": "echo 'Thanks for installing MwalaJS Framework! '"
20
+ },
14
21
  "dependencies": {
15
22
  "dotenv": "^16.4.7",
16
23
  "ejs": "^3.1.10",
@@ -26,33 +33,40 @@
26
33
  "sequelize": "^6.37.6",
27
34
  "sqlite3": "^5.1.7"
28
35
  },
29
- "devDependencies": {
30
- "@vercel/ncc": "^0.38.3",
31
- "nexe": "^5.0.0-beta.4",
32
- "pkg": "^5.8.1"
33
- },
34
- "pkg": {
35
- "assets": [
36
- "views/**/*",
37
- "public/**/*",
38
- "config/**/*.mjs",
39
- "runMigrations.mjs",
40
- "setupMwalajs.mjs",
41
- "createProject.mjs",
42
- ".env",
43
- "README.md",
44
- "package.json"
45
- ],
46
- "targets": [
47
- "node18-win-x64",
48
- "node18-linux-x64",
49
- "node18-macos-x64"
50
- ],
51
- "outputPath": "dist"
52
- },
53
- "author": "HEKIMA AMBALILE MWALA",
36
+ "keywords": [
37
+ "mwalajs",
38
+ "mwala",
39
+ "framework",
40
+ "nodejs",
41
+ "express",
42
+ "mvc",
43
+ "cli",
44
+ "generator",
45
+ "backend",
46
+ "frontend",
47
+ "web-framework",
48
+ "orm",
49
+ "rest-api"
50
+ ],
51
+ "author": {
52
+ "name": "Hekima Ambalile Mwala",
53
+ "email": "biasharaboraofficials@gmail.com",
54
+ "url": "https://github.com/mwala400"
55
+ },
54
56
  "license": "MIT",
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "https://github.com/mwala400/mwalajs.git"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/mwala400/mwalajs/issues"
63
+ },
64
+ "homepage": "https://github.com/mwala400/mwalajs#readme",
55
65
  "engines": {
56
66
  "node": ">=18.0.0"
67
+ },
68
+ "sideEffects": false,
69
+ "publishConfig": {
70
+ "access": "public"
57
71
  }
58
72
  }
@@ -1,16 +0,0 @@
1
- {
2
- "name": "mwalajs",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "description": "",
13
- "dependencies": {
14
- "express": "^4.21.2"
15
- }
16
- }
File without changes
File without changes