fix(core): update
This commit is contained in:
parent
abaae2e0eb
commit
2250f9f1cc
@ -1,8 +1,6 @@
|
|||||||
{
|
{
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [
|
"npmGlobalTools": []
|
||||||
"npmts"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"gitzone": {
|
"gitzone": {
|
||||||
"module": {
|
"module": {
|
||||||
|
1844
package-lock.json
generated
1844
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@ -7,20 +7,21 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)",
|
"test": "tstest test/",
|
||||||
"format": "(gitzone format)",
|
"format": "(gitzone format)",
|
||||||
"build": "echo \"Not needed for now\""
|
"build": "echo \"Not needed for now\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@pushrocks/tapbundle": "^3.0.11",
|
"@gitzone/tsbuild": "^2.1.17",
|
||||||
"tslint": "^5.18.0",
|
"@gitzone/tstest": "^1.0.28",
|
||||||
|
"@pushrocks/tapbundle": "^3.0.13",
|
||||||
|
"tslint": "^5.20.0",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/storage": "^3.0.2",
|
"@pushrocks/smartpromise": "^3.0.6",
|
||||||
"@pushrocks/smartpromise": "^3.0.2",
|
"@types/minio": "^7.0.3",
|
||||||
"@types/minio": "^7.0.2",
|
"minio": "^7.0.12"
|
||||||
"minio": "^7.0.10"
|
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"files": [
|
"files": [
|
||||||
|
5
ts/smartbucket.classes.bucket.ts
Normal file
5
ts/smartbucket.classes.bucket.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as plugins from './smartbucket.plugins';
|
||||||
|
|
||||||
|
export class Bucket {
|
||||||
|
|
||||||
|
}
|
5
ts/smartbucket.classes.directory.ts
Normal file
5
ts/smartbucket.classes.directory.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as plugins from './smartbucket.plugins';
|
||||||
|
|
||||||
|
export class Directory {
|
||||||
|
|
||||||
|
}
|
5
ts/smartbucket.classes.file.ts
Normal file
5
ts/smartbucket.classes.file.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as plugins from './smartbucket.plugins';
|
||||||
|
|
||||||
|
export class File {
|
||||||
|
|
||||||
|
}
|
@ -1,14 +1,14 @@
|
|||||||
import * as plugins from './smartbucket.plugins';
|
import * as plugins from './smartbucket.plugins';
|
||||||
|
|
||||||
export interface ISmartBucketConfig {
|
export interface ISmartBucketConfig {
|
||||||
provider: 'google';
|
provider: 'digitalocean';
|
||||||
projectId: string;
|
projectId: string;
|
||||||
bucketName: string;
|
bucketName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SmartBucket {
|
export class SmartBucket {
|
||||||
config: ISmartBucketConfig;
|
public config: ISmartBucketConfig;
|
||||||
private _googleBucket;
|
|
||||||
/**
|
/**
|
||||||
* the constructor of SmartBucket
|
* the constructor of SmartBucket
|
||||||
*/
|
*/
|
||||||
@ -19,12 +19,7 @@ export class SmartBucket {
|
|||||||
/**
|
/**
|
||||||
* initializes the Smartbucket
|
* initializes the Smartbucket
|
||||||
*/
|
*/
|
||||||
async init() {
|
public async init() {
|
||||||
if (this.config.provider === 'google') {
|
|
||||||
const storage = new plugins.googleCloudStorage.Storage({
|
|
||||||
projectId: this.config.projectId
|
|
||||||
});
|
|
||||||
storage.createBucket(this.config.bucketName, () => {});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,4 @@ import * as smartpromise from '@pushrocks/smartpromise';
|
|||||||
export { smartpromise };
|
export { smartpromise };
|
||||||
|
|
||||||
// third party scope
|
// third party scope
|
||||||
import * as googleCloudStorage from '@google-cloud/storage';
|
|
||||||
import * as minio from 'minio';
|
import * as minio from 'minio';
|
||||||
|
|
||||||
export { googleCloudStorage };
|
|
||||||
|
Loading…
Reference in New Issue
Block a user