I do not work on O365, why should I care about TypeScript, SPFX, React etc ?
Contents
Some GitHub boilerplate to the rescue
Then, I discovered some boilerplates github repository to be able to program using the trending technologies such as :
The first one, under Microsoft Repo has not been updated in a while so react version is outdated and the generated code referencing javascript is not versioned, so this is pretty limited for production environment, where a user would have to CTRL + F5 To see a new version of it. Also, the deployment is manual…
The second one has been done by Andrew Koltyakov, a MVP. A lot of mode
ways to deploy has been added to this project such as :
- gulp watch to deploy JS / CSS etc to SharePoint whenever you save
- live reload to reload the page automatically
- PNP to enjoy coding faster than lucky luke
Lucky Luke
The concept of SPPP is imitating SPFX as it bundled the necessary as javascript, CSS, Html file, that you reference in a content editor web part and voila :
Plus coding in typescript will prepare a potential SPFX migration for potential migration to Office 365.
SPFX Continues to get updates by the community
Ok, you will tell me that Microsoft recommends app model on-premise or upgrading to more recent SharePoint version… To me, that is the dream and we have reality: technologies shift, mode
ways to develop components on the shelve, why shall we stay in a heavy model such as apps model? There are some cases where app model is useful such as run with elevated privileges etc… for other cases components could be developed using such boilerplate.
Meantime for Office 365 :
- Recently some developers have created a pnp jquery spfx boiler plate.
- A lot of VS code Extensions came to life to make the process easier to package and deploy to Office 365.
Wrap up
Maybe we’ll see the same kind of innovation on premise? I hope so 🙂
And you which way you develop your components on premise when SPFX is not available?
Reference:
Angama, J (2018). I do not work on O365, why should I care about TypeScript, SPFX, React etc ? Available at: https://jeffangama.wordpress.com/2018/09/19/i-do-not-work-on-o365-why-should-i-care-about-typescript-spfx-react-etc/ [Accessed 2 October 2018]