sympmarc / SPServices

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.
MIT License
208 stars 61 forks source link

Preparations for modulizing SPServices #13

Closed purtuga closed 9 years ago

purtuga commented 9 years ago

Changes

This is the starting ground for splitting up SPServices into smaller modules using AMD.

You are not setup to start splitting other functionality from core/jquery.SPServices.js into modules... The dev.aspx file should give you a good page to start testing with. It loads SPServices by simply requiring src/SPServices.js (new file)... I did not touch src/jquery.SPServices.js and thus it remains the file that built into the release file.

Build Single File for Dist

I did not get time to work on changing the build to use the new broken out code... I will do that the next time around. The process that it will follow will be:

  1. User r.js (requireJS build script) to build all of SPServices depdencies into a single file
  2. Use AMDClean to convert the Require.JS single file into plain javascript (remove dependency on a module loader... I prefer AMDClean over the more popular almond.js).

/paul.