Giter VIP home page Giter VIP logo

splightboard's Introduction

Test SharePoint SPA

This app was generated using Yeoman and SharePoint-SPA generator and provides the scafolding needed to create browser based applications for SharePoint.

The project is setup to use AMD by including RequireJS, along with the Text plugin and the Less plugin. The Grunt build process includes a Task to build a single-file SPA where all modules are included into a single file.

Run App

A built app can be found in the dist folder. Just download the file and copy/upload it to a SharePoint document library.

Build

The build is handled by Grunt. Run grunt --help to see the available tasks. By default, the build will create a folder named build at the root of the project that is used as a staging area. All files located under app is copied to the build folder and process so that they can be served from a SharePoint location (ex. the app.aspx file will include the appropriate loading code).

Add Files to your Project

By default, the task copy:build will only copy the following:

app/*.aspx
app/script/**/*
app/styles/**/*
vendor/requirejs/requirejs.js
vendor/requirejs-text/text.js
vendor/require-less/*.js

If any new folder is created in app/, or if any new files/module are added to app/vendor/, the copy:build task in the Gruntfile.js must be edited so that those files can be included in the build.

Compile app to Single File

The grunt spa task will use requireJS compiler (r.js) to package the entire application code into 1 single file that can be used instead of the regular app files. This file will be found under the build folder and named app.run.aspx.

Note however that as other 3rd party libraries are added to the project, the Gruntfile requirejs:compile task may need additional setup. Ex. If loading jQuery or knockout from a CDN, entries will need to be added so that these modules are not included in the build.

splightboard's People

Contributors

purtuga avatar

Watchers

 avatar

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.