goessner / microjam

A minimalistic Jamstack approach for creating GitHub-Pages hosted sites.
https://goessner.github.io/microjam/
MIT License
44 stars 5 forks source link

Divide source and target dir #2

Closed klawr closed 4 years ago

klawr commented 4 years ago

Currently all files seem to be saved to the /docs folder.

It may be cool to be able to divide source and target directory to clean up the directory structure a bit.

Similar to #1 it may be nice to be able to define source and target directory. The respective definitions could be made in the package.json, similar to the proposition made in #1, e.g. as:

{
    "name": "first",
    "description": "My first web page using microjam",
    "version": "0.1.0",
    "author": "it's me",
    "microjam": {
         "dist": "docs",
         "src": "src"
     }
}

This would allow to keep the working directory more clean.

goessner commented 4 years ago

hmm .. in fact I started with something like ...

{
    "name": "first",
    "description": "My first web page using microjam",
    "version": "0.1.0",
    "author": "it's me",
    "microjam": {
         "dst": "docs",
         "src": "src"
     }
}

... but I ran into problems

I found no acceptable solution. So I finally returned to that most minimal working solution of a single 'docs' folder.

Any acceptable proposals are welcome.

goessner commented 4 years ago

... sub-directories of docs should work. Not tested intensively though ..

goessner commented 4 years ago

... as designed !