Update react async await webpart (#440)

* Update package versions and TypeScript config

* Update version and readme file

* Update to SPFx 1.4.1

* update readme
This commit is contained in:
Joel Rodrigues 2018-03-09 00:34:13 +00:00 committed by Vesa Juvonen
parent 7df8ae6818
commit e0703d749f
6 changed files with 17775 additions and 19 deletions

View File

@ -7,7 +7,7 @@ This webpart demonstrates how to use [PnP JS Core](https://github.com/SharePoint
## Used SharePoint Framework Version
![drop](https://img.shields.io/badge/drop-GA-green.svg)
![drop](https://img.shields.io/badge/drop-1.4.1-green.svg)
## Applies to
@ -25,6 +25,7 @@ react-async-await-sp-pnp-js | Jose Quinto ([@jquintozamora](https://twitter.com/
Version|Date|Comments
-------|----|--------
1.0|May 1, 2017|Initial release
1.1|Mar 6, 2018|Update to 1.4.1
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

View File

@ -1,13 +1,18 @@
{
"entries": [
"$schema": "https://dev.office.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"async-await-pn-p-js-bundle": {
"components": [
{
"entry": "./lib/webparts/asyncAwaitPnPJs/AsyncAwaitPnPJsWebPart.js",
"manifest": "./src/webparts/asyncAwaitPnPJs/AsyncAwaitPnPJsWebPart.manifest.json",
"outputPath": "./dist/async-await-pn-p-js.bundle.js"
"entrypoint": "./lib/webparts/asyncAwaitPnPJs/AsyncAwaitPnPJsWebPart.js",
"manifest": "./src/webparts/asyncAwaitPnPJs/AsyncAwaitPnPJsWebPart.manifest.json"
}
],
"externals": {},
]
}
},
"localizedResources": {
"asyncAwaitPnPJsStrings": "webparts/asyncAwaitPnPJs/loc/{locale}.js"
}
"asyncAwaitPnPJsStrings": "lib/webparts/asyncAwaitPnPJs/loc/{locale}.js"
},
"externals": {}
}

View File

@ -1,4 +1,5 @@
{
"$schema": "https://dev.office.com/json-schemas/core-build/tslint.schema.json",
// Display errors as warnings
"displayAsWarning": true,
// The TSLint task may have been configured with several custom lint rules
@ -29,7 +30,6 @@
"no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-unused-imports": true,
"no-use-before-declare": true,
"no-with-statement": true,
"semicolon": true,

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,8 @@
"node": ">=0.10.0"
},
"dependencies": {
"@microsoft/sp-core-library": "~1.1.0",
"@microsoft/sp-webpart-base": "~1.1.1",
"@microsoft/sp-core-library": "~1.4.1",
"@microsoft/sp-webpart-base": "~1.4.1",
"@types/webpack-env": ">=1.12.1 <1.14.0",
"react": "15.4.2",
"react-dom": "15.4.2",
@ -19,9 +19,9 @@
"sp-pnp-js": "2.0.6"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.1.0",
"@microsoft/sp-module-interfaces": "~1.1.0",
"@microsoft/sp-webpart-workbench": "~1.1.0",
"@microsoft/sp-build-web": "~1.4.1",
"@microsoft/sp-module-interfaces": "~1.4.1",
"@microsoft/sp-webpart-workbench": "~1.4.1",
"gulp": "~3.9.1",
"@types/chai": ">=3.4.34 <3.6.0",
"@types/mocha": ">=2.2.33 <2.6.0"

View File

@ -7,10 +7,19 @@
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"typeRoots": [
"./node_modules/@types",
"./node_modules/@microsoft"
],
"types": [
"es6-promise",
"es6-collections",
"webpack-env"
],
"lib": [
"es5",
"dom",
"es2015.collection"
]
}
}