Skip to content

Commit ef20ab1

Browse files
authored
Merge pull request #4 from whitecrownclown/master
Add difficulty levels by increasing bugs speed
2 parents aa82b65 + 9a755f5 commit ef20ab1

15 files changed

Lines changed: 179 additions & 1094 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
static/build
33
static/build/*.js
44
static/build/*.map
5+
node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Balaj Marius <balajmarius@gmail.com> (https://balajmarius.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

fuse.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const name = isDevelopment ? 'build/bundle' : 'build/dist.min'
88
const plugins = [fsbx.BabelPlugin()]
99

1010
if (!isDevelopment) {
11+
1112
plugins.push(fsbx.UglifyJSPlugin())
13+
1214
}
1315

1416
// config
@@ -18,26 +20,26 @@ const fuse = fsbx.FuseBox.init({
1820
debug: isDevelopment,
1921
log: isDevelopment,
2022
sourceMaps: isDevelopment,
21-
plugins
23+
plugins,
2224
})
2325

2426
// start dev server
2527
if (isDevelopment) {
28+
2629
fuse.dev({
2730
open: true,
28-
root: 'static'
31+
root: 'static',
2932
})
33+
3034
}
3135

3236
// bundle
33-
const bundler = fuse
34-
.bundle(name)
35-
.instructions('>main.js')
37+
const bundler = fuse.bundle(name).instructions('>main.js')
3638

3739
if (isDevelopment) {
38-
bundler
39-
.watch('src/**')
40-
.hmr()
40+
41+
bundler.watch('src/**').hmr()
42+
4143
}
4244

4345
fuse.run()

0 commit comments

Comments
 (0)