create-next2d-app 1.2.0 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +7 -2
  2. package/index.js +10 -7
  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
@@ -286,8 +286,12 @@ const install = function (root, app_name, template, dependencies)
286
286
  console.log(" Generate the necessary View and ViewModel classes from the routing JSON file.");
287
287
 
288
288
  console.log();
289
- console.log(` ${chalk.green("npm run build --env=\"prd\"")}`);
290
- console.log(" Bundles the app into static files for production.");
289
+ console.log(` ${chalk.green("npm run [ios|android|windows|macos] -- --env prd")}`);
290
+ console.log(" Start the emulator for each platform.");
291
+
292
+ console.log();
293
+ console.log(` ${chalk.green("npm run build -- --platform [windows|macos|web] --env prd")}`);
294
+ console.log(" Export a production version for each platform.");
291
295
 
292
296
  console.log();
293
297
  console.log(` ${chalk.green("npm test")}`);
@@ -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",
@@ -375,7 +383,6 @@ const createApp = function (app_name, template = "@next2d/framework-template")
375
383
  );
376
384
 
377
385
  install(root, appName, template, [
378
- "@next2d/player",
379
386
  "@next2d/framework",
380
387
  "@next2d/webpack-auto-loader-plugin",
381
388
  "@next2d/env",
@@ -383,10 +390,6 @@ const createApp = function (app_name, template = "@next2d/framework-template")
383
390
  "webpack",
384
391
  "webpack-cli",
385
392
  "webpack-dev-server",
386
- "@babel/core",
387
- "@babel/preset-env",
388
- "eslint",
389
- "eslint-webpack-plugin",
390
393
  "@capacitor/cli",
391
394
  "@capacitor/core",
392
395
  "@capacitor/ios",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next2d-app",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "Create Next2D apps with no build configuration.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
6
6
  "license": "MIT",