create-next2d-app 1.2.1 → 1.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.
Files changed (3) hide show
  1. package/README.md +7 -2
  2. package/index.js +8 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,9 +28,14 @@ npm start
28
28
  npm run generate
29
29
  ```
30
30
 
31
- * Bundles the app into static files for production.
31
+ * Start the emulator for each platform.
32
32
  ```sh
33
- npm run build -- --env="prd"
33
+ npm run [ios|android|windows|macos] -- --env prd
34
+ ```
35
+
36
+ * Export a production version for each platform.
37
+ ```sh
38
+ npm run build -- --platform [windows|macos|web] --env prd
34
39
  ```
35
40
 
36
41
  * Starts the test runner.
package/index.js CHANGED
@@ -203,8 +203,11 @@ const install = function (root, app_name, template, dependencies)
203
203
  for (let idx = 0; idx < keys.length; ++idx) {
204
204
 
205
205
  const name = keys[idx];
206
- packageJson.dependencies[name] = templateDependencies[name];
207
-
206
+ if (templateDependencies[name] === "*") {
207
+ dependencies.push(name);
208
+ } else {
209
+ packageJson.dependencies[name] = templateDependencies[name];
210
+ }
208
211
  }
209
212
 
210
213
  fs.writeFileSync(
@@ -286,12 +289,12 @@ const install = function (root, app_name, template, dependencies)
286
289
  console.log(" Generate the necessary View and ViewModel classes from the routing JSON file.");
287
290
 
288
291
  console.log();
289
- console.log(` ${chalk.green("npm run [ios|android|windows|macos] --env=\"prd\"")}`);
292
+ console.log(` ${chalk.green("npm run [ios|android|windows|macos] -- --env prd")}`);
290
293
  console.log(" Start the emulator for each platform.");
291
294
 
292
295
  console.log();
293
- console.log(` ${chalk.green("npm run build --env=\"prd\"")}`);
294
- console.log(" Bundles the app into static files for production.");
296
+ console.log(` ${chalk.green("npm run build -- --platform [windows|macos|web] --env prd")}`);
297
+ console.log(" Export a production version for each platform.");
295
298
 
296
299
  console.log();
297
300
  console.log(` ${chalk.green("npm test")}`);
@@ -383,18 +386,12 @@ const createApp = function (app_name, template = "@next2d/framework-template")
383
386
  );
384
387
 
385
388
  install(root, appName, template, [
386
- "@next2d/player",
387
389
  "@next2d/framework",
388
- "@next2d/webpack-auto-loader-plugin",
389
390
  "@next2d/env",
390
391
  "electron",
391
392
  "webpack",
392
393
  "webpack-cli",
393
394
  "webpack-dev-server",
394
- "@babel/core",
395
- "@babel/preset-env",
396
- "eslint",
397
- "eslint-webpack-plugin",
398
395
  "@capacitor/cli",
399
396
  "@capacitor/core",
400
397
  "@capacitor/ios",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next2d-app",
3
- "version": "1.2.1",
3
+ "version": "1.2.4",
4
4
  "description": "Create Next2D apps with no build configuration.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
6
6
  "license": "MIT",