Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
9f0b1dab55 | |||
9b84cf8bc0 | |||
d966e29b8c | |||
ec9551a772 |
@ -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
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartbucket",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
13
package.json
13
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartbucket",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.7",
|
||||
"description": "simple cloud independent object storage",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
@ -25,11 +25,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)
|
||||
|
@ -1,5 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class Bucket {
|
||||
|
||||
}
|
||||
export class Bucket {}
|
||||
|
@ -1,5 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class Directory {
|
||||
|
||||
}
|
||||
export class Directory {}
|
||||
|
@ -1,5 +1,3 @@
|
||||
import * as plugins from './smartbucket.plugins';
|
||||
|
||||
export class File {
|
||||
|
||||
}
|
||||
export class File {}
|
||||
|
@ -9,6 +9,14 @@ export interface ISmartBucketConfig {
|
||||
export class SmartBucket {
|
||||
public config: ISmartBucketConfig;
|
||||
|
||||
public minioClient = new plugins.minio.Client({
|
||||
endPoint: 'ams3.digitaloceanspaces.com',
|
||||
port: 9000,
|
||||
useSSL: true,
|
||||
accessKey: 'Q3AM3UQ867SPQQA43P2F',
|
||||
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
|
||||
});
|
||||
|
||||
/**
|
||||
* the constructor of SmartBucket
|
||||
*/
|
||||
@ -20,6 +28,6 @@ export class SmartBucket {
|
||||
* initializes the Smartbucket
|
||||
*/
|
||||
public async init() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -4,3 +4,7 @@ export { smartpromise };
|
||||
|
||||
// third party scope
|
||||
import * as minio from 'minio';
|
||||
|
||||
export {
|
||||
minio
|
||||
};
|
||||
|
Reference in New Issue
Block a user