Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #ED-393 feat: CSP externalise added #2

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"development": {
"compact": false
},
"production": {
"compact": false
}
},
"plugins": ["@babel/syntax-dynamic-import"],
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2.1
orbs:
node: circleci/[email protected]

jobs:
sunbird_build_json:
executor: node/default
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
name: Check current version of node
command: node -v
- run:
name: Publish to NPM
command: |
if [ -z $CIRCLE_PR_NUMBER ]; then
npm run build:prod
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
npm publish
else
npm run build:prod
fi

workflows:
version: 2
sunbird_resource_bundles:
jobs:
- sunbird_build_json
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
*.log
/dist
*.env
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/src/
/tests/
*.csv
*.log
/reports/
webpack.config.js
*.html
en.json
.github/
/docs/
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
# client-cloud-services
# Sunbird
## client-cloud-services

<!-- [![NPM version](https://img.shields.io/npm/v/node-keyword-scrapper.svg?flat&logo=npm)](https://img.shields.io/npm/v/node-keyword-scrapper.svg?style=for-the-badge&logo=npm) -->

Sunbird client cloud service is multi-cloud npm toolkit that provides access across cloud services while giving you full control to use cloud-specific features. Plugin allows users to provision their infrastructure in any cloud provider.

<p>
<img alt="github actions" src="https://img.shields.io/badge/-Github_Actions-2088FF?style=flat-square&logo=github-actions&logoColor=white" height=25 />
<img alt="javascript" src="https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black" height=25 />
<img alt="nodejs" src="https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white" height=25 />
</p>

<!-- <img alt="sunbird-client-cloud-services" src="./docs/SB_ccs.png"> -->
![sunbird-client-cloud-services](/docs/SB_ccs.png)

---

## License

This project is licensed under the MIT License. See LICENSE for more information.

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
---

### Installation


```
$ npm install --save @project-sunbird/client-cloud-services
```

### Usage
Binary file added docs/SB_ccs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "@project-sunbird/client-cloud-services",
"version": "0.0.1",
"description": "Sunbird Client Services - To access cloud services",
"main": "dist/bundle.js",
"module": "dist/bundle.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --mode=production --node-env=production",
"build:dev": "webpack --mode=development --watch",
"build:prod": "webpack --mode=production --node-env=production",
"watch": "webpack --watch",
"serve": "webpack serve"
},
"author": "RAJESH KUMARAVEL",
"license": "MIT",
"engines": {
"node": ">=14.19.0",
"npm": ">=6.14.16"
},
"keywords": [
"sunbird",
"cloud",
"services",
"csp",
"azure",
"aws",
"gcp",
"google",
"cloud storage"
],
"dependencies": {
"@aws-sdk/client-s3": "3.163.0",
"@aws-sdk/s3-request-presigner": "3.173.0",
"@aws-sdk/lib-storage": "3.182.0",
"@google-cloud/storage": "6.5.2",
"@project-sunbird/logger": "^0.0.9",
"async": "2.5.0",
"azure-storage": "2.10.2",
"dateformat": "2.0.0",
"lodash": "4.17.15",
"multiparty": "^4.2.1",
"uuid": "3.1.0"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@webpack-cli/generators": "^2.5.0",
"babel-loader": "^8.2.5",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3"
}
}
Loading