Autobuild Ink to JSON

This commit is contained in:
Alexander Yakovlev 2020-11-07 16:40:32 +07:00
parent 603aca61a2
commit 8b89b421ed
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3
7 changed files with 1467 additions and 1338 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
*.exe filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text

BIN
ink-engine-runtime.dll (Stored with Git LFS) Executable file

Binary file not shown.

BIN
ink_compiler.dll (Stored with Git LFS) Executable file

Binary file not shown.

BIN
inklecate.exe (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -7,24 +7,23 @@
"watch": "./node_modules/webpack/bin/webpack.js --watch"
},
"dependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"autoprefixer": "^9.8.0",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"autoprefixer": "^9.8.6",
"babel-loader": "^8.1.0",
"bootstrap": "^4.5.0",
"browser-sync": "^2.26.7",
"copy-webpack-plugin": "^6.0.2",
"bootstrap": "^4.5.3",
"browser-sync": "^2.26.13",
"copy-webpack-plugin": "^6.3.0",
"cross-env": "^7.0.2",
"css-loader": "^3.5.3",
"inkjs": "^1.10.5",
"css-loader": "^3.6.0",
"inkjs": "^1.11.0",
"jquery": "^3.5.1",
"mini-css-extract-plugin": "^0.9.0",
"postcss-loader": "^3.0.0",
"sass": "^1.26.8",
"sass": "^1.29.0",
"sass-loader": "^8.0.2",
"webpack": "^4.43.0"
},
"devDependencies": {
"webpack-cli": "^3.3.11"
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-shell-plugin": "^0.5.0"
}
}

File diff suppressed because it is too large Load diff

View file

@ -2,21 +2,26 @@ const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const devMode = (process.env.NODE_ENV !== 'production')
const CopyPlugin = require('copy-webpack-plugin');
const WebpackShellPlugin = require('webpack-shell-plugin');
module.exports = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
entry: [
'./js/script.js',
'./scss/style.scss',
'./scss/style.scss'
],
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css'
}),
new WebpackShellPlugin({
onBuildStart:[
'mono inklecate.exe -o build/fogg.ink.json game/fogg.ink'
]
}),
new CopyPlugin({
patterns: [
{ from: './game/*.json', to: '' },
{ from: './html/', to: '' },
],
}),
@ -48,7 +53,7 @@ module.exports = {
// Compiles Sass to CSS
'sass-loader'
]
}
},
]
},
output: {