create-mn-app 0.2.2 โ†’ 0.2.4

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
- # create-mn-app ๐ŸŒ™
1
+ # create-mn-app
2
2
 
3
- Create Midnight Network applications with zero configuration.
3
+ Scaffold Midnight Network applications.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/create-mn-app.svg)](https://www.npmjs.com/package/create-mn-app)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -11,383 +11,133 @@ cd my-app
11
11
  npm run setup
12
12
  ```
13
13
 
14
- ## โœจ Features
14
+ ## Features
15
15
 
16
- - ๐ŸŽฏ **Interactive Setup** - Guided project creation with template selection
17
- - ๐Ÿ“ฆ **Smart Package Manager** - Auto-detects your preferred package manager (npm/yarn/pnpm/bun)
18
- - ๐Ÿฅ **Health Checks** - Verify your environment is ready before development
19
- - โšก **Zero Configuration** - Works out of the box with sensible defaults
20
- - ๐Ÿ”ง **Modern Tooling** - TypeScript, hot reloading, auto-compilation
21
- - ๐Ÿ›ก๏ธ **Best Practices** - Secure wallet generation, proper project structure
22
- - ๐Ÿš€ **Fast Setup** - From zero to working app in 60 seconds
23
- - ๏ฟฝ **Helpful Errors** - Clear error messages with actionable solutions
24
- - ๐Ÿ“ฆ **ES Modules** - Modern JavaScript module system
25
- - ๐Ÿณ **Docker Integration** - Automated proof server setup
16
+ - Interactive project setup with template selection
17
+ - Auto-detects package manager (npm/yarn/pnpm/bun)
18
+ - Environment health checks
19
+ - TypeScript with hot reloading
20
+ - Pre-configured Compact contracts
21
+ - Secure wallet generation
26
22
 
27
- ## ๐Ÿš€ Quick Start
23
+ ## Quick Start
28
24
 
29
- ### Interactive Mode (Recommended)
25
+ ### Interactive Mode
30
26
 
31
27
  ```bash
32
28
  npx create-mn-app
33
29
  ```
34
30
 
35
- You'll be prompted to:
36
-
37
- 1. **Enter your project name** - Choose a descriptive name for your app
38
- 2. **Select a template** - Pick from available templates or see what's coming soon
39
- 3. **Choose configuration** - Package manager, git, and other options
40
-
41
- ### Command Line Mode
31
+ ### CLI Mode
42
32
 
43
33
  ```bash
44
- # Create with defaults
45
- npx create-mn-app my-midnight-app
46
-
47
- # Create with specific template
48
34
  npx create-mn-app my-app --template hello-world
49
-
50
- # Use specific package manager
51
- npx create-mn-app my-app --use-pnpm
52
-
53
- # Navigate and setup
54
35
  cd my-app
55
36
  npm run setup
56
37
  ```
57
38
 
58
- ## What's Included?
59
-
60
- Your generated project includes:
61
-
62
- - ๐Ÿ“ **Hello World Contract** - A simple Compact contract to get started
63
- - ๐Ÿ” **Wallet Setup** - Auto-generated wallet with secure seed phrase
64
- - ๐Ÿ› ๏ธ **Development Environment** - Pre-configured TypeScript, nodemon, and build tools
65
- - ๐Ÿ“š **Provider Setup** - Midnight network providers (indexer, proof, state, ZK config)
66
- - ๐ŸŽจ **Interactive CLI** - Test your contracts with a user-friendly command-line interface
67
- - ๐Ÿ“‹ **Environment Config** - `.env` file with network configuration
68
- - ๐Ÿ”„ **Git Ready** - Initialized git repository with proper `.gitignore`
69
-
70
- ## ๐Ÿ“š Available Commands
71
-
72
- Once your project is created, you can run:
73
-
74
- ### `npm run setup`
75
-
76
- Complete setup pipeline:
77
-
78
- 1. Compiles Compact contracts
79
- 2. Builds TypeScript to JavaScript
80
- 3. Deploys contracts to the network
81
-
82
- ### `npm run health-check`
83
-
84
- ๐Ÿฅ Verify your development environment:
85
-
86
- - โœ“ Node.js version (18+)
87
- - โœ“ Docker availability
88
- - โœ“ Environment configuration
89
- - โœ“ Wallet setup
90
- - โœ“ Dependencies installed
91
- - โœ“ Project built correctly
92
-
93
- Run this command before development to catch issues early!
39
+ ## Templates
94
40
 
95
- ### `npm run cli`
41
+ ### Hello World (Default)
96
42
 
97
- Opens an interactive command-line interface to:
43
+ Basic message storage contract demonstrating state management and deployment.
98
44
 
99
- - Connect your wallet
100
- - Store messages in the contract
101
- - Retrieve stored messages
102
- - Test contract functionality
103
-
104
- ### `npm run check-balance`
105
-
106
- Checks your wallet balance. Useful for verifying if test tokens from the faucet have arrived before deploying.
107
-
108
- ### `npm run compile`
109
-
110
- Compiles your Compact smart contracts from `contracts/` to `contracts/managed/`
111
-
112
- ### `npm run build`
113
-
114
- Builds your TypeScript source code to JavaScript in the `dist/` directory
115
-
116
- ### `npm run deploy`
117
-
118
- Deploys your compiled contract to the Midnight testnet
119
-
120
- ## Project Structure
121
-
122
- ```
123
- my-midnight-app/
124
- โ”œโ”€โ”€ contracts/
125
- โ”‚ โ”œโ”€โ”€ hello-world.compact # Your Compact smart contract
126
- โ”‚ โ””โ”€โ”€ managed/ # Compiled contract output
127
- โ”œโ”€โ”€ src/
128
- โ”‚ โ”œโ”€โ”€ cli.ts # Interactive CLI application
129
- โ”‚ โ”œโ”€โ”€ deploy.ts # Contract deployment script
130
- โ”‚ โ”œโ”€โ”€ providers/
131
- โ”‚ โ”‚ โ””โ”€โ”€ midnight-providers.ts # Network provider configuration
132
- โ”‚ โ””โ”€โ”€ utils/
133
- โ”‚ โ””โ”€โ”€ environment.ts # Environment management
134
- โ”œโ”€โ”€ .env # Environment variables & wallet seed
135
- โ”œโ”€โ”€ .gitignore
136
- โ”œโ”€โ”€ package.json
137
- โ”œโ”€โ”€ tsconfig.json
138
- โ””โ”€โ”€ nodemon.json
45
+ ```bash
46
+ npx create-mn-app my-app
139
47
  ```
140
48
 
141
- ## ๐ŸŽจ Templates
142
-
143
- Choose from various templates to kickstart your Midnight project:
144
-
145
- ### โœ… Available Now
146
-
147
- #### **Hello World** (Default)
148
-
149
- A simple message storage contract demonstrating:
49
+ ### Counter DApp
150
50
 
151
- - State management
152
- - Public and private data
153
- - Contract deployment
154
- - Interactive testing
51
+ Real-world example from midnightntwrk with increment/decrement state and zkProofs.
155
52
 
156
53
  ```bash
157
- npx create-mn-app my-app --template hello-world
54
+ npx create-mn-app my-app --template counter
158
55
  ```
159
56
 
160
- #### **Counter DApp**
161
-
162
- Real-world example from midnightntwrk demonstrating:
57
+ Cloned from [midnightntwrk/example-counter](https://github.com/midnightntwrk/example-counter). Requires Node.js 22+, Docker, and Compact compiler.
163
58
 
164
- - Increment/decrement state management
165
- - Zero-knowledge proofs on testnet
166
- - Compact compiler integration
167
- - Full CLI interface
59
+ After creation:
168
60
 
169
61
  ```bash
170
- npx create-mn-app my-counter --template counter
62
+ cd my-app
63
+ npm install
64
+ # Follow setup instructions displayed
171
65
  ```
172
66
 
173
- _Automatically cloned from [midnightntwrk/example-counter](https://github.com/midnightntwrk/example-counter)_
174
-
175
- **Requirements:** Node.js 22+, Docker, Compact compiler
176
-
177
- ### ๐Ÿ”œ Coming Soon
178
-
179
- #### **Bulletin Board (Bboard)**
180
-
181
- Bulletin board with multi-user interactions and privacy patterns
67
+ ### Coming Soon
182
68
 
183
- #### **Decentralized Exchange (DEX)**
69
+ - Bulletin Board - Multi-user interactions with privacy patterns
70
+ - DEX - Decentralized exchange using FungibleToken
71
+ - Midnight Kitties - NFT-based full stack DApp
184
72
 
185
- Decentralized exchange using OpenZeppelin FungibleToken
73
+ ## Requirements
186
74
 
187
- #### **Midnight Kitties**
75
+ - Node.js 22+
76
+ - Docker (for proof server)
77
+ - npm/yarn/pnpm/bun
78
+ - Compact Compiler (for Counter template - auto-guided installation)
188
79
 
189
- Full stack DApp using NFT smart contract library (Crypto Kitties on Midnight)
190
-
191
- _These templates are under development. Star the repo to stay updated!_
192
-
193
- ## โš™๏ธ Requirements
194
-
195
- - **Node.js** 22.0.0 or higher (required for all templates)
196
- - **Docker** (for running the proof server)
197
- - **npm**, **yarn**, **pnpm**, or **bun** package manager
198
- - **Compact Compiler** (required for Counter and future templates - CLI will guide installation)
199
-
200
- > **Note:** The CLI automatically checks Node.js version on startup and will guide you if an upgrade is needed.
201
-
202
- ## ๐Ÿ“ฆ Package Manager Options
203
-
204
- The CLI automatically detects your preferred package manager! It checks:
205
-
206
- 1. Lock files in your directory (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb)
207
- 2. Environment variables set by your package manager
208
- 3. Available package managers on your system
209
-
210
- You can also explicitly specify:
211
-
212
- ```bash
213
- # npm
214
- npx create-mn-app my-app --use-npm
215
-
216
- # Yarn
217
- npx create-mn-app my-app --use-yarn
218
-
219
- # pnpm
220
- npx create-mn-app my-app --use-pnpm
221
-
222
- # Bun
223
- npx create-mn-app my-app --use-bun
224
- ```
225
-
226
- All commands in the success message will use your chosen package manager! ๐ŸŽ‰
227
-
228
- ## โš™๏ธ CLI Options
80
+ ## CLI Options
229
81
 
230
82
  ```bash
231
83
  npx create-mn-app [project-name] [options]
232
84
 
233
- Arguments:
234
- project-name Name of your project (interactive prompt if omitted)
235
-
236
85
  Options:
237
- -t, --template <name> Template to use (hello-world, counter, bboard, dex, midnight-kitties)
238
- --use-npm Use npm as package manager
239
- --use-yarn Use Yarn as package manager
240
- --use-pnpm Use pnpm as package manager
241
- --use-bun Use bun as package manager
86
+ -t, --template <name> Template: hello-world, counter
87
+ --use-npm Use npm
88
+ --use-yarn Use Yarn
89
+ --use-pnpm Use pnpm
90
+ --use-bun Use bun
242
91
  --skip-install Skip dependency installation
243
92
  --skip-git Skip git initialization
244
- --verbose Show detailed output including stack traces
245
- -h, --help Display help information
246
- -V, --version Display version number
93
+ --verbose Show detailed output
94
+ -h, --help Help
95
+ -V, --version Version
247
96
  ```
248
97
 
249
- ### Examples
250
-
251
- ```bash
252
- # Interactive mode (recommended)
253
- npx create-mn-app
254
-
255
- # With project name
256
- npx create-mn-app my-midnight-dapp
257
-
258
- # Specific template and package manager
259
- npx create-mn-app my-dex --template dex --use-pnpm
260
-
261
- # Skip installation (for CI/CD)
262
- npx create-mn-app my-app --skip-install --skip-git
98
+ ## Project Structure
263
99
 
264
- # Verbose output for debugging
265
- npx create-mn-app my-app --verbose
266
100
  ```
267
-
268
- ## Environment Configuration
269
-
270
- Your `.env` file contains important configuration:
271
-
272
- ```env
273
- # Wallet Configuration
274
- WALLET_SEED=your-generated-seed-phrase
275
-
276
- # Network Configuration
277
- MIDNIGHT_NETWORK=testnet
278
- INDEXER_URL=https://indexer.testnet.midnight.network
279
- INDEXER_WS_URL=wss://indexer.testnet.midnight.network
280
- PROOF_SERVER_URL=http://localhost:6300
101
+ my-app/
102
+ โ”œโ”€โ”€ contracts/
103
+ โ”‚ โ”œโ”€โ”€ hello-world.compact
104
+ โ”‚ โ””โ”€โ”€ managed/
105
+ โ”œโ”€โ”€ src/
106
+ โ”‚ โ”œโ”€โ”€ cli.ts
107
+ โ”‚ โ”œโ”€โ”€ deploy.ts
108
+ โ”‚ โ”œโ”€โ”€ providers/
109
+ โ”‚ โ””โ”€โ”€ utils/
110
+ โ”œโ”€โ”€ .env
111
+ โ”œโ”€โ”€ package.json
112
+ โ””โ”€โ”€ tsconfig.json
281
113
  ```
282
114
 
283
- โš ๏ธ **Important**: Never commit your `.env` file or share your wallet seed phrase!
284
-
285
- ## ๐Ÿ”ง Troubleshooting
115
+ ## Troubleshooting
286
116
 
287
117
  ### Node.js version error
288
118
 
289
- If you see "Node.js Version Error":
290
-
291
- ```bash
292
- # Check your version
293
- node --version
294
-
295
- # Install Node.js 22+ from https://nodejs.org
296
- # Or use nvm:
297
- nvm install 22
298
- nvm use 22
299
- ```
300
-
301
- The CLI automatically checks for Node.js 22+ before running!
302
-
303
- ### Environment issues
304
-
305
- Run the health check to diagnose problems:
306
-
307
- ```bash
308
- cd my-app
309
- npm run health-check
310
- ```
311
-
312
- This will show you exactly what needs to be fixed. โœจ
313
-
314
- ### Waiting for faucet funds
315
-
316
- If your deployment is waiting for funds from the testnet faucet:
317
-
318
119
  ```bash
319
- # Option 1: Let the script wait (it will auto-detect funds)
320
- # Just leave it running after requesting from the faucet
321
-
322
- # Option 2: Stop and check manually
323
- # Press Ctrl+C to stop, then:
324
- npm run check-balance
325
-
326
- # Once funded, deploy:
327
- npm run deploy
120
+ node --version # Check version
121
+ nvm install 22 && nvm use 22 # Install Node.js 22+
328
122
  ```
329
123
 
330
- ๐Ÿ’ก **Note**: Faucet transactions typically take 2-5 minutes to process.
331
-
332
- ### Port 6300 already in use
333
-
334
- If you see "Bind for 0.0.0.0:6300 failed: port is already allocated":
124
+ ### Port 6300 in use
335
125
 
336
126
  ```bash
337
- # Stop the existing proof server
338
127
  docker ps
339
128
  docker stop <container-id>
340
-
341
- # Or run on a different port (update .env accordingly)
342
- ```
343
-
344
- ### Module resolution errors
345
-
346
- Make sure you're using Node.js 18+ and the project was created with the latest version:
347
-
348
- ```bash
349
- node --version
350
- npx create-mn-app@latest my-app
351
129
  ```
352
130
 
353
- ### Docker not running
354
-
355
- Ensure Docker Desktop is running before starting the development server:
356
-
357
- ```bash
358
- docker --version
359
-
360
- # If not installed, get it from:
361
- # https://docker.com
362
- ```
363
-
364
- ### Permission errors
365
-
366
- If you encounter EACCES errors:
367
-
368
- ```bash
369
- # Fix npm permissions (recommended)
370
- # See: https://docs.npmjs.com/resolving-eacces-permissions-errors
371
-
372
- # Or use a version manager like nvm (better solution)
373
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
374
- ```
375
-
376
- ## Learn More
131
+ ### Waiting for faucet funds
377
132
 
378
- - ๐Ÿ“– [Midnight Documentation](https://docs.midnight.network)
379
- - ๐Ÿš€ [Getting Started Guide](https://docs.midnight.network/getting-started)
380
- - ๐Ÿ’ฌ [Midnight Discord Community](https://discord.gg/midnight)
381
- - ๐Ÿ™ [GitHub Repository](https://github.com/Olanetsoft/create-midnight-app)
133
+ Testnet faucet typically takes 2-5 minutes. The deploy script will auto-detect when funds arrive.
382
134
 
383
- ## Contributing
135
+ ## Links
384
136
 
385
- Contributions are welcome! Please feel free to submit a Pull Request.
137
+ - [Midnight Docs](https://docs.midnight.network)
138
+ - [Discord Community](https://discord.gg/midnight)
139
+ - [GitHub](https://github.com/Olanetsoft/create-mn-app)
386
140
 
387
141
  ## License
388
142
 
389
- MIT ยฉ [Olanetsoft](https://github.com/Olanetsoft)
390
-
391
- ---
392
-
393
- Built with โค๏ธ for the Midnight Network community ๐ŸŒ™โœจ
143
+ MIT ยฉ
package/dist/cli.js CHANGED
@@ -11,9 +11,9 @@ const program = new commander_1.Command();
11
11
  // Check Node.js version before anything else (require 22+)
12
12
  error_handler_js_1.ErrorHandler.checkNodeVersion(22);
13
13
  program
14
- .name("create-midnight-app")
14
+ .name("create-mn-app")
15
15
  .description("Create a new Midnight Network application")
16
- .version("0.2.2")
16
+ .version("0.2.4")
17
17
  .argument("[project-directory]", "Directory name for your project")
18
18
  .option("-t, --template <name>", "Template to use (hello-world, counter, bboard, dex, midnight-kitties)")
19
19
  .option("--use-npm", "Use npm explicitly")
@@ -24,7 +24,7 @@ program
24
24
  .option("--skip-git", "Skip git repository initialization")
25
25
  .option("--verbose", "Show detailed output")
26
26
  .action(async (projectDirectory, options) => {
27
- console.log(chalk_1.default.bold.cyan("\ncreate-midnight-app") + chalk_1.default.gray(" v0.2.1\n"));
27
+ console.log(chalk_1.default.bold.cyan("\ncreate-mn-app") + chalk_1.default.gray(" v0.2.4\n"));
28
28
  try {
29
29
  await (0, create_app_js_1.createApp)(projectDirectory, options);
30
30
  }
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;AAAA,yCAAoC;AACpC,kDAA0B;AAC1B,mDAA4C;AAC5C,+DAAwD;AAExD,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,2DAA2D;AAC3D,+BAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;AAElC,OAAO;KACJ,IAAI,CAAC,qBAAqB,CAAC;KAC3B,WAAW,CAAC,2CAA2C,CAAC;KACxD,OAAO,CAAC,OAAO,CAAC;KAChB,QAAQ,CAAC,qBAAqB,EAAE,iCAAiC,CAAC;KAClE,MAAM,CACL,uBAAuB,EACvB,uEAAuE,CACxE;KACA,MAAM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CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CACX,+BAAY,CAAC,WAAW,CACtB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACzD,cAAc,CACf,CACF,CAAC;QAEF,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,+BAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YAEpC,IAAI,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;gBACnC,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;gBAC1C,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;gBACvC,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
package/dist/test.js CHANGED
@@ -7,7 +7,7 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const create_app_1 = require("./create-app");
9
9
  async function testCreateApp() {
10
- console.log("๐Ÿงช Testing create-midnight-app...\n");
10
+ console.log("๐Ÿงช Testing create-mn-app...\n");
11
11
  const testDir = path_1.default.join(process.cwd(), "test-app");
12
12
  // Clean up any existing test
13
13
  if (fs_extra_1.default.existsSync(testDir)) {
package/dist/test.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,6CAAyC;AAEzC,KAAK,UAAU,aAAa;IAC1B,OAAO,CAAC,GAAG,CAAC,qCA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,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,aAAa,EAAE,CAAC"}
@@ -17,7 +17,7 @@ class GitUtils {
17
17
  await this.runGitCommand(projectPath, [
18
18
  "commit",
19
19
  "-m",
20
- "Initial commit from create-midnight-app",
20
+ "Initial commit from create-mn-app",
21
21
  ]);
22
22
  }
23
23
  static async isGitAvailable() {
@@ -1 +1 @@
1
- {"version":3,"file":"git-utils.js","sourceRoot":"","sources":["../../src/utils/git-utils.ts"],"names":[],"mappings":";;;AAAA,6CAAoC;AAIpC,MAAa,QAAQ;IACnB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAmB;QACnC,4BAA4B;QAC5B,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QACjD,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,4BAA4B;QAC5B,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAEhD,gBAAgB;QAChB,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;QAEpD,wBAAwB;QACxB,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE;YACpC,QAAQ;YACR,IAAI;YACJ,yCAAyC;SAC1C,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,cAAc;QACjC,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAA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AI,CAAC,aAAa,CAAC,WAAW,EAAE;YACpC,QAAQ;YACR,IAAI;YACJ,mCAAmC;SACpC,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,cAAc;QACjC,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,aAAa,CAChC,GAAW,EACX,IAAc;QAEd,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,IAAA,mBAAK,EAAC,KAAK,EAAE,IAAI,EAAE;gBAC/B,GAAG;gBACH,KAAK,EAAE,MAAM;aACd,CAAC,CAAC;YAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACzB,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;gBACZ,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC,CAAC;gBAC5D,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AApDD,4BAoDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mn-app",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Create Midnight Network applications with zero configuration",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "dev": "tsc --watch",
17
17
  "prepublishOnly": "npm run build",
18
18
  "test": "npm run build && node dist/test.js",
19
- "test-local": "npm run build && npm link && npx create-midnight-app test-app",
19
+ "test-local": "npm run build && npm link && npx create-mn-app test-app",
20
20
  "clean": "rm -rf dist test-app"
21
21
  },
22
22
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  # {{projectName}}
2
2
 
3
- A Midnight Network application created with `create-midnight-app`.
3
+ A Midnight Network application created with `create-mn-app`.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -2,7 +2,7 @@
2
2
  "name": "{{projectName}}",
3
3
  "version": "1.0.0",
4
4
  "type": "module",
5
- "description": "A Midnight Network application created with create-midnight-app",
5
+ "description": "A Midnight Network application created with create-mn-app",
6
6
  "author": "{{author}}",
7
7
  "license": "MIT",
8
8
  "scripts": {