Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/build-css
Browse files Browse the repository at this point in the history
  • Loading branch information
aokashi committed Sep 22, 2019
2 parents 414f5ed + 98d8637 commit fc7c9da
Show file tree
Hide file tree
Showing 20 changed files with 394 additions and 291 deletions.
476 changes: 273 additions & 203 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/assets/html/manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ <h2>注意</h2>
<li>メッセージ表示中の物体パーツのアニメーション</li>
</ul>
<p>WWA作成ツールは作者NAO氏の許可を得て再配布しております。</p>
<p>
wwa.jsを更新したにも関わらず、古いバージョンの挙動をする場合には、wwa.jsの名前をバージョンごとに変更し、script要素で読み込むwwa.jsのファイル名を変更すると解決できるかもしれません、
将来的には、ブラウザにWWA Wingのエンジン本体をキャッシュさせない機構も検討したいと考えています。
</p>
</section>

<section>
Expand Down
2 changes: 1 addition & 1 deletion packages/build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"jszip": "^3.1.5",
"shelljs": "^0.8.2",
"shx": "^0.3.2",
"typescript": "^2.9.2"
"typescript": "^3.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/debug-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"nexe": "^3.0.0-beta.15",
"shelljs": "^0.8.2",
"shx": "^0.3.2",
"typescript": "^3.3.3333"
"typescript": "^3.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/debug-server/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as express from "express";
import express from "express";

const baseDir = process.argv.length < 3 ? "." : process.argv[2];

Expand Down
14 changes: 0 additions & 14 deletions packages/engine/package-lock.json

This file was deleted.

11 changes: 7 additions & 4 deletions packages/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version_up:minor": "npm version minor && npm run build",
"version_up:major": "npm version major && npm run build",
"build": "npm-run-all clean build:*",
"build:webpack": "webpack --config webpack.config.js && webpack --config webpack.config.prod.js",
"build:webpack": "webpack --config webpack.config.ts && webpack --config webpack.config.prod.ts",
"build:webpack:dev": "webpack -w",
"deploy": "shx mkdir -p lib && npm-run-all deploy:*",
"deploy:audio": "shx cp -R ./node_modules/@wwawing/assets/audio lib/",
Expand Down Expand Up @@ -38,6 +38,8 @@
"homepage": "https://github.com/WWAWing/WWAWing#readme",
"devDependencies": {
"@types/crypto-js": "^3.1.43",
"@types/uglifyjs-webpack-plugin": "^1.1.0",
"@types/webpack": "^4.39.1",
"@wwawing/assets": "0.0.0",
"@wwawing/common-interface": "0.0.0",
"@wwawing/debug-server": "0.0.0",
Expand All @@ -48,10 +50,11 @@
"shelljs": "^0.8.2",
"shx": "^0.3.2",
"ts-loader": "^4.3.0",
"typescript": "^2.9.2",
"ts-node": "^8.4.1",
"typescript": "^3.6.3",
"uglify-js": "^3.3.27",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1"
"webpack": "^4.40.2",
"webpack-cli": "^3.3.9"
}
}
17 changes: 0 additions & 17 deletions packages/engine/webpack.config.prod.js

This file was deleted.

24 changes: 24 additions & 0 deletions packages/engine/webpack.config.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as webpack from "webpack";
import config from "./webpack.config";
import UglifyJsPlugin from "uglifyjs-webpack-plugin";

export default {
...config,
output: {
...config.output,
pathinfo: false,
filename: "wwa.js"
},
plugins: [
...config.plugins,
new UglifyJsPlugin({
uglifyOptions:{
keep_fnames: false,
compress: {
warnings: false
}
},
extractComments: false
})
],
} as webpack.Configuration;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const webpack = require("webpack");
const path = require("path");
const package = require("./package.json");
import * as webpack from "webpack";
import * as path from "path";
import * as packageJson from "./package.json";

const cryptoJsLicenseComment = `crypto-js\
(c) Jeff Mott / Evan Vosberg /\
Expand All @@ -10,7 +10,7 @@ const wwaWingEngineLicenseComment = `WWA Wing Engine\
(c) NAO / WWA Wing Team /\
MIT License https://github.com/WWAWing/WWAWing/blob/develop/packages/engine/LICENSE`;

module.exports = {
const config: webpack.Configuration = {
mode: "development",
entry: "./src/wwa_main.ts",
output: {
Expand All @@ -31,7 +31,7 @@ module.exports = {
},
plugins: [
new webpack.DefinePlugin({
VERSION_WWAJS: JSON.stringify(package.version)
VERSION_WWAJS: JSON.stringify(packageJson.version)
}),
new webpack.BannerPlugin({
banner: `@license ${wwaWingEngineLicenseComment}\n@license ${cryptoJsLicenseComment}`
Expand All @@ -41,3 +41,5 @@ module.exports = {
ignored: ["node_modules", 'lib/**/*.js']
}
};

export default config;
14 changes: 8 additions & 6 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"build": "npm run clean && npm run build:worker && npm run build:noworker",
"build:worker": "npm run build:worker:dev && npm run build:worker:prod",
"build:worker:dev": "webpack",
"build:worker:prod": "webpack --config ./webpack.config.prod.js",
"build:worker:prod": "webpack --config ./webpack.config.prod.ts",
"build:noworker": "npm run build:noworker:dev && npm run build:noworker:prod",
"build:noworker:dev": "webpack --config ./webpack.config.noworker.js",
"build:noworker:prod": "webpack --config ./webpack.config.prod.noworker.js",
"build:noworker:dev": "webpack --config ./webpack.config.noworker.ts",
"build:noworker:prod": "webpack --config ./webpack.config.prod.noworker.ts",
"clean": "shx rm -rf lib"
},
"repository": {
Expand All @@ -30,16 +30,18 @@
},
"homepage": "https://github.com/WWAWing/WWALoader#readme",
"devDependencies": {
"@types/uglifyjs-webpack-plugin": "^1.1.0",
"@wwawing/common-interface": "0.0.0",
"http-server": "^0.10.0",
"npm-run-all": "^4.1.5",
"shelljs": "^0.8.2",
"shx": "^0.3.2",
"ts-loader": "^4.3.0",
"typescript": "^2.9.2",
"ts-node": "^8.4.1",
"typescript": "^3.6.3",
"uglify-js": "^3.3.27",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1"
"webpack": "^4.40.2",
"webpack-cli": "^3.3.9"
}
}
9 changes: 0 additions & 9 deletions packages/loader/webpack.config.noworker.js

This file was deleted.

16 changes: 16 additions & 0 deletions packages/loader/webpack.config.noworker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import config from "./webpack.config";
import * as webpack from "webpack";

export default {
...config,
plugins: [
...config.plugins,
new webpack.DefinePlugin({
IS_WEB_WORKER_MODE: JSON.stringify(false)
})
],
output: {
...config.output,
filename: "wwaload.long.noworker.js"
}
} as webpack.Configuration;
16 changes: 0 additions & 16 deletions packages/loader/webpack.config.prod.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/loader/webpack.config.prod.noworker.js

This file was deleted.

16 changes: 16 additions & 0 deletions packages/loader/webpack.config.prod.noworker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import config from "./webpack.config.prod";
import * as webpack from "webpack";

export default {
...config,
plugins: [
...config.plugins,
new webpack.DefinePlugin({
IS_WEB_WORKER_MODE: JSON.stringify(false)
})
],
output: {
...config.output,
filename: "wwaload.noworker.js"
}
} as webpack.Configuration;
24 changes: 24 additions & 0 deletions packages/loader/webpack.config.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as webpack from "webpack";
import config from "./webpack.config";
import UglifyJsPlugin from "uglifyjs-webpack-plugin";

export default {
...config,
output: {
...config.output,
pathinfo: false,
filename: "wwaload.js"
},
plugins: [
...config.plugins,
new UglifyJsPlugin({
uglifyOptions:{
keep_fnames: false,
compress: {
warnings: false
}
},
extractComments: false
})
],
} as webpack.Configuration;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const webpack = require("webpack");
const path = require("path");
import * as webpack from "webpack";
import * as path from "path";

module.exports = {
const config: webpack.Configuration = {
mode: "development",
entry: "./src/index.ts",
output: {
Expand All @@ -26,3 +26,5 @@ module.exports = {
})
]
};

export default config;
7 changes: 5 additions & 2 deletions packages/styles/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
"removeComments": true,
"experimentalDecorators": true,
"noLib": false,
"esModuleInterop": true,
"resolveJsonModule": true
},
}

0 comments on commit fc7c9da

Please sign in to comment.