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:
John Niang
2022-11-14 18:48:15 +08:00
committed by GitHub
parent 4bbabe6770
commit aad17d4b5d
4 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View File

@@ -23,3 +23,4 @@ node_modules
.gradle
build
dist

13
Makefile Normal file
View 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

View File

@@ -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

View File

@@ -1,3 +1,4 @@
// This script is only for IntelliSense of thymeleaf.
plugins {
id 'java'
}