GithubHelp home page GithubHelp logo

estruyf / uploadtooffice365spfx Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 4.0 19 KB

Automate publishing of your SharePoint Framework scripts to Office 365 public CDN

JavaScript 37.70% TypeScript 44.71% CSS 17.59%
sharepoint-online sharepoint-framework gulp gulp-plugin upload cdn office365

uploadtooffice365spfx's Introduction

Automate publishing of your SharePoint Framework scripts to Office 365 public CDN sample

This is a sample created to show how you can automate the publishing process of your production scripts to the Office 365 CDN.

Testing

If you want to test out this sample, you will have to follow the next steps:

  • Clone the repo
  • Execute npm install
  • Setup your Office 365 CDN
  • Update your write-manifests.json file
  • Update the username, password, site and libraryPath settings for your test and/or production environment in the gulpfile.js file

Upload to CDN

  • Run gulp bundle --ship
  • To upload your scripts to your test environment, run: gulp upload-to-sharepoint
  • To upload your scripts to your production environment, run: gulp upload-to-sharepoint --ship
  • Check out your document library

Upload the solution package

  • Run gulp package-solution or gulp package-solution --ship depending on if you want to use a debug or release build
  • To upload the solution package to your test environment, run: gulp upload-app-pkg
  • To upload the solution package to your production environment, run: gulp upload-app-pkg --ship
  • Check out the app catalog

Important: when you add the solution package the first time to the app catalog, be sure to manually trigger the deploy. Afterwards you do not have to do this anymore, and you can just keep publishing new packages via your command prompt.

More info

Check out the following article to learn more about this sample: Automate publishing of your SharePoint Framework scripts to Office 365 public CDN

uploadtooffice365spfx's People

Contributors

estruyf avatar miguelillo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

uploadtooffice365spfx's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.