Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Adding sample config/ directory for articles module #890

Merged

Conversation

lirantal
Copy link
Member

@lirantal lirantal commented Sep 6, 2015

Dummy config directory for the articles module to make it easier for developers to understand and realize there's an actual per-module config/ directory/files that can be added

This came up from my gitter conversation with @trainerbill who was asking about modularizing the configuration approach so that modules can have their own config tasks and didn't realize it already existed and requested to have a 'sample' directory/file for the articles module as a general guide.

@lirantal lirantal self-assigned this Sep 6, 2015
@lirantal lirantal added this to the 0.4.x milestone Sep 6, 2015
…developers to understand and realize there's an actual per-module config/ directory/files that can be added
@lirantal lirantal force-pushed the feature/article-module-dummy-config-dir branch from 690a66c to 903b4ca Compare September 6, 2015 20:24
@mleanos
Copy link
Member

mleanos commented Sep 6, 2015

LGTM

@ilanbiala
Copy link
Member

@lirantal is this for 0.4.2? Wouldn't this be cleaner if we just put a comment in 1 config file in the core or something?

@lirantal
Copy link
Member Author

lirantal commented Sep 6, 2015

@ilanbiala You're right, I usually did just 0.4.x in the past but we can just assign it to the next release in line by default, unless some discussion rises that requires to change it.

The current sample config shows also how to use that file and makes it obvious where the file should with regards to directory structure. I'm not sure a comment is better but you can consult with @trainerbill who couldn't find it out...

@lirantal lirantal modified the milestones: 0.4.2, 0.4.x Sep 6, 2015
@trainerbill
Copy link
Contributor

My issue was that I always copy the articles module as a skeleton for making other modules. I made a config folder and couldn't figure out why it was erroring. I have a feeling others will do the same if we don't include the config folder in the articles module.

@trainerbill
Copy link
Contributor

Maybe we should think about including a "skeleton" module in the application? one that is designed to be copied and used in a basic CRUD format?

@lirantal
Copy link
Member Author

lirantal commented Sep 8, 2015

A "skeleton" module sounds as an overkill at the moment, and basically that's the purpose of the articles module. The generator can be used to scaffold such skeletons for app development and with Cody's help we might be getting there.

So does it look good for merging?

@trainerbill
Copy link
Contributor

Fair enough. LGTM

@codydaig
Copy link
Member

codydaig commented Sep 8, 2015

@trainerbill A "skeleton" module is on my todo list for the generator. Which would be even easier than copy and pasting since it will change the name throughout the new module.

@lirantal
Copy link
Member Author

Great, sounds good @codydaig

lirantal added a commit that referenced this pull request Sep 11, 2015
…nfig-dir

Adding sample config/ directory for articles module
@lirantal lirantal merged commit bd1a7d7 into meanjs:master Sep 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants