Code Monkey home page Code Monkey logo

Comments (7)

SynergiAios avatar SynergiAios commented on May 29, 2024 1

Now the declarration in the documentation is really clear and nice to understand. Good job, thx

from shins.

MikeRalphson avatar MikeRalphson commented on May 29, 2024

Hi @SynergiAios there's no such thing as a stupid question, only insufficient documentation!

If you use the option --minify to shins, the only things you need to take to your web host is the generated index.html and the contents of the pub directory, which should be kept relative to it, so the structure is always:

{whatever}/index.html
{whatever}/pub/css/
{whatever}/pub/js/

If you use the --inline option to shins, then everything is bundled into the index.html file and no pub directory is required.

I can definitely improve the README.md in this area I think, so thanks for pointing it out.

from shins.

SynergiAios avatar SynergiAios commented on May 29, 2024

Wow that is awesome thx.

from shins.

fdanielsen avatar fdanielsen commented on May 29, 2024

Hi,

I don't want to create a new issue in case it's just my blindness here… But I don't see how the documentation about --minify is correct. Even after using that, there's still references to source/images/navbar.png for example, and without providing a custom logo URL the default logo will also be requested from source/images/logo.png.

In Slate everything relevant from source gets copied to a build directory. In Shins this is a bit more confusing as it seems pub is meant to contain pre-built resources like CSS and JS, with eg. a separate command to build styles. But images are kept in source.

So, how can one simply deploy the index.html and pub directory then?

It would make sense to me if all original resources are kept in source, but then gets copied to pub with optional build/compilation if needed/requested (eg. .scss to .css, .js bundled and minified and optionally images compressed).

from shins.

MikeRalphson avatar MikeRalphson commented on May 29, 2024

@fdanielsen please could you create a new issue? It just took me half-an-hour to find this read notification again to see your comment.

from shins.

fdanielsen avatar fdanielsen commented on May 29, 2024

Certainly, sorry about that.

from shins.

MikeRalphson avatar MikeRalphson commented on May 29, 2024

No problem, just didn't want it to get lost again!

from shins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.