-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ```
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ node_modules | |
|
||
.gradle | ||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters