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 a170133 + acb1747 commit eac6d90
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 22 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
macos-browser-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: cd template && npm install && npx eslint ./src/**/*.ts

windows-browser-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: cd template && npm install && npx eslint ./src/**/*.ts
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@next2d/framework-typescript-template",
"description": "Next2D Framework default TypeScript template.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://next2d.app",
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new",
"author": "Toshiyuki Ienaga<[email protected]>",
Expand Down
5 changes: 4 additions & 1 deletion template/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"sourceType": "module",
"ecmaVersion": "latest"
},
"extends": "plugin:@typescript-eslint/eslint-recommended",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-var": "error",
Expand Down
7 changes: 3 additions & 4 deletions template/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dist-ssr
*.sln
*.sw?

src/Packages.ts
src/config/Config.ts
electron.index.json
out/
src/Packages.*
src/config/Config.*
electron.index.json
26 changes: 17 additions & 9 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,35 @@ In the project directory, you can run:
### `npm start`

Runs the app in the development mode.
Open [http://localhost:8080](http://localhost:8080) to view it in your browser.

Open [http://localhost:5173](http://localhost:5173) to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.

### `npm run ios -- --env prd`
### `npm run android -- --env prd`
### `npm run windows -- --env prd`
### `npm run macos -- --env prd`
## Start the emulator for each platform.

### `npm run preview:windows -- --env prd`
### `npm run preview:macos -- --env prd`
### `npm run preview:linux -- --env prd`
### `npm run preview:ios -- --env prd`
### `npm run preview:android -- --env prd`

Start the emulator for each platform.
Launch emulators for various platforms including Windows, macOS, Linux, iOS, Android, and Web (HTML).
You can check the operation of the application in the environment specified by env=***.

### `npm run generate`

Generate the necessary View and ViewModel classes from the routing JSON file.

## Unit Test

### `npm test`

Launches the test runner.

### `npm run build -- --platform web --env prd`
### `npm run build:web`
### `npm run build:steam:windows`
### `npm run build:steam:macos`
### `npm run build:steam:linux`
### `npm run build -- --platform *** --env***`

Multi-platform builder, writes to various platforms including macOS, Windows, iOS, Android, and Web (HTML).
Builds apps for the environment specified by env=***.
Expand Down
6 changes: 1 addition & 5 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@next2d/framework-typescript-template",
"version": "0.0.1",
"description": "Next2D Framework TypeScript template.",
"main": "src/index.ts",
"type": "module",
"scripts": {
"start": "vite",
Expand All @@ -16,11 +15,8 @@
"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",
"package": "electron-forge package",
"make": "electron-forge make"
"generate": "npx @next2d/view-generator"
},
"devDependencies": {
"@capacitor/android": "^5.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Sprite } from "@next2d/display";
/**
* @description Home画面のキャラクターの移動開始処理
* Processes the start of character movement on the Home screen.
*
*
* @return {void}
* @method
* @public
Expand Down

0 comments on commit eac6d90

Please sign in to comment.