mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-02-01 13:17:45 +02:00
added new laravel-mix section to readme
This commit is contained in:
parent
fdeef278f1
commit
598e499ed2
7
Makefile
7
Makefile
@ -20,9 +20,9 @@ build/factorio-server-manager-%.zip: app/bundle.js factorio-server-manager-%
|
|||||||
@zip -r $@ factorio-server-manager > /dev/null
|
@zip -r $@ factorio-server-manager > /dev/null
|
||||||
@rm -r factorio-server-manager
|
@rm -r factorio-server-manager
|
||||||
|
|
||||||
app/bundle.js:
|
app/bundle:
|
||||||
@echo "Building Frontend"
|
@echo "Building Frontend"
|
||||||
@cd ui && npm install && npm run build
|
@npm install && npm run build
|
||||||
|
|
||||||
factorio-server-manager-linux: godeps
|
factorio-server-manager-linux: godeps
|
||||||
@echo "Building Backend - Linux"
|
@echo "Building Backend - Linux"
|
||||||
@ -47,3 +47,6 @@ clean:
|
|||||||
@echo "Cleaning"
|
@echo "Cleaning"
|
||||||
@rm -r build/
|
@rm -r build/
|
||||||
@rm app/bundle.js
|
@rm app/bundle.js
|
||||||
|
@rm app/bundle.css
|
||||||
|
@rm app/fonts/vendor
|
||||||
|
@rm app/images/vendor
|
||||||
|
14
README.md
14
README.md
@ -108,7 +108,7 @@ make
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Building the React Frontend alone
|
#### Building the React Frontend alone
|
||||||
Frontend is built using React and the AdminLTE CSS framework. See app/dist/ for AdminLTE included files and license.
|
Frontend is built using React and the AdminLTE CSS framework.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
@ -116,9 +116,19 @@ All necessary CSS and Javascript files are included for running the UI.
|
|||||||
|
|
||||||
Transpiled bundle.js application is output to app/bundle.js, 'npm run build' script starts webpack to build the React application for development.
|
Transpiled bundle.js application is output to app/bundle.js, 'npm run build' script starts webpack to build the React application for development.
|
||||||
```
|
```
|
||||||
make app/bundle.js
|
make app/bundle
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### For development
|
||||||
|
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.
|
||||||
|
|
||||||
|
It has different variants to build the frontend, provided by laravel-mix:
|
||||||
|
- `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.
|
||||||
|
- `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.
|
||||||
|
- `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)
|
||||||
|
- `npm run build` Build the code for deployment. It will generate no map-files and also minifies the bundle-files.
|
||||||
|
In every of those cases, also images and fonts will be copied to the app-folder.
|
||||||
|
|
||||||
### Building for Windows
|
### Building for Windows
|
||||||
1. Download the latest release source zip file
|
1. Download the latest release source zip file
|
||||||
* [https://github.com/mroote/factorio-server-manager/releases](https://github.com/mroote/factorio-server-manager/releases)
|
* [https://github.com/mroote/factorio-server-manager/releases](https://github.com/mroote/factorio-server-manager/releases)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user