Skip to content

Commit

Permalink
add adaptive version for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Llavrov committed Sep 9, 2022
0 parents commit b09ac74
Show file tree
Hide file tree
Showing 12,248 changed files with 1,197,357 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

12 changes: 12 additions & 0 deletions .idea/BlockShooter.iml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

Empty file added README.md
Empty file.
77 changes: 77 additions & 0 deletions bundler/webpack.common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCSSExtractPlugin = require('mini-css-extract-plugin')
const path = require('path')

module.exports = {
entry: path.resolve(__dirname, '../src/script.js'),
output:
{
hashFunction: 'xxhash64',
filename: 'bundle.[contenthash].js',
path: path.resolve(__dirname, '../dist')
},
devtool: 'source-map',
plugins:
[
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../src/index.html'),
minify: true
}),
new MiniCSSExtractPlugin()
],
module:
{
rules:
[
// HTML
{
test: /\.(html)$/,
use:
[
'html-loader'
]
},

// JS
{
test: /\.js$/,
exclude: /node_modules/,
use:
[
'babel-loader'
]
},

// CSS
{
test: /\.css$/,
use:
[
MiniCSSExtractPlugin.loader,
'css-loader'
]
},

// Images
{
test: /\.(jpg|png|gif|svg)$/,
type: 'images/resource',
generator:
{
filename: 'images/images/[hash][ext]'
}
},

// Fonts
{
test: /\.(ttf|eot|woff|woff2)$/,
type: 'images/resource',
generator:
{
filename: 'images/fonts/[hash][ext]'
}
}
]
}
}
50 changes: 50 additions & 0 deletions bundler/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
const path = require('path')
const { merge } = require('webpack-merge')
const commonConfiguration = require('./webpack.common.js')
const portFinderSync = require('portfinder-sync')

const infoColor = (_message) =>
{
return `\u001b[1m\u001b[34m${_message}\u001b[39m\u001b[22m`
}

module.exports = merge(
commonConfiguration,
{
stats: 'errors-warnings',
mode: 'development',
infrastructureLogging:
{
level: 'warn',
},
devServer:
{
host: 'local-ip',
port: portFinderSync.getPort(8080),
open: true,
https: false,
allowedHosts: 'all',
hot: false,
watchFiles: ['src/**'],
client:
{
logging: 'none',
overlay: true,
progress: false
},
setupMiddlewares: function (middlewares, devServer)
{
console.log('------------------------------------------------------------')
console.log(devServer.options.host)
const port = devServer.options.port
const https = devServer.options.https ? 's' : ''
const domain1 = `http${https}://${devServer.options.host}:${port}`
const domain2 = `http${https}://localhost:${port}`

console.log(`Project running at:\n - ${infoColor(domain1)}\n - ${infoColor(domain2)}`)

return middlewares
}
}
}
)
14 changes: 14 additions & 0 deletions bundler/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { merge } = require('webpack-merge')
const commonConfiguration = require('./webpack.common.js')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')

module.exports = merge(
commonConfiguration,
{
mode: 'production',
plugins:
[
new CleanWebpackPlugin()
]
}
)
2 changes: 2 additions & 0 deletions dist/664d11f069eab128.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// extracted by mini-css-extract-plugin
export {};
2 changes: 2 additions & 0 deletions dist/bundle.c4f6431aa8e8c42f.js

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

1 change: 1 addition & 0 deletions dist/bundle.c4f6431aa8e8c42f.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><link rel="stylesheet" href="664d11f069eab128.css"><title>Block shooter</title><script src="https://tgames.store/scripts/include.js"></script><script defer="defer" src="bundle.c4f6431aa8e8c42f.js"></script></head><body><div id="titleBar"><img id="icon" src="https://raw.githubusercontent.com/Deftwun/BlockBlaster/master/assets/icon.png"><div id="titleBarButtons"><img id="minimizeButton" src="https://raw.githubusercontent.com/Deftwun/BlockBlaster/master/assets/minimize.png"> <img id="closeButton" src="https://raw.githubusercontent.com/Deftwun/BlockBlaster/master/assets/close.png"></div></div></body></html>
1 change: 1 addition & 0 deletions node_modules/.bin/acorn

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

1 change: 1 addition & 0 deletions node_modules/.bin/ansi-html

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

1 change: 1 addition & 0 deletions node_modules/.bin/browserslist

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

1 change: 1 addition & 0 deletions node_modules/.bin/browserslist-lint

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

1 change: 1 addition & 0 deletions node_modules/.bin/cssesc

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

1 change: 1 addition & 0 deletions node_modules/.bin/envinfo

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

1 change: 1 addition & 0 deletions node_modules/.bin/he

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

1 change: 1 addition & 0 deletions node_modules/.bin/html-minifier-terser

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

1 change: 1 addition & 0 deletions node_modules/.bin/import-local-fixture

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

1 change: 1 addition & 0 deletions node_modules/.bin/is-docker

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

1 change: 1 addition & 0 deletions node_modules/.bin/jsesc

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

1 change: 1 addition & 0 deletions node_modules/.bin/json5

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

1 change: 1 addition & 0 deletions node_modules/.bin/mime

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

1 change: 1 addition & 0 deletions node_modules/.bin/mkdirp

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

1 change: 1 addition & 0 deletions node_modules/.bin/multicast-dns

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

1 change: 1 addition & 0 deletions node_modules/.bin/nanoid

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

1 change: 1 addition & 0 deletions node_modules/.bin/node-which

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

1 change: 1 addition & 0 deletions node_modules/.bin/parser

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

1 change: 1 addition & 0 deletions node_modules/.bin/regjsparser

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

1 change: 1 addition & 0 deletions node_modules/.bin/resolve

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

1 change: 1 addition & 0 deletions node_modules/.bin/rimraf

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

1 change: 1 addition & 0 deletions node_modules/.bin/semver

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

1 change: 1 addition & 0 deletions node_modules/.bin/terser

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

1 change: 1 addition & 0 deletions node_modules/.bin/uuid

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

1 change: 1 addition & 0 deletions node_modules/.bin/webpack

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

1 change: 1 addition & 0 deletions node_modules/.bin/webpack-cli

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

1 change: 1 addition & 0 deletions node_modules/.bin/webpack-dev-server

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

Loading

0 comments on commit b09ac74

Please sign in to comment.