{"id":1763,"date":"2018-09-13T13:22:34","date_gmt":"2018-09-13T13:22:34","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=1763"},"modified":"2018-09-13T13:22:34","modified_gmt":"2018-09-13T13:22:34","slug":"introducing-open-source-pnp-spfx-yeoman-generator","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/introducing-open-source-pnp-spfx-yeoman-generator\/","title":{"rendered":"Introducing open-source PnP SPFx Yeoman generator"},"content":{"rendered":"<p>SharePoint Framework Yeoman templates are the way to scaffold your own solutions to start creating your own functionalities for SharePoint platform. As out-of-the-box Yeoman templates only support scaffolding for a limited set of JavaScript frameworks, the community has been asking options to introduce\u00a0additional capabilities\u00a0using an open-source model. We are <strong>happy to announce<\/strong> the availability of the <a href=\"https:\/\/pnp.github.io\/generator-spfx\/\">PnP SPFx Yeoman generator<\/a>, which <strong>enables the community to work together with the\u00a0SharePoint engineering<\/strong> and to add new supported JavaScript framework and other options to the templates.<\/p>\n<p>PnP SPFx Yeoman generator <strong>extends<\/strong> the out-of-the-box SharePoint Framework Yeoman templates and <strong>does not replace them<\/strong>. It&#8217;s community driven initiative lead by the PnP Core team under surveillance\u00a0of the SharePoint engineering team. In long term, we are also looking into open-sourcing the out-of-the-box templates, but as that will not happen in short term, we can use the PnP SPFx Yeoman project to extend and enhance the development experience for SharePoint Framework developers.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1767\" src=\"https:\/\/officedevblogs.wpengine.com\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-13-at-14.57.42.png\" alt=\"PnP Yeoman Template\" width=\"617\" height=\"393\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/09\/Screen-Shot-2018-09-13-at-14.57.42.png 617w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/09\/Screen-Shot-2018-09-13-at-14.57.42-300x191.png 300w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>With this first release, we have added support for HandbarJS and capabilities for adding optionally <a href=\"https:\/\/jquery.com\/\">jQuery<\/a> or <a href=\"https:\/\/pnp.github.io\/pnpjs\/\">PnPjs<\/a> libraries to your solution automatically.\u00a0We are looking into also adding <a href=\"https:\/\/vuejs.org\/\">VueJS<\/a>\u00a0soon on the project together with the community. Your ideas, feedback, and contributions will drive the next steps of the development.<\/p>\n<h2>How to get started?<\/h2>\n<p>You can get started by <strong>installing<\/strong> the generator by installing PnP SPFx Yeoman generator with the following command<\/p>\n<blockquote><p>npm install -g @pnp\/generator-spfx<\/p><\/blockquote>\n<p>After installation, you\u00a0can start a <strong>new project<\/strong> execute the following command:<\/p>\n<blockquote><p>yo @pnp\/spfx<\/p><\/blockquote>\n<p>We are excited to hear your feedback, ideas and use cases to help us as Microsoft and as a community to improve this community generator in the future. See the following resources for additional details about this project.<\/p>\n<ul>\n<li><a href=\"https:\/\/pnp.github.io\/generator-spfx\/\">PnP SPFx Yeoman generator<\/a> documentation<\/li>\n<li><a href=\"https:\/\/github.com\/pnp\/generator-spfx\">PnP SPFx Yeoman generator in Github<\/a><\/li>\n<\/ul>\n<p>Thanks for your input advance.<\/p>\n<p><span style=\"font-size: large\"><em>\u201cSharing is caring\u201d<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><i>SharePoint Team, Microsoft\u00a0 &#8211; 13th of September 2018<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce the availability of the PnP SPFx Yeoman generator, which enables the community to work together with the\u00a0SharePoint engineering and to add new supported JavaScript framework and other options to the templates.<\/p>\n","protected":false},"author":69078,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365-developer"],"acf":[],"blog_post_summary":"<p>We are happy to announce the availability of the PnP SPFx Yeoman generator, which enables the community to work together with the\u00a0SharePoint engineering and to add new supported JavaScript framework and other options to the templates.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69078"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=1763"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=1763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=1763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=1763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}