Skip to content

Commit 9304c1f

Browse files
committed
Merge branch 'develop'
2 parents 9774e5f + 4683e32 commit 9304c1f

File tree

959 files changed

+3082
-226676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

959 files changed

+3082
-226676
lines changed

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
node_modules/
22
dev/
3-
bundle.js
4-
factorio-server-manager
5-
factorio_server_manager
3+
/factorio-server-manager*
4+
/factorio_server_manager*
65
auth.leveldb*
76
conf.json
87
*.exe
98
build/
109
/mod_packs/*
1110
npm-debug.log
1211
.idea/
13-
/ui/package-lock.json
12+
/package-lock.json
1413
factorio.auth
1514
/pkg/
15+
mix-manifest.json
16+
/app/**/vendor/
17+
/app/*.js*
18+
/app/*.css*

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ install:
1212
- go get github.com/hpcloud/tail
1313
- go get github.com/gorilla/websocket
1414
- go get github.com/majormjr/rcon
15-
- go get github.com/Masterminds/semver
1615
- export GOPATH="$HOME/gopath/src/github.com/mroote/factorio-server-manager/:$GOPATH"
1716

1817
script:

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ build/factorio-server-manager-%.zip: app/bundle.js factorio-server-manager-%
2020
@zip -r $@ factorio-server-manager > /dev/null
2121
@rm -r factorio-server-manager
2222

23-
app/bundle.js:
23+
app/bundle:
2424
@echo "Building Frontend"
25-
@cd ui && npm install && npm run build
25+
@npm install && npm run build
2626

2727
factorio-server-manager-linux: godeps
2828
@echo "Building Backend - Linux"
@@ -47,3 +47,6 @@ clean:
4747
@echo "Cleaning"
4848
@rm -r build/
4949
@rm app/bundle.js
50+
@rm app/bundle.css
51+
@rm app/fonts/vendor
52+
@rm app/images/vendor

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,27 @@ make
108108
```
109109

110110
#### Building the React Frontend alone
111-
Frontend is built using React and the AdminLTE CSS framework. See app/dist/ for AdminLTE included files and license.
111+
Frontend is built using React and the AdminLTE CSS framework.
112112

113113
The root of the UI application is served at app/index.html. Run the npm build script and the Go application during development to get live rebuilding of the UI code.
114114

115115
All necessary CSS and Javascript files are included for running the UI.
116116

117117
Transpiled bundle.js application is output to app/bundle.js, 'npm run build' script starts webpack to build the React application for development.
118118
```
119-
make app/bundle.js
119+
make app/bundle
120120
```
121121

122+
##### For development
123+
The frontend is completly build by npm with laravel-mix. All plugins are buld into the compiled files. No plugins need to be load fro external sources.
124+
125+
It has different variants to build the frontend, provided by laravel-mix:
126+
- `npm run dev` Build the code for development. This will also generate map-files, so the browser, can show, what line and file causes the output.
127+
- `npm run watch` Build the code for development like the dev-command. This will not stop and automatically rebuild, when files are changed and saved.
128+
- `npm run hot` Build the code for development. It has the same behaviour like the watch-command and also causes a hotReload of the files inside the browser (in theory)
129+
- `npm run build` Build the code for deployment. It will generate no map-files and also minifies the bundle-files.
130+
In every of those cases, also images and fonts will be copied to the app-folder.
131+
122132
### Building for Windows
123133
1. Download the latest release source zip file
124134
* [https://github.com/mroote/factorio-server-manager/releases](https://github.com/mroote/factorio-server-manager/releases)
@@ -145,7 +155,6 @@ go get github.com/gorilla/mux
145155
go get github.com/hpcloud/tail
146156
go get github.com/gorilla/websocket
147157
go get github.com/majormjr/rcon
148-
go get github.com/Masterminds/semver
149158
```
150159

151160
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down left shift and right click an empty area of the folder. Then click "Open command windows here"

app/dist/LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/dist/README.md

Lines changed: 0 additions & 235 deletions
This file was deleted.

app/dist/bootstrap/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)