Skip to content

Commit

Permalink
Update sdk (#684)
Browse files Browse the repository at this point in the history
We plan to make sdk the main part of the repository and this is the first step.

Changes:
- Get rid of gulp in sdk part of code-push
- Update dependencies
- Replace type definitions and tsd with @types packages

The next step we plan to add npm scripts for sdk and update the documentation.
andreidubov authored Dec 18, 2019
1 parent e1d1d43 commit f4c4872
Showing 22 changed files with 1,312 additions and 106 deletions.
6 changes: 6 additions & 0 deletions sdk/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Thanks so much for filing an issue or feature request! We will address it as soon as we can. Please follow these guidelines:

1. This repository is for the CodePush CLI and management SDK. For issues relating to the CodePush client SDK's, please see:
* react-native-code-push: https://github.com/Microsoft/react-native-code-push
* cordova-plugin-code-push: https://github.com/Microsoft/cordova-plugin-code-push
2. In your description, please include the version of `code-push-cli` or `code-push` that you are using.
44 changes: 44 additions & 0 deletions sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed
*.DS_Store

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

# Build specific exclusions
bin/

# Environment variables
*.env

# Test uploads
/uploads

# UI related
/sessions

# JSON Storage persisted file
JsonStorage.json
.idea/
2 changes: 1 addition & 1 deletion sdk/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.npmignore
.gitignore
node_modules/*
definitions/*
test/*
4 changes: 4 additions & 0 deletions sdk/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.tsdk": "node_modules/typescript/lib"
}
13 changes: 13 additions & 0 deletions sdk/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CodePush

Copyright (c) Microsoft Corporation

All rights reserved.

MIT License

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.
2 changes: 1 addition & 1 deletion sdk/README.md
Original file line number Diff line number Diff line change
@@ -99,4 +99,4 @@ When an error occurs in any of the methods, the promise will be rejected with a
- __CodePush.ERROR_INTERNAL_SERVER__: An error occurred internally on the CodePush server.
- __CodePush.ERROR_NOT_FOUND__: The resource you are attempting to retrieve does not exist.
- __CodePush.ERROR_CONFLICT__: The resource you are attempting to create already exists.
- __CodePush.ERROR_UNAUTHORIZED__: The access key you configured is invalid or expired.
- __CodePush.ERROR_UNAUTHORIZED__: The access key you configured is invalid or expired.
7 changes: 0 additions & 7 deletions sdk/definitions/harness.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions sdk/definitions/slash.d.ts

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--exit
--reporter spec
--timeout 5000
Loading

0 comments on commit f4c4872

Please sign in to comment.