Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boilerplate Directory Structure #9

Open
BenjaminRCooper opened this issue Oct 3, 2013 · 8 comments
Open

Boilerplate Directory Structure #9

BenjaminRCooper opened this issue Oct 3, 2013 · 8 comments

Comments

@BenjaminRCooper
Copy link
Contributor

No description provided.

@ghost ghost assigned BenjaminRCooper Oct 3, 2013
BenjaminRCooper pushed a commit that referenced this issue Oct 3, 2013
@BenjaminRCooper
Copy link
Contributor Author

Want to add that G has asked we do not make any files dependent of the parent directory due to the occasions when we have various versions of landing pages etc.

@markgoodyear
Copy link

Any ideas for a directory structure yet?

Currently I'm using:

  • project/parent
    • dist/distribution files, for deploying
    • node_modules/node modules for Grunt
    • src/source files, such as Sass and JS files to be concatenated + minified
    • .editorconfig
    • .gitignore
    • .jshintrc
    • Gruntfile.js
    • package.json

You'd then deploy dist/ so any src/ files—such as Sass files—aren't uploaded to the server. The stuff in the parent dir is needed in the parent dir (I believe), however these files shouldn't need any changes. If the Gruntfile.js does need to be tweaked for a different version of the project, that should be handled nicely with branches shouldn't it?

@BenjaminRCooper
Copy link
Contributor Author

Directory structure is basically what you have specified above mate, its within the boilerplate branch.

The Grunt File should not need to change, as long as we don't reference the parent directory.

B

@markgoodyear
Copy link

Awesome.

What do you currently do about images? I've got images in the src/ folder, which Grunt then compresses them to the dist/ folder. Is that something to add into the boilerplate at some point?

@BenjaminRCooper
Copy link
Contributor Author

Exactly that mate was our approach too :)

Just want to take a closer look at some of the compression tools for performance and quality purposes first, but thats a different issue altogether.

B

@BenjaminRCooper
Copy link
Contributor Author

Reopened to discuss for the boilerplate the Front End team are currently working on

@BenjaminRCooper
Copy link
Contributor Author

I suggest we change this directory structure slightly, in that we change 'dist' to 'public'.

Just seems like most frameworks these days come with a public directory which files are served from and it makes sense for consistency purposes.

Thoughts?

Ben

@grahammorley
Copy link

+1. I like the clarity of 'public'.

@BenjaminRCooper BenjaminRCooper removed their assignment May 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants