@promise-watch/core
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -31,5 +31,3 @@ "use strict"; | ||
const config = await Promise.resolve().then(() => __importStar(require(`${dir}/promise-watch.config.ts`))); | ||
const options = { dir, ...config.default }; | ||
console.log(options); | ||
await (0, execute_1.executeJobs)(options); | ||
await (0, execute_1.executeJobs)({ dir, ...config.default }); | ||
})().catch(err => { | ||
@@ -36,0 +34,0 @@ console.error(err); |
{ | ||
"name": "@promise-watch/core", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -63,8 +63,2 @@ <h1 align="center"> | ||
## Getting Started | ||
The best way to get started is to use the [starter-template](https://github.com/promise-watch/starter-template). Clone it down and then add your own custom runs to the `runs/` directory. | ||
## Configuration | ||
The default options: | ||
@@ -81,2 +75,24 @@ | ||
## Getting Started | ||
The best way to get started is to use the [starter-template](https://github.com/promise-watch/starter-template). Clone it down and then add your own custom runs to the `runs/` directory. | ||
### Create a promise-watch.config.ts | ||
You'll need to create your own config: | ||
```typescript | ||
type PromiseWatchOptions = { | ||
globPath?: string; // defaults to "runs/**/*.{js,ts}" | ||
notifiers: Notifier[]; | ||
}; | ||
``` | ||
```typescript | ||
// promise-watch.config.ts | ||
export default { | ||
notifiers: [], | ||
} | ||
``` | ||
## Notifiers | ||
@@ -83,0 +99,0 @@ |
@@ -18,7 +18,3 @@ /** | ||
const options = { dir, ...config.default }; | ||
console.log(options); | ||
await executeJobs(options); | ||
await executeJobs({ dir, ...config.default }); | ||
})().catch(err => { | ||
@@ -25,0 +21,0 @@ console.error(err); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44374
166
683