dnnsoftware / Dnn.Platform

DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
https://dnncommunity.org/
MIT License
1.03k stars 749 forks source link

how to build TaskScheduler.Web in webApps? #3268

Closed mnouraei closed 4 years ago

mnouraei commented 4 years ago

How to build TaskScheduler.Web in webApps?

valadas commented 4 years ago

If it is for debugging, then:

You will need to install node https://nodejs.org/en/ Then yarn https://yarnpkg.com/en/

Then in any of the folders that have a package.json in those webApps, you can run yarn webpack which will give you a liveserver on some port like 8085 or some such (indicated when you run the command). Then what I find the easiest is to go to a local running site and edit the javascript that loads the real bundle so that it loads that version coming from the live-server.

From there it is quick to change something and test right away.

It is a bit outdated and if you find contradictions, prioritize what is written than what I say in the video (for instance AdminExperience was recently merged into this repository), but here is an example of that process : https://www.youtube.com/watch?v=oBhDqiQ9vOk&list=PLIx1M8IdVvqZ0bnODGqJyxvONNPj5BzMP&index=6

The other videos in that playlist also have to good info, but videos are hard to maintain, so any conflicting info you see, do not trust the video... :)

mnouraei commented 4 years ago

@valadas Thank, i add new custom control to in Dnn.React.Common\src and run script yarn run build. How can I use it(dnn-react-common.min.js) now?

mnouraei commented 4 years ago

and other question: I need to enter moment-Jalali from https://www.npmjs.com/package/moment-jalali to convert date to Jalali date(persian date). How does this work?