Skip to content

Commit

Permalink
Merge pull request #18 from Next2D/main
Browse files Browse the repository at this point in the history
publish
  • Loading branch information
ienaga authored Nov 11, 2023
2 parents f0aefaa + 68d02c9 commit 007f3f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
31 changes: 0 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,5 @@ cd sample-app
npm start
```

## Commands

* Starts the development server.
```sh
npm start
```

* Generate the necessary View and ViewModel classes from the routing JSON file.
```sh
npm run generate
```

* Start the emulator for each platform.
```sh
npm run preview:(ios|android|windows|macos)
```

* Export a production version for each platform.
```sh
npm run build:web
```

```sh
npx @next2d/builder --platform web --env prd
```

* Starts the test runner.
```sh
npm test
```

## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next2d-app",
"version": "2.0.0",
"version": "2.0.1",
"description": "Create Next2D apps with no build configuration.",
"author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
"license": "MIT",
Expand Down
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ const createApp = (
"description": `Details of ${appName}`,
"version": "0.0.1",
"private": true,
"main": "src/index.ts",
"type": "module",
"scripts": {
"start": "vite",
Expand All @@ -389,8 +388,6 @@ const createApp = (
"build:steam:macos": "npx @next2d/builder --platform steam:macos --env prd",
"build:steam:linux": "npx @next2d/builder --platform steam:linux --env prd",
"build:web": "npx @next2d/builder --platform web --env prd",
"build": "npx @next2d/builder",
"lint": "eslint src/**/*.ts",
"test": "npx vitest",
"generate": "npx @next2d/view-generator"
}
Expand Down Expand Up @@ -437,8 +434,8 @@ const createApp = (
"*.njsproj",
"*.sln",
"*.sw?",
"src/config/Config.js",
"src/Packages.js",
"src/config/Config.*",
"src/Packages.*",
"electron.index.json"
];

Expand Down Expand Up @@ -479,7 +476,7 @@ const execute = (): void =>
"--template <path-to-template>",
"specify a template for the created project"
)
.on("--help", () =>
.on("-h, --help", () =>
{
console.log();
console.log(` A custom ${pc.cyan("--template")} can be one of:`);
Expand Down

0 comments on commit 007f3f6

Please sign in to comment.