jouni-kantola / ruin

A CSS post-processor that saves bytes over the wire by shortening names of CSS classes.
MIT License
2 stars 0 forks source link

repo structure #17

Closed jouni-kantola closed 8 years ago

jouni-kantola commented 8 years ago

I found this blog about a Node.js structure: https://strongloop.com/strongblog/modular-node-js-express/

Also, this is relevant: https://gist.github.com/branneman/8048520

Related to tests and sub modules I think we should place them close to the module. This is my suggestion:

/ruin
  - index.js
  /lib
    - ruin.js
    - /module
      - /test
        - module.js
      - index.js
      - /sub-module
        - /test
          - sub-module.js
        - index.js
jouni-kantola commented 8 years ago

Created a PR for suggested repo structure: https://github.com/davidxcheng/ruin/pull/18

I figured it'd be easier to review than something conceptual.

jouni-kantola commented 8 years ago

I'm closing this one, since we seem happy with the way it's looking for now. If we're gonna build more tooling, we can come back to the repo structure when we know what we're up against.