mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-10-14 22:47:03 +00:00
Add build script into Makefile (#16)
#### What this PR does? Add build script into Makefile to build the theme conviniently. See README.md for more. /kind feature ```release-note None ```
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,3 +23,4 @@ node_modules
|
||||
|
||||
.gradle
|
||||
build
|
||||
dist
|
||||
|
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
build: clean
|
||||
echo "Building theme"
|
||||
pnpm install
|
||||
pnpm build
|
||||
echo "Theme built successfully!"
|
||||
echo "Collect theme dist"
|
||||
mkdir dist
|
||||
cp -r templates dist
|
||||
cp theme.yaml settings.yaml README.md dist
|
||||
|
||||
clean:
|
||||
echo "Clean dist folder"
|
||||
rm -rf dist
|
@@ -1,3 +1,10 @@
|
||||
# theme-earth
|
||||
|
||||
Default theme for Halo 2.0(WIP)
|
||||
|
||||
## Build theme
|
||||
|
||||
> If you are using Windows OS, please install `make` command and execute `make` in Git Bash or WSL.
|
||||
|
||||
- Execute command `make build` to generate dist folder
|
||||
- Zip the dist folder and upload to your Halo
|
||||
|
@@ -1,3 +1,4 @@
|
||||
// This script is only for IntelliSense of thymeleaf.
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
Reference in New Issue
Block a user