-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted some of the files that came in with the merge of master
- Loading branch information
1 parent
cbb83f5
commit fb48fa9
Showing
11 changed files
with
149 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
# editorconfig.org | ||
root = true | ||
# http://editorconfig.org | ||
|
||
[*] | ||
indent_size = 2 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.json] | ||
insert_final_newline = ignore | ||
|
||
[**.min.js] | ||
indent_style = ignore | ||
insert_final_newline = ignore | ||
|
||
[MakeFile] | ||
indent_style = space | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
{ | ||
"extends": [ | ||
"plugin:adonis/typescriptPackage" | ||
] | ||
"plugin:adonis/typescriptPackage", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
coverage | ||
node_modules | ||
.DS_Store | ||
npm-debug.log | ||
.idea | ||
out | ||
coverage | ||
test/__app | ||
.DS_STORE | ||
.nyc_output | ||
dist | ||
.idea | ||
.vscode/ | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.log | ||
build | ||
__azurite_db* | ||
dist | ||
shrinkwrap.yaml | ||
gkey.json | ||
.env | ||
__azurite_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
message="chore(release): %s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
build | ||
docs | ||
*.md | ||
config.json | ||
.eslintrc.json | ||
package.json | ||
*.html | ||
*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true, | ||
"useTabs": false, | ||
"quoteProps": "consistent", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"printWidth": 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"core": true, | ||
"license": "MIT", | ||
"services": [ | ||
"github-actions" | ||
], | ||
"minNodeVersion": "14.17.0", | ||
"probotApps": [ | ||
"stale", | ||
"lock" | ||
], | ||
"runGhActionsOnWindows": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
process.env.TS_NODE_FILES = true | ||
require('ts-node/register') | ||
require('@adonisjs/require-ts/build/register') | ||
|
||
const { configure } = require('japa') | ||
|
||
configure({ | ||
files: ['test/*.spec.(ts|js)'], | ||
files: ['test/**/*.spec.ts'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
'use strict' | ||
|
||
// const { ServiceProvider } = require('@adonisjs/fold') | ||
// const AzureStorage = require('../src/Drivers') | ||
// import { ApplicationContract } from '@ioc:Adonis/Core/Application' | ||
import { ServiceProvider } from '@adonisjs/fold' | ||
import AzureStorage from '../src/Drivers' | ||
/* | ||
* adonis-drive-azure-storage | ||
* | ||
* (c) Harminder Virk <virk@adonisjs.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
/* class DriverProvider extends ServiceProvider { | ||
register () { | ||
this.app.extend('Adonis/Addons/Drive', 'azure', () => { | ||
return AzureStorage | ||
}) | ||
} | ||
} */ | ||
import { ApplicationContract } from '@ioc:Adonis/Core/Application' | ||
|
||
// export default class DriverProvider extends ServiceProvider { | ||
export default class DriverProvider { | ||
public static needsApplication = true | ||
constructor (protected app: ServiceProvider) {} | ||
export default class AzureStorageProvider { | ||
constructor(protected app: ApplicationContract) {} | ||
|
||
public register (): void { | ||
/* this.app.container.singleton('Adonis/Addons/LucidFilter', () => ({ | ||
filterable, | ||
BaseModelFilter, | ||
})) */ | ||
this.app.extend('Adonis/Addons/Drive', 'azure', () => { | ||
return AzureStorage | ||
public boot() { | ||
this.app.container.withBindings(['Adonis/Core/Drive'], (Drive) => { | ||
Drive.extend('AzureStorage', (_, __, config) => { | ||
const { AzureStorageDriver } = require('../src/Drivers') | ||
return new AzureStorageDriver(config) | ||
}) | ||
}) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters