miniwork 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/bin/miniwork.js +30 -6
  2. package/package.json +2 -2
package/bin/miniwork.js CHANGED
@@ -85,6 +85,17 @@ ${COLORS.bright}Creating MiniWork project: ${COLORS.cyan}${projectName}${COLORS.
85
85
  // Remove workflows
86
86
  execSync(`rm -rf "${join(targetDir, '.gitea')}"`, { stdio: 'pipe' });
87
87
 
88
+ // Remove cypress tests (optional - users can add later)
89
+ execSync(`rm -rf "${join(targetDir, 'cypress')}"`, { stdio: 'pipe' });
90
+ execSync(`rm -rf "${join(targetDir, 'cypress.config.ts')}"`, { stdio: 'pipe' });
91
+
92
+ // Remove monorepo docs
93
+ execSync(`rm -rf "${join(targetDir, 'SPEC.md')}"`, { stdio: 'pipe' });
94
+ execSync(`rm -rf "${join(targetDir, 'STYLEGUIDE.md')}"`, { stdio: 'pipe' });
95
+
96
+ // Remove tests directory
97
+ execSync(`rm -rf "${join(targetDir, 'tests')}"`, { stdio: 'pipe' });
98
+
88
99
  logSuccess('Template downloaded');
89
100
  } catch (error) {
90
101
  logError('Failed to download template');
@@ -97,12 +108,25 @@ ${COLORS.bright}Creating MiniWork project: ${COLORS.cyan}${projectName}${COLORS.
97
108
 
98
109
  try {
99
110
  const packageJsonPath = join(targetDir, 'package.json');
100
- const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
101
111
 
102
- packageJson.name = projectName;
103
- packageJson.version = '0.0.1';
104
- packageJson.private = true;
105
- delete packageJson.workspaces;
112
+ // Create a clean package.json for standalone project
113
+ const packageJson = {
114
+ name: projectName,
115
+ version: '0.0.1',
116
+ private: true,
117
+ type: 'module',
118
+ scripts: {
119
+ dev: 'bun --watch init.ts',
120
+ start: 'bun init.ts'
121
+ },
122
+ devDependencies: {
123
+ '@types/bun': 'latest',
124
+ 'typescript': '^5.3.3'
125
+ },
126
+ engines: {
127
+ bun: '>=1.0.0'
128
+ }
129
+ };
106
130
 
107
131
  writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
108
132
  logSuccess('Project configured');
@@ -159,7 +183,7 @@ ${COLORS.yellow}Next steps:${COLORS.reset}
159
183
  cd ${projectName}
160
184
  bun run dev
161
185
 
162
- ${COLORS.gray}Your app will be running at http://localhost:6030${COLORS.reset}
186
+ ${COLORS.gray}Your app will be running at http://localhost:3771${COLORS.reset}
163
187
 
164
188
  ${COLORS.gray}Default login: admin@admin.com / admin123${COLORS.reset}
165
189
  `);
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "miniwork",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "MiniWork - Lightweight full-stack JavaScript framework with real-time database-to-UI sync",
5
5
  "type": "module",
6
6
  "bin": {
7
- "miniwork": "./bin/miniwork.js"
7
+ "miniwork": "bin/miniwork.js"
8
8
  },
9
9
  "files": [
10
10
  "bin",