hi experts!
I quite lost in Merchello custom Developpement. I don't understand how to glue puzzle piece to let me add some functionality in Merchello and test it.
I download all the zip file from github. I can compile it in VS. I read that if I change something on the backend, I need to follow the readme file in src/Merchello.web.ui.client to install and execute Grunt.
But how do I test it in umbraco? Just install a plain Umbraco 7.5.6, then copy merchello DLLs and App/plugins file into it? What is the Merchello.Build.sln? I can't find documentation on the development process of Merchello (or a blog on that). Someone has all the things in place and want to send it to me?
For the Merchello.Web.Ui.Client project you would run "grunt build" via a grunt runner.
This will combine all of the angular files and build the Merchello App_Plugins folder. This folder is then copied to the Merchello.FastTrack.Ui project - which you should be able to view in you're browser after a successful VS compile.
By the way (I do not receive answers in the main Umbraco forum). I try tu update via nuget umbraco to last version (from 7.5.2 to 7.5.6) to upgrade my Merchello version to 2.3.2. But after nuget update, then using winMerge to merge config files into /Config directory. I now got an exception in ExamineSettings.config line 12. that is:
The issue revolved around one of Umbraco's singletons named Resolution where Umbraco made a change when it was actually "frozen" (which allows values to be read from a resolver). Update to Merchello 2.3.2.
Edit: Looks like you said you did update to 2.3.2 ... can you make sure ALL of the Merchello dlls have been updated. The event handler change was in Merchello.Web which calls a method in the CoreBootManager - Merchello.Core.
Hooo, Ok so. I need to update Umbraco and Merchello at the same time. I was just testing Umbraco alone. I will take a look.
For the grunt compile part, I install all the thing, Grunt, Node, Ruby than gem sass. Add the C:\Ruby23-x64\bin\ in my path. But when I try grunt build-dev in the /src/Merchell.Web.UI.Client I got this error on the Sass part:
C:\Data_Dev\Umbraco\Merchello-DEV2.3\Merchello-merchello-dev\src\Merchello.Web.UI.Client>grunt build-dev
(node:17604) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
Running "clean:0" (clean) task
Cleaning "build/App_Plugins/Merchello/js"...OK
Running "sass:dev" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
It looks like you might need to install ruby and make sure it's in your environment path. Mine has C:\Ruby22-x64\bin and it works fine.
Also, unless I'm doing a ton of angular, I don't use grunt build-dev since it adds all of the watches. Typically, I just do grunt or grunt build (mostly use this).
Sorry for bothering you again! ;-)
Just to learn how to, I add a TEST word in the title of
(using VSStudio with project Merchello)
Merchello.Web.UI.Client/src/views/products/productlist.html
Then compile with grunt
Then overwrite the AppPlugins/Merchello folder in my Umbnraco Test site with the build/AppPlugins/Merchello just compiled.
Execute and go to Merchello->Products = nothing! ;-(
I think I do it wrong... What do you think?
Running the grunt scripts will build and copy the AppPlugins/Merchello folder to the FastTrack.Web.Ui -> AppPlugins folder so if you're using a project other than that to test, you should use that to merge the changes.
One thing to note, since your testing back office changes, you should also have the dev tools open with the option Disable cache (while DevTools is open) (this one is for Chrome) between refreshes. Umbraco and Angular does a bunch of caching ...
Merchello custom dev setup
hi experts! I quite lost in Merchello custom Developpement. I don't understand how to glue puzzle piece to let me add some functionality in Merchello and test it.
I download all the zip file from github. I can compile it in VS. I read that if I change something on the backend, I need to follow the readme file in src/Merchello.web.ui.client to install and execute Grunt.
But how do I test it in umbraco? Just install a plain Umbraco 7.5.6, then copy merchello DLLs and App/plugins file into it? What is the Merchello.Build.sln? I can't find documentation on the development process of Merchello (or a blog on that). Someone has all the things in place and want to send it to me?
Thanks a lot.
For the Merchello.Web.Ui.Client project you would run "grunt build" via a grunt runner.
This will combine all of the angular files and build the Merchello App_Plugins folder. This folder is then copied to the Merchello.FastTrack.Ui project - which you should be able to view in you're browser after a successful VS compile.
Thanks Rusty I will try that.
By the way (I do not receive answers in the main Umbraco forum). I try tu update via nuget umbraco to last version (from 7.5.2 to 7.5.6) to upgrade my Merchello version to 2.3.2. But after nuget update, then using winMerge to merge config files into /Config directory. I now got an exception in ExamineSettings.config line 12. that is:
Do you have an idea?
Yep - Shannon posted a show stopper when 7.5.6 was released.
http://issues.merchello.com/youtrack/issue/M-1254
This was fixed the same day in the 2.3.2 patch.
The issue revolved around one of Umbraco's singletons named
Resolution
where Umbraco made a change when it was actually "frozen" (which allows values to be read from a resolver). Update to Merchello 2.3.2.Edit: Looks like you said you did update to 2.3.2 ... can you make sure ALL of the Merchello dlls have been updated. The event handler change was in Merchello.Web which calls a method in the CoreBootManager - Merchello.Core.
Hooo, Ok so. I need to update Umbraco and Merchello at the same time. I was just testing Umbraco alone. I will take a look.
For the grunt compile part, I install all the thing, Grunt, Node, Ruby than gem sass. Add the C:\Ruby23-x64\bin\ in my path. But when I try grunt build-dev in the /src/Merchell.Web.UI.Client I got this error on the Sass part:
C:\Data_Dev\Umbraco\Merchello-DEV2.3\Merchello-merchello-dev\src\Merchello.Web.UI.Client>grunt build-dev (node:17604) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. Running "clean:0" (clean) task Cleaning "build/App_Plugins/Merchello/js"...OK
Running "concat:models" (concat) task File "build/App_Plugins/Merchello/js/merchello.models.js" created.
Running "concat:controllers" (concat) task File "build/App_Plugins/Merchello/js/merchello.controllers.js" created.
Running "concat:services" (concat) task File "build/App_Plugins/Merchello/js/merchello.services.js" created.
Running "concat:resources" (concat) task File "build/App_Plugins/Merchello/js/merchello.resources.js" created.
Running "concat:testing" (concat) task File "build/App_Plugins/Merchello/js/merchello.testing.js" created.
Running "concat:directives" (concat) task File "build/App_Plugins/Merchello/js/merchello.directives.js" created.
Running "concat:filters" (concat) task File "build/App_Plugins/Merchello/js/merchello.filters.js" created.
Running "sass:dev" (sass) task Warning: You need to have Ruby and Sass installed and in your PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-sass Use --force to continue.
Aborted due to warnings.
Any idea?
It looks like you might need to install ruby and make sure it's in your environment path. Mine has C:\Ruby22-x64\bin and it works fine.
Also, unless I'm doing a ton of angular, I don't use
grunt build-dev
since it adds all of the watches. Typically, I just dogrunt
orgrunt build
(mostly use this).Thanks Rusty for your help. I Update Merchello to 2.3.2 at the same time of Umbraco and all is working now.
without grunt build-dev sass is working! Thanks
That's awesome =)
That grunt script does need some attention.
Sorry for bothering you again! ;-) Just to learn how to, I add a TEST word in the title of (using VSStudio with project Merchello)
Merchello.Web.UI.Client/src/views/products/productlist.html Then compile with grunt Then overwrite the AppPlugins/Merchello folder in my Umbnraco Test site with the build/AppPlugins/Merchello just compiled.
Execute and go to Merchello->Products = nothing! ;-( I think I do it wrong... What do you think?
Running the grunt scripts will build and copy the AppPlugins/Merchello folder to the FastTrack.Web.Ui -> AppPlugins folder so if you're using a project other than that to test, you should use that to merge the changes.
One thing to note, since your testing back office changes, you should also have the dev tools open with the option
Disable cache (while DevTools is open)
(this one is for Chrome) between refreshes. Umbraco and Angular does a bunch of caching ...is working on a reply...