Open hershmire opened 10 years ago
Good feedback.
pages
vs views
thing. I think it conflicts with what I normally constitute as a view
as it normally pertains to a viewModel
in javascript. Otherwise, I'm down with compiling these out from pages
or views
and placing them at server root. .tmp
I don't like this because we shouldn't have to move any static assets while in development because we user the connect server to mount those files from their original location. Placing these files in a different location for dist
would cause pathing issues. What is your argument for moving these to root?views
seems to make more sense to me over pages
as we'll be storing partials, layouts, (helpers?), and page views in there. This of course is separate from JS views which are stored in their specific module folder location.
My assets comment would follow the same pattern for dist
as well. I wasn't referring to change it only while in development mode. My only argument is for a simplified path for the end user. I know Rails handles their asset pipeline similarly but not sure what their main reasoning to do that is. So no big case against this one yet. Just wanted your opinion on it.
Thoughts on my comment about removing the common
folder?
I'm cool with switching from pages
to views
. I'll included that in my next pull request.
I'm also good on removing the common
folder.
The assets thing I think I'd like to talk to you a bit more about.
Sounds good. Let me know what you're planning to work on and I'll work on another feature or issue once it's logged in Github issues.
I'm currently working on a few things
1) Scaffold the project in Coffeescript or JavaScript including using the appropriate linter and auto configuring the watchers/compilers with grunt
2) Scaffold the project using either SASS or Stylus including setting up the proper module glob patterns
3) Finish the Module sub scaffolder so you can do something like yo testudo:module Foo
and it will create a stub module in either JS/CS and Stylus/SASS
4) I want to break out all the sub generators into their own folders so everything is clean and separate.
5) I want to add a CLI for testudo so you can do things like testudo module Foo
and testudo server
... basically wrapping Grunt, Yo, and Bower in one interface.
so basically I'm hoping to finish these soon
What are your thoughts on the following:
apps/pages/
toapps/views/
app/view/
to just reside in the root of.tmp/
. i.e. from below structureapp/common/
and have any vendor library files not managed by bower just live inapp/vendor/
since bower components are already a level deeperapp/vendor/bower_components/
.assets
. i.e. from below structure:So this for the structure: