gl-sp-frontend
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

gl-sp-frontend

version downloads downloads

What is this repository for?

This package (glaucioleonardo-sharepoint-frontend) is a common code for SharePoint 2013/2016 using among web front-end development such as ES6+ and TypeScript.

This package contains the types for using with Typescript.

How do I get set up?

The easiest way to install this library is via npm using the following commands:

  • Latest version npm install gl-sp-frontend --save;
  • Available versions npm install gl-sp-frontend@version --save;
  • If you need to support old browsers (tested in IE10+), just install those packages polyfills and import as the following sequence:

This is how you should include in your code and voila \o/:

import * as promise from 'es6-promise';
import 'whatwg-fetch';

class MyBeautifulClass {
    constructor() {
        promise.polyfill();
    }
}

If you are using Angular 2+, just import these packages inside polyfill.js and in the section:
/** IE10 and IE11 requires the following for external source of SVG when using <use> tag */
include promise.polyfill(); and everything should work fine!

If you are using only browser version:

  • For ES5 version importing via
<!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <title>gl-sp-frontend</title>
    ...
 </head>
 <body>
    ...
    <!-- Include here -->
    <script src="https://github.com/glaucioleonardo/gl-sp-frontend/tree/master/lib/bundle.js"></script>
    <!-- or just download this repo and refer to the bundle.js like this -->
    <script src="js/bundle.js"></script>
 </body>
 </html>
  • In case you are using ES+, just use the bundle.js inside lib/es6

Macro features

  • Core: Setup
  • Retrieve list items
  • User permissions

Other features is going to be included frequently.

Other packages used

I'm really thankful for those packages creators!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.0.04latest

Version History

VersionDownloads (Last 7 Days)Published
8.0.04
7.6.00
7.5.00
7.4.00
7.3.00
7.2.00
7.1.00
7.0.20
7.0.10
7.0.00
6.0.10
6.0.00
5.0.00
4.0.01
3.0.00
2.4.70
2.4.60
2.4.50
2.4.40
2.4.30
2.4.20
2.4.11
2.4.00
2.3.90
2.3.80
2.3.70
2.3.60
2.3.50
2.3.40
2.3.30
2.3.20
2.3.10
2.3.00
2.2.00
2.1.00
2.0.00
1.0.60

Package Sidebar

Install

npm i gl-sp-frontend

Weekly Downloads

7

Version

8.0.0

License

ISC

Unpacked Size

282 kB

Total Files

108

Last publish

Collaborators

  • glaucioleonardo