Skip to content

Commit f2c8b71

Browse files
authored
Merge pull request #13 from Next2D/develop
Develop
2 parents 09099a5 + d3e0c3b commit f2c8b71

File tree

10 files changed

+101
-58
lines changed

10 files changed

+101
-58
lines changed

.gitignore

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1-
.DS_Store
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
218
.idea
3-
Thumbs.db
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.github
2+
.gitattributes
3+
.gitignore
24
template/dist
5+
template/ios
6+
template/android
37
template/node_modules
48
template/package.json
59
template/src/Packages.ts
610
template/src/config/Config.ts
7-
template/electron.index.json
11+
template/electron.index.json

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Next2D
3+
Copyright (c) 2021 - 2023 Next2D
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

template/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ dist-ssr
2525

2626
src/Packages.ts
2727
src/config/Config.ts
28-
electron.index.json
28+
electron.index.json
29+
out/

template/capacitor.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"appId": "app.example.appId",
33
"appName": "Example-Product-Name",
4-
"webDir": "./dist/web/prd/",
4+
"webDir": "dist/ios/prd/",
55
"bundledWebRuntime": false,
66
"plugins": {
77
"SplashScreen": {

template/electron.build.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

template/electron.build.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"appId": "app.example.appId",
3+
"directories": {
4+
"output": "dist"
5+
},
6+
"copyright": "Copyright ©2023 ExampleProductName",
7+
"extraMetadata": {
8+
"name": "ExampleProductName",
9+
"author": "You'r name.",
10+
"main": "electron.js",
11+
"type": "commonjs"
12+
},
13+
"files": [
14+
"!node_modules/@next2d/",
15+
"!node_modules/@eslint/",
16+
"!node_modules/@jest/",
17+
"!node_modules/@vitest/",
18+
"!node_modules/@ionic/",
19+
"!node_modules/@capacitor/",
20+
"!node_modules/vite/",
21+
"!node_modules/vite-node/",
22+
"!node_modules/vitest/",
23+
"!package.json",
24+
"node_modules/",
25+
"electron.js",
26+
"electron.index.json"
27+
],
28+
"mac": {
29+
"target": [{
30+
"target": "zip",
31+
"arch": ["universal"]
32+
}],
33+
"category": "Games",
34+
"icon": "icon/macos/icon.icns"
35+
},
36+
"win": {
37+
"target": [{
38+
"target": "nsis",
39+
"arch": ["x64"]
40+
}],
41+
"icon": "icon/windows/icon.png"
42+
},
43+
"linux": {
44+
"target": "zip",
45+
"category": "Games",
46+
"icon": "icon/linux/icon.png"
47+
}
48+
}

template/electron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const createWindow = () =>
1414
{
1515
const browserWindow = new BrowserWindow({
1616
"fullscreen": true,
17-
"autoHideMenuBar": true,
17+
"autoHideMenuBar": false,
1818
"webPreferences": {
1919
"nodeIntegration": false
2020
}

template/package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,37 @@
22
"name": "@next2d/framework-typescript-template",
33
"version": "0.0.1",
44
"description": "Next2D Framework TypeScript template.",
5-
"author": "Toshiyuki Ienaga <ienaga@tvon.jp>",
6-
"license": "MIT",
75
"main": "src/index.ts",
86
"type": "module",
97
"scripts": {
108
"start": "vite",
11-
"dev:ios": "npx @next2d/builder run ios --platform ios --debug",
12-
"dev:android": "npx @next2d/builder run android --platform android --debug",
13-
"dev:macos": "npx @next2d/builder --platform macos --debug",
14-
"dev:windows": "npx @next2d/builder --platform windows --debug",
15-
"dev:linux": "npx @next2d/builder --platform linux --debug",
9+
"preview:ios": "npx @next2d/builder --platform ios --preview",
10+
"preview:android": "npx @next2d/builder --platform android --preview",
11+
"preview:macos": "npx @next2d/builder --platform macos --preview",
12+
"preview:windows": "npx @next2d/builder --platform windows --preview",
13+
"preview:linux": "npx @next2d/builder --platform linux --preview",
1614
"build:steam:windows": "npx @next2d/builder --platform steam:windows --env prd",
17-
"build:steam:mac": "npx @next2d/builder --platform steam:mac --env prd",
15+
"build:steam:macos": "npx @next2d/builder --platform steam:macos --env prd",
1816
"build:steam:linux": "npx @next2d/builder --platform steam:linux --env prd",
1917
"build:web": "npx @next2d/builder --platform web --env prd",
20-
"build": "vite build",
18+
"build": "npx @next2d/builder",
2119
"lint": "eslint src/**/*.ts",
2220
"test": "npx vitest",
23-
"generate": "npx @next2d/view-generator"
21+
"generate": "npx @next2d/view-generator",
22+
"package": "electron-forge package",
23+
"make": "electron-forge make"
2424
},
2525
"devDependencies": {
2626
"@capacitor/android": "^5.5.1",
2727
"@capacitor/cli": "^5.5.1",
2828
"@capacitor/core": "^5.5.1",
2929
"@capacitor/ios": "^5.5.1",
30-
"@next2d/env": "^2.0.2",
31-
"@next2d/framework": "^2.0.0",
30+
"@next2d/framework": "^2.0.1",
3231
"@next2d/player": "^1.18.9",
33-
"@next2d/vite-auto-loader-plugin": "^0.0.7",
34-
"@typescript-eslint/eslint-plugin": "^6.9.1",
35-
"@typescript-eslint/parser": "^6.9.1",
36-
"electron": "^27.0.3",
32+
"@next2d/vite-auto-loader-plugin": "^1.0.0",
33+
"@typescript-eslint/eslint-plugin": "^6.10.0",
34+
"@typescript-eslint/parser": "^6.10.0",
35+
"electron": "^27.0.4",
3736
"eslint": "^8.53.0",
3837
"jsdom": "^22.1.0",
3938
"typescript": "^5.2.2",

template/vite.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
/// <reference types="vitest" />
2+
13
import { defineConfig } from "vite";
24
import path from "path";
3-
import env from "@next2d/env";
45
import autoLoader from "@next2d/vite-auto-loader-plugin";
56

67
const port: number = 5173;
78
export default defineConfig({
9+
"base": "./",
810
"build": {
11+
"outDir": "dist",
912
"target": "esnext",
1013
"modulePreload": {
1114
"polyfill": false
@@ -17,7 +20,7 @@ export default defineConfig({
1720
}
1821
},
1922
"plugins": [
20-
autoLoader(env())
23+
autoLoader()
2124
],
2225
"server": {
2326
"open": "index.html",

0 commit comments

Comments
 (0)