create-next2d-app 1.1.0 → 1.2.1

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/index.js +13 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -285,6 +285,10 @@ const install = function (root, app_name, template, dependencies)
285
285
  console.log(` ${chalk.green("npm run generate")}`);
286
286
  console.log(" Generate the necessary View and ViewModel classes from the routing JSON file.");
287
287
 
288
+ console.log();
289
+ console.log(` ${chalk.green("npm run [ios|android|windows|macos] --env=\"prd\"")}`);
290
+ console.log(" Start the emulator for each platform.");
291
+
288
292
  console.log();
289
293
  console.log(` ${chalk.green("npm run build --env=\"prd\"")}`);
290
294
  console.log(" Bundles the app into static files for production.");
@@ -329,6 +333,10 @@ const createApp = function (app_name, template = "@next2d/framework-template")
329
333
  "main": "src/index.js",
330
334
  "scripts": {
331
335
  "start": "webpack serve",
336
+ "ios": "npx @next2d/builder run ios --platform ios --debug",
337
+ "android": "npx @next2d/builder run android --platform android --debug",
338
+ "macos": "npx @next2d/builder --platform macos --debug",
339
+ "windows": "npx @next2d/builder --platform windows --debug",
332
340
  "build": "npx @next2d/builder",
333
341
  "lint": "eslint src/**/*.js",
334
342
  "test": "npx jest",
@@ -386,7 +394,11 @@ const createApp = function (app_name, template = "@next2d/framework-template")
386
394
  "@babel/core",
387
395
  "@babel/preset-env",
388
396
  "eslint",
389
- "eslint-webpack-plugin"
397
+ "eslint-webpack-plugin",
398
+ "@capacitor/cli",
399
+ "@capacitor/core",
400
+ "@capacitor/ios",
401
+ "@capacitor/android"
390
402
  ]);
391
403
  };
392
404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next2d-app",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Create Next2D apps with no build configuration.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
6
6
  "license": "MIT",