@h3ravel/core 0.4.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,8 @@ import { Edge } from 'edge.js'
2
2
  import { ServiceProvider } from '../ServiceProvider'
3
3
 
4
4
  export class ViewServiceProvider extends ServiceProvider {
5
+ public static priority = 995;
6
+
5
7
  register (): void {
6
8
  const config = this.app.make('config')
7
9
  const edge = Edge.create({
@@ -2,6 +2,8 @@ import { Application } from './Application'
2
2
  import { IServiceProvider } from '@h3ravel/shared'
3
3
 
4
4
  export abstract class ServiceProvider implements IServiceProvider {
5
+ public static order?: `before:${string}` | `after:${string}` | string | undefined;
6
+ public static priority = 0;
5
7
  protected app: Application
6
8
 
7
9
  constructor(app: Application) {
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './Container';
7
7
  export * from './Controller';
8
8
  export * from './ServiceProvider';
9
9
  export * from './Contracts/BindingsContract';
10
+ export * from './Contracts/ServiceProviderConstructor';
10
11
  export * from './Exceptions/Handler';
11
12
  export * from './Http/Kernel';
12
13
  export * from './Providers/AppServiceProvider';
package/tsconfig.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "extends": "../shared/tsconfig.json",
3
3
  "compilerOptions": {
4
- "outDir": "dist"
4
+ "outDir": "dist",
5
+ "paths": {
6
+ "@h3ravel/core": ["./src/index.ts"]
7
+ }
5
8
  },
6
- "include": ["src", "../http/src/Middleware", "../http/src/Middleware.ts"],
7
9
  "exclude": ["dist", "node_modules"]
8
10
  }