パーティクルの衝突をシミュレートするコードを書いていたら、タピオカミルクが出来上がりました。
https://tapioca-milk.ttk1.dev/
npm start
$ cat *.code-workspace
{
"folders": [
{
"path": "."
}
],
"settings": {
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};${workspaceRoot}\\node_modules\\.bin"
}
}
}
npm init #適当に情報入力
npm install --save-dev \
ts-loader \
tslint \
typescript \
webpack \
webpack-cli \
webpack-dev-server \
tweakpane
tslint --init
tsc --init
$ cat webpack.config.js
const path = require('path');
module.exports = {
entry: {
index: './src/index.ts'
},
output: {
path: path.resolve(__dirname, 'docs'),
filename: 'index.js'
},
devServer: {
contentBase: 'docs',
port: 3000
},
resolve: {
extensions: ['.ts', '.js', '.json']
},
module: {
rules: [{
test: /\.ts$/,
exclude: [/node_modules/],
use: [
'ts-loader'
]
}]
}
};