Skip to content

Commit

Permalink
v2 initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-rodgers committed May 6, 2019
0 parents commit c7a6dec
Show file tree
Hide file tree
Showing 534 changed files with 45,477 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,39 @@
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!

**Please check out the [Docs](https://pnp.github.io/pnpjs/) to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.**

### Category
- [ ] Enhancement
- [ ] Bug
- [ ] Question
- [ ] Documentation gap/issue

### Version

Please specify what version of the library you are using: [ ]

Please specify what version(s) of SharePoint you are targeting: [ ]

*If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.*

### Expected / Desired Behavior / Question
*If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please
describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!*

### Observed Behavior
*If you are reporting an issue please describe the behavior you expected to occur when performing the action. If you are making a
suggestion or asking a question delete this section.*

### Steps to Reproduce
*If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
a suggestion or asking a question delete this section.*

### Submission Guidelines
*Delete this section after reading*
* All suggestions, questions and issues are welcome, please let us know what's on your mind.
* Remember to include sufficient details and context.
* Please check back occasionally on your issue as we may have follow up questions.
* If you have multiple suggestions, questions, or bugs please submit them in seperate issues so we can track resolution.

Thank you for your feedback!
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,20 @@
#### Category
- [ ] Bug fix?
- [ ] New feature?
- [ ] New sample?
- [ ] Documentation update?

#### Related Issues

fixes #X, mentioned in #Y

#### What's in this Pull Request?

*Please describe the changes in this PR. Simple description or details around bugs which are being fixed.*

#### Guidance
*You can delete this section when you are submitting the pull request.*
* Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.
* Please target your PR to Dev branch.
* Please ensure you have updated any associated docs files based on your code changes

56 changes: 56 additions & 0 deletions .gitignore
@@ -0,0 +1,56 @@
# Logs
logs
*.log
npm-debug.log*
yarn.lock

# Runtime data
pids
*.pid
*.seed

.idea/

# Coverage directory used by tools like istanbul
coverage

# node-waf configuration
.lock-wscript

# Dependency directory
node_modules

# generated folders/files
/build
/dist
/site
.awcache

# Optional npm cache directory
.npm

.idea

# allow folks to add things to the debug /launch and /serve folder, but don't include them in git
debug/launch/*
!debug/launch/main.ts
!debug/launch/sp.ts
!debug/launch/graph.ts
!debug/launch/tsconfig.json

debug/serve/*
!debug/serve/main.ts
!debug/serve/tsconfig.json
!debug/serve/webpack.config.js

# project settings
settings.js

bower_components

# we don't use this in the repo
package-lock.json

# need to include this for bower to work, but leave this ignored as PRs
# with updates to dist will be disallowed
dist
12 changes: 12 additions & 0 deletions .travis.yml
@@ -0,0 +1,12 @@
language: node_js

node_js:
- "8"

before_script:
- npm install -g gulp

script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then gulp travis:pull-request; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then gulp travis:push; fi'

40 changes: 40 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,40 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/debug/launch/main.ts",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": "build",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/build/debugging/**/*.js"
]
},
{
"name": "Debug Tests",
"type": "node",
"request": "attach",
"stopOnEntry": false,
"cwd": "${workspaceRoot}",
"preLaunchTask": "gulp-test",
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/build/testing/**/*.js"
]
}
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,15 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"lib": true,
"**/node_modules": true,
"coverage": true,
"build": true,
"dist": true,
"site": true
},
"typescript.validate.enable": true,
"typescript.tsdk": "./node_modules/typescript/lib"
}
40 changes: 40 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,40 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "gulp build:debug",
"args": [],
"problemMatcher": [
"$tsc",
"$jshint"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false
}
},
{
"label": "gulp-test",
"type": "shell",
"command": "gulp test",
"args": [],
"isBackground": true,
"problemMatcher": [
"$tsc",
"$jshint"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false
}
},
]
}
22 changes: 22 additions & 0 deletions AUTHORS
@@ -0,0 +1,22 @@
List of Patterns and Practices PnPjs contributors. Updated before every release.

Patrick Rodgers, Microsoft (@patrick-rodgers)
Andrew Koltyakov (@koltyakov)
Allan Hvam (@allanhvam)
Eirik Brandtzæg (@eirikb)
Ole Martin Pettersen (@olemp)
Paweł Hawrylak (@phawrylak)
Elio Struyf (@estruyf)
Fredrik Thorild (@fthorild)
Tomi Tavela (@tavikukko)
Chris Kent (@thechriskent)
James Brennan (@relugas)
Stefan Bauer (@stfbauer)
Gautam Sheth (@gautamdsheth)
Sergei Sergeev (@s-kainet)
Simon Ågren (@simonagren)
Pedro Pedrosa (@pedro-pedrosa)
Sean Marthur (@seanmarthur)
Charles Simard-Lecours (@cslecours)
Piotr Siatka (@siata13)
Alex Terentiev (@ajixumuk)
41 changes: 41 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,41 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.0.0 - 2019-XX-XX

_These changes are from the move from 1.X.X libraries to 2.0.0 and represent the beginning of a new changelog for the 2.X.X family_

### Added

- odata: added IQueryableData

### Changed

- odata: refactor Queryable
- remove withPipeline (becomes a function argument bind and )
- removed the action methods (get, post, put, delete)
- introduced "invokables"
- added methods to operate on Queryables
- all inheriting methods updated with interfaces and factory functions
- remove ODataQueryable and merged into Queryable
- sp & graph: libraries can be selectively imported
- all: updated internals to use await
- all: interfaces prefixed with "I"
- odata: empty request pipeline will throw an error
- sp & graph: updated clone to use factory
- sp: changed signature of createDefaultAssociatedGroups
- sp: all query string params are escaped now within the library

### Fixed


### Removed

- removed "as" method from SharePoint & Graph Queryable
- removed WebInfos class
- removed InstalledLanguages class
- removed Web.addClientSidePageByPath

25 changes: 25 additions & 0 deletions LICENSE
@@ -0,0 +1,25 @@
SharePoint Patterns and Practices (PnP)

The MIT License (MIT)

Copyright (c) Microsoft Corporation

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit c7a6dec

Please sign in to comment.