Skip to content

Commit 09099a5

Browse files
authored
Merge pull request #12 from Next2D/develop
Develop
2 parents ac51aac + b75cc62 commit 09099a5

26 files changed

+409
-565
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ main, develop ]
16+
branches: [ "main", "develop" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ main, develop ]
19+
branches: [ "main", "develop" ]
2020
schedule:
21-
- cron: '38 23 * * 1'
21+
- cron: '44 22 * * 5'
2222

2323
jobs:
2424
analyze:
@@ -32,10 +32,11 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37-
# Learn more:
38-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
language: [ 'javascript-typescript' ]
36+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
37+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
38+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3940

4041
steps:
4142
- name: Checkout repository

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@next2d/framework-typescript-template",
33
"description": "Next2D Framework default TypeScript template.",
4-
"version": "1.0.2",
4+
"version": "2.0.0",
55
"homepage": "https://next2d.app",
66
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new",
7-
"author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
7+
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
88
"license": "MIT",
99
"keywords": [
1010
"Next2D",

template.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@next2d/webpack-typescript-auto-loader-plugin": "*",
5-
"@babel/core": "*",
6-
"@babel/plugin-transform-modules-commonjs": "*",
7-
"@babel/preset-env": "*",
8-
"@types/jest": "*",
94
"@typescript-eslint/eslint-plugin": "*",
105
"@typescript-eslint/parser": "*",
11-
"ts-jest": "*",
12-
"ts-loader": "*",
13-
"ts-node": "*",
146
"typescript": "*",
15-
"eslint": "*",
16-
"eslint-webpack-plugin": "*"
7+
"eslint": "*"
178
}
189
}
1910
}

template/.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"env": {
3-
"es6": true
3+
"browser": true,
4+
"es2021": true
45
},
56
"parserOptions": {
67
"sourceType": "module",
7-
"ecmaVersion": 2017
8+
"ecmaVersion": "latest"
89
},
910
"extends": "plugin:@typescript-eslint/eslint-recommended",
1011
"parser": "@typescript-eslint/parser",

template/.gitignore

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
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+
110
node_modules
211
dist
3-
coverage
12+
dist-ssr
13+
*.local
414

5-
.DS_Store
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
618
.idea
7-
Thumbs.db
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
825

926
src/Packages.ts
1027
src/config/Config.ts
11-
electron.index.json
28+
electron.index.json

template/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ Multi-platform builder, writes to various platforms including macOS, Windows, iO
3535
Builds apps for the environment specified by env=***.
3636

3737
### Flowchart
38-
![Flowchart](https://raw.githubusercontent.com/Next2D/framework/main/Framework_Flowchart.svg)
39-
38+
![Flowchart](https://raw.githubusercontent.com/Next2D/framework/main/Framework_Flowchart.svg)

template/__tests__/model/empty

Whitespace-only changes.

template/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6+
<title>Local Environments</title>
7+
<script type="module" src="./src/index.ts"></script>
8+
</head>
9+
<body style="margin: 0; padding: 0;">
10+
</body>
11+
</html>

template/package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,39 @@
55
"author": "Toshiyuki Ienaga <ienaga@tvon.jp>",
66
"license": "MIT",
77
"main": "src/index.ts",
8+
"type": "module",
89
"scripts": {
9-
"start": "webpack serve",
10-
"ios": "npx @next2d/builder run ios --platform ios --debug",
11-
"android": "npx @next2d/builder run android --platform android --debug",
12-
"macos": "npx @next2d/builder --platform macos --debug",
13-
"windows": "npx @next2d/builder --platform windows --debug",
14-
"build": "npx @next2d/builder",
15-
"lint": "eslint src/**/*.js",
16-
"test": "npx jest",
10+
"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",
16+
"build:steam:windows": "npx @next2d/builder --platform steam:windows --env prd",
17+
"build:steam:mac": "npx @next2d/builder --platform steam:mac --env prd",
18+
"build:steam:linux": "npx @next2d/builder --platform steam:linux --env prd",
19+
"build:web": "npx @next2d/builder --platform web --env prd",
20+
"build": "vite build",
21+
"lint": "eslint src/**/*.ts",
22+
"test": "npx vitest",
1723
"generate": "npx @next2d/view-generator"
1824
},
1925
"devDependencies": {
20-
"@babel/core": "^7.22.11",
21-
"@babel/preset-env": "^7.22.14",
22-
"@capacitor/android": "^5.3.0",
23-
"@capacitor/cli": "^5.3.0",
24-
"@capacitor/core": "^5.3.0",
25-
"@capacitor/ios": "^5.3.0",
26-
"@next2d/env": "^1.1.1",
27-
"@next2d/framework": "^1.6.2",
28-
"@next2d/webpack-typescript-auto-loader-plugin": "^1.0.1",
29-
"@types/jest": "^29.5.4",
30-
"@typescript-eslint/eslint-plugin": "^6.5.0",
31-
"@typescript-eslint/parser": "^6.5.0",
32-
"electron": "^26.1.0",
33-
"eslint": "^8.48.0",
34-
"eslint-webpack-plugin": "^4.0.1",
35-
"ts-jest": "^29.1.1",
36-
"ts-loader": "^9.4.4",
37-
"ts-node": "^10.9.1",
26+
"@capacitor/android": "^5.5.1",
27+
"@capacitor/cli": "^5.5.1",
28+
"@capacitor/core": "^5.5.1",
29+
"@capacitor/ios": "^5.5.1",
30+
"@next2d/env": "^2.0.2",
31+
"@next2d/framework": "^2.0.0",
32+
"@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",
37+
"eslint": "^8.53.0",
38+
"jsdom": "^22.1.0",
3839
"typescript": "^5.2.2",
39-
"webpack": "^5.88.2",
40-
"webpack-cli": "^5.1.4",
41-
"webpack-dev-server": "^4.15.1"
40+
"vite": "^4.5.0",
41+
"vitest": "^0.34.6"
4242
}
4343
}

template/src/App.ts

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

0 commit comments

Comments
 (0)