Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
d966e29b8c | |||
ec9551a772 | |||
8462536b6a | |||
2250f9f1cc |
@ -38,22 +38,34 @@ snyk:
|
||||
# test stage
|
||||
# ====================
|
||||
|
||||
testLTS:
|
||||
testStable:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install lts
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- priv
|
||||
|
||||
testBuild:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci command npm run build
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
- notpriv
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci node install stable
|
||||
- npmci npm publish
|
||||
only:
|
||||
- tags
|
||||
@ -69,6 +81,7 @@ codequality:
|
||||
allow_failure: true
|
||||
script:
|
||||
- npmci command npm install -g tslint typescript
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
||||
tags:
|
||||
@ -86,9 +99,9 @@ trigger:
|
||||
- notpriv
|
||||
|
||||
pages:
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci command npm install -g @gitzone/tsdoc
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
|
@ -1,8 +1,6 @@
|
||||
{
|
||||
"npmci": {
|
||||
"npmGlobalTools": [
|
||||
"npmts"
|
||||
]
|
||||
"npmGlobalTools": []
|
||||
},
|
||||
"gitzone": {
|
||||
"module": {
|
||||
|
1846
package-lock.json
generated
1846
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@ -1,34 +1,36 @@
|
||||
{
|
||||
"name": "@pushrocks/smartbucket",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.6",
|
||||
"description": "simple cloud independent object storage",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"author": "Lossless GmbH",
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"test": "(npmts)",
|
||||
"test": "tstest test/",
|
||||
"format": "(gitzone format)",
|
||||
"build": "echo \"Not needed for now\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pushrocks/tapbundle": "^3.0.11",
|
||||
"tslint": "^5.18.0",
|
||||
"@gitzone/tsbuild": "^2.1.17",
|
||||
"@gitzone/tstest": "^1.0.28",
|
||||
"@pushrocks/tapbundle": "^3.0.13",
|
||||
"tslint": "^5.20.0",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@google-cloud/storage": "^3.0.2",
|
||||
"@pushrocks/smartpromise": "^3.0.2",
|
||||
"@types/minio": "^7.0.2",
|
||||
"minio": "^7.0.10"
|
||||
"@pushrocks/smartpromise": "^3.0.6",
|
||||
"@types/minio": "^7.0.3",
|
||||
"minio": "^7.0.12"
|
||||
},
|
||||
"private": true,
|
||||
"files": [
|
||||
"ts/*",
|
||||
"ts_web/*",
|
||||
"dist/*",
|
||||
"dist_web/*",
|
||||
"assets/*",
|
||||
"ts/**/*",
|
||||
"ts_web/**/*",
|
||||
"dist/**/*",
|
||||
"dist_web/**/*",
|
||||
"dist_ts_web/**/*",
|
||||
"assets/**/*",
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
|
@ -21,6 +21,6 @@ simple cloud independent object storage
|
||||
For further information read the linked docs at the top of this readme.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||
|
||||
[](https://maintainedby.lossless.com)
|
||||
[](https://maintainedby.lossless.com)
|
||||
|
3
ts/smartbucket.classes.bucket.ts
Normal file
3
ts/smartbucket.classes.bucket.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class Bucket {}
|
3
ts/smartbucket.classes.directory.ts
Normal file
3
ts/smartbucket.classes.directory.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class Directory {}
|
3
ts/smartbucket.classes.file.ts
Normal file
3
ts/smartbucket.classes.file.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class File {}
|
@ -1,14 +1,14 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export interface ISmartBucketConfig {
|
||||
provider: 'google';
|
||||
provider: 'digitalocean';
|
||||
projectId: string;
|
||||
bucketName: string;
|
||||
}
|
||||
|
||||
export class SmartBucket {
|
||||
config: ISmartBucketConfig;
|
||||
private _googleBucket;
|
||||
public config: ISmartBucketConfig;
|
||||
|
||||
/**
|
||||
* the constructor of SmartBucket
|
||||
*/
|
||||
@ -19,12 +19,5 @@ export class SmartBucket {
|
||||
/**
|
||||
* initializes the Smartbucket
|
||||
*/
|
||||
async init() {
|
||||
if (this.config.provider === 'google') {
|
||||
const storage = new plugins.googleCloudStorage.Storage({
|
||||
projectId: this.config.projectId
|
||||
});
|
||||
storage.createBucket(this.config.bucketName, () => {});
|
||||
}
|
||||
}
|
||||
public async init() {}
|
||||
}
|
||||
|
@ -3,7 +3,4 @@ import * as smartpromise from '@pushrocks/smartpromise';
|
||||
export { smartpromise };
|
||||
|
||||
// third party scope
|
||||
import * as googleCloudStorage from '@google-cloud/storage';
|
||||
import * as minio from 'minio';
|
||||
|
||||
export { googleCloudStorage };
|
||||
|
Reference in New Issue
Block a user