pepr 0.13.2 → 0.13.3

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.
@@ -0,0 +1,21 @@
1
+ {
2
+ "Create a new Pepr capability": {
3
+ "prefix": "create pepr capability",
4
+ "body": [
5
+ "import { Capability, a } from 'pepr';",
6
+ "",
7
+ "export const ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/} = new Capability({",
8
+ "\tname: '${TM_FILENAME_BASE}',",
9
+ "\tdescription: '${1:A brief description of this capability.}',",
10
+ "\tnamespaces: [${2:}],",
11
+ "});",
12
+ "",
13
+ "// Use the 'When' function to create a new action",
14
+ "const { When } = ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/};",
15
+ "",
16
+ "// When(a.<Kind>).Is<Event>().Then(change => change.<changes>",
17
+ "When(${3:})"
18
+ ],
19
+ "description": "Creates a new Pepr capability with a specified description, optional namespaces, and adds a When statement for the specified value."
20
+ }
21
+ }
@@ -0,0 +1,17 @@
1
+ import { PeprModule } from "pepr";
2
+ // cfg loads your pepr configuration from package.json
3
+ import cfg from "./package.json";
4
+
5
+ // HelloPepr is a demo capability that is included with Pepr. Comment or delete the line below to remove it.
6
+ import { HelloPepr } from "./capabilities/hello-pepr";
7
+
8
+ /**
9
+ * This is the main entrypoint for this Pepr module. It is run when the module is started.
10
+ * This is where you register your Pepr configurations and capabilities.
11
+ */
12
+ new PeprModule(cfg, [
13
+ // "HelloPepr" is a demo capability that is included with Pepr. Comment or delete the line below to remove it.
14
+ HelloPepr,
15
+
16
+ // Your additional capabilities go here
17
+ ]);
@@ -0,0 +1,9 @@
1
+ {
2
+ "debug.javascript.terminalOptions": {
3
+ "enableTurboSourcemaps": true,
4
+ "resolveSourceMapLocations": [
5
+ "${workspaceFolder}/**",
6
+ "node_modules/pepr/**"
7
+ ]
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.module.json",
3
+ "compilerOptions": {
4
+ "paths": {
5
+ "pepr": ["../lib.ts"]
6
+ },
7
+ "rootDir": "../../"
8
+ }
9
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowSyntheticDefaultImports": true,
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "emitDeclarationOnly": true,
7
+ "esModuleInterop": true,
8
+ "lib": ["ES2022"],
9
+ "module": "CommonJS",
10
+ "moduleResolution": "node",
11
+ "outDir": "dist",
12
+ "resolveJsonModule": true,
13
+ "rootDir": ".",
14
+ "strict": false,
15
+ "target": "ES2022",
16
+ "useUnknownInCatchVariables": false
17
+ },
18
+ "include": ["**/*.ts"]
19
+ }