-
Notifications
You must be signed in to change notification settings - Fork 399
Moved a whole bunch of things around and changed the build. #72
Conversation
…ve templateless builds. Getting ready to add tests.
Looks like a good setup to me, how do I configure the symlinks, they don't seem to work out-of-the-box? I get 404's for all of the bower_components. |
Whoops, because the symlink was called Anyway, what do you think about removing |
Can we change the ignore to the new location? src/bower-components On Thu, Aug 21, 2014 at 3:58 PM, Kent C. Dodds notifications@github.com
|
Actually, I want to keep the |
I'm confused, in this PR they are still located in src, are you saying you want to move them out of there? If we were to just leave them there, and change .gitignore from |
Sorry, having them in src was a mistake (part of why you were unable to run the demo). I'm about to commit my proposed change, let me know what you think of it... |
Ok sounds good |
@Astrism, I just updated the dependencies. Feel free to check it out and merge it. I'm going to go home and may look at it later tonight. Let me know if you have any problems with what I've done. You may want to look at the build... |
Awesome, I'll take a look |
Restructured application using simlinks in preparation for added tests.
looks great, merged |
We now have templateless builds. Getting ready to add tests.
What do you think of this @Astrism? Feel free to pull and play around. But here are the major changes (I should have added them to the changelog):
common
,bootstrap
, andvanilla
. The build takesbootstrap
andvanilla
and builds them separately. They each build withcommon
. There is also a separate file for setting up the default template mapping with their types and this is excluded for theno-templates
build. The final output is:formly.js
,formly.bootstrap.js
, andformly.vanilla.js
. Adding other styles will be very easy.I also made it very simple for us to add directive templates as needed. Simply add a
formly-field-buttongroup.js
andformly-field-buttongroup.html
and the build should pick those up. All templates should be referenced by simply:fields/formly-field-buttongroup.html
(for example). Unfortunately this means that when using the non-built version of formly you have to add items to the$templateCache
yourself, but people shouldn't be doing that anyway so I have no problem discouraging this. In the demo I don't have a problem doing this either as we were required to explicitly define the template urls for the types anyway.I decided to leave the test stuff out of this. I'm going to wait until this gets merged before I work on that. Also, I've named this branch 0.1.0 because creating the no-templates build is a breaking change (as the vanilla build now exists in the
formly.vanilla.js
file). I believe it's time to start considering what improvements to the api we could make while we have the liberty of making breaking changes. We can keep track of the upgrade path and I don't believe it will be painful for most people.Let me know what you think.