Giter VIP home page Giter VIP logo

jmgore75 / spservices Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sympmarc/spservices

0.0 2.0 0.0 2.21 MB

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.

JavaScript 98.47% HTML 0.57% ASP 0.96%

spservices's Introduction

SPServices Built with Grunt

bitHound Score Code Climate

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.

SPServices is primarily hosted on Codeplex, with this repository mirroring most of the downloads there.

For full documentation, please visit http://spservices.codeplex.com/documentation

Development

Setup Environment

  1. Fork this repository and checkout the source

  2. From the root of the project, run:

    npm install
    

    This will install all of the necessary dependencies

Run a build

  1. run:

    grunt
    

    This will build SPServices and output the results to the build folder. During development, these are the files that should be used for testing (i.e. copy to SharePoint and link to them).

Develop and Watch

A grunt target called watch is available for linting code as files are changed and saved. To use it, simply run:

grunt watch

This will start a job that watches the sources files as they are saved and runs the linting tool to ensure they are clean of issues.

Deploy to a SharePoint Folder

For development, just copy the entire src and build folders (after running grunt) to a SharePoint Document Library folder and click on the src/dev.aspx file. SPServices will be loaded using AMD (require.js). The page will display multiple ways to load SPServices (via requireJS, jQuery built library or jQuery built library minimized).

A build target has been created to facilitate this task - called deploy. In order to use it, you must first set the deployLocation in the me.build.json file that is automatically created at the root of this project when grunt is run. The deploy location could be a locally mapped drive to the desired SharePoint folder or a network path. Example for an O365 tennat:

//YourTenantNameHere.sharepoint.com@SSL/DavWWWRoot/sites/dev/Shared Documents/SPServices-dev

Note: When using a network path, you may receive an error on first attempt to deploy. This is likely because Windows is unable to authenticate with the SharePoint server. To resolve the issue, use the network path in Windows Explorer to access it directly and enter the appropriate credentials if prompted.

To deploy using grunt, run:

grunt deploy

spservices's People

Contributors

aschulz01 avatar dimkk avatar jmgore75 avatar johnnliu avatar joshmcrty avatar purtuga avatar scatcher avatar sympmarc avatar

Watchers

 avatar  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.