Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish #18

Merged
merged 4 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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