fix(core): update

This commit is contained in:
Philipp Kunz 2019-10-14 20:55:07 +02:00
parent abaae2e0eb
commit 2250f9f1cc
8 changed files with 1200 additions and 696 deletions

View File

@ -1,8 +1,6 @@
{
"npmci": {
"npmGlobalTools": [
"npmts"
]
"npmGlobalTools": []
},
"gitzone": {
"module": {

1844
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,20 +7,21 @@
"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": [

View File

@ -0,0 +1,5 @@
import * as plugins from './smartbucket.plugins';
export class Bucket {
}

View File

@ -0,0 +1,5 @@
import * as plugins from './smartbucket.plugins';
export class Directory {
}

View File

@ -0,0 +1,5 @@
import * as plugins from './smartbucket.plugins';
export class File {
}

View 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,7 @@ 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() {
}
}

View File

@ -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 };