The-Balance-FFXIV / glam

A hugo theme for the balance
Other
5 stars 24 forks source link

make glam work as a development package and as an included theme #305

Closed nonowazu closed 1 year ago

nonowazu commented 2 years ago

Basically, yarn start:dev will start work with the theme in exampleSite, and yarn start will work with anything where glam is included as a theme.

lailleo commented 1 year ago

Working fine for me on Windows.

lailleo commented 1 year ago

Putting out one last call for a follow up on this but if nothing, I'm going to merge this tomorrow.

lailleo commented 1 year ago

image

nonowazu commented 1 year ago

It's been fixed, but without changes from other PRs it's going to fall flat. I did test that yarn start:dev now works as expected. balance-static also works, but relies on configuration changes, which I have work happening here along with some code to commit here later.

hosakaii:glam king$ git pull nonowazu feat/reworked-package-dot-jason
From github-nonowazu:nonowazu/glam
 * branch            feat/reworked-package-dot-jason -> FETCH_HEAD
Updating 0ca794c..f60f3d8
Fast-forward
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hosakaii:glam king$ cd ../..
hosakaii:balance-static king$ yarn start
yarn run v1.22.19
$ concurrently --kill-others-on-fail --names static,admin "yarn start:static" "yarn start:admin"
$ node_modules/.bin/netlify-cms-proxy-server
$ hugo server --disableFastRender
[static] Start building sites ...
[static] hugo v0.101.0+extended darwin/arm64 BuildDate=unknown
[admin] info: Netlify CMS File System Proxy Server configured with /Users/king/Projects/nonowazu/balance-static
[admin] info: Netlify CMS Proxy Server listening on port 8081
[static]
[static]                    | EN
[static] -------------------+------
[static]   Pages            | 324
  Paginator pages  |   0
[static]   Non-page files   |   0
[static]   Static files     | 990
[static]   Processed images |   0
[static]   Aliases          |  15
[static]   Sitemaps         |   1
[static]   Cleaned          |   0
[static]
[static] Built in 2389 ms
[static] Watching for changes in /Users/king/Projects/nonowazu/balance-static/{archetypes,content,data,layouts,package.json,postcss.config.js,static,tailwind.config.js,themes}
[static] Watching for config changes in /Users/king/Projects/nonowazu/balance-static/config.toml
[static] Environment: "development"
[static] Serving pages from memory
[static] Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
[static] Press Ctrl+C to stop