mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
feat: include build:example script (#77)
This commit is contained in:
parent
0e2dba65a8
commit
1304113842
|
@ -31,7 +31,13 @@ Runs prettier on the entire project directory.
|
||||||
## Assets
|
## Assets
|
||||||
|
|
||||||
The `assets/` directory is where you can write JS and SCSS, which get processed
|
The `assets/` directory is where you can write JS and SCSS, which get processed
|
||||||
into CSS files before being placed in the `static/` directory.
|
into CSS files before being placed in the `static/` directory.
|
||||||
|
|
||||||
|
### Making `scss` changes
|
||||||
|
|
||||||
|
If you make a change to a source `scss` file in `assets/scss`, you will need to make sure that you rebuild the `exampleSite/resources/_gen/assets/` directory to reflect the change in the demo site, else the demo's styles will become stale.
|
||||||
|
|
||||||
|
If you are running `yarn develop`, `hugo` will pick up these changes by default. You can also run `yarn build:example`, which will trigger a one-time rebuild of the example site. From there, commit the updated `resources/_gen` directory to version control.
|
||||||
|
|
||||||
## Questions
|
## Questions
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"develop": "hugo server -s ./exampleSite/",
|
"develop": "hugo server -s ./exampleSite/",
|
||||||
|
"build:example": "hugo -s ./exampleSite/",
|
||||||
"format": "prettier ./ --write"
|
"format": "prettier ./ --write"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user