@akdev1l/constructs 0.0.1 → 0.0.2
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.
- package/build/{src/github/GithubAccessProvider.d.ts → dist/github/access-provider.d.ts} +1 -1
- package/build/dist/github/access-provider.d.ts.map +1 -0
- package/build/{src/github/GithubAccessProvider.js → dist/github/access-provider.js} +1 -1
- package/build/dist/github/access-provider.js.map +1 -0
- package/build/dist/github/index.d.ts +2 -0
- package/build/dist/github/index.d.ts.map +1 -0
- package/build/dist/github/index.js +2 -0
- package/build/dist/github/index.js.map +1 -0
- package/build/dist/index.d.ts +2 -0
- package/build/{src → dist}/index.d.ts.map +1 -1
- package/build/dist/index.js +2 -0
- package/build/dist/index.js.map +1 -0
- package/eslint.config.ts +17 -0
- package/jest.config.js +1 -1
- package/package.json +18 -2
- package/src/github/__tests__/access-provider.test.ts +18 -0
- package/src/github/index.ts +1 -0
- package/src/index.ts +1 -3
- package/tsconfig.json +7 -4
- package/build/src/github/GithubAccessProvider.d.ts.map +0 -1
- package/build/src/github/GithubAccessProvider.js.map +0 -1
- package/build/src/index.d.ts +0 -2
- package/build/src/index.js +0 -3
- package/build/src/index.js.map +0 -1
- package/build/test/index.test.d.ts +0 -2
- package/build/test/index.test.d.ts.map +0 -1
- package/build/test/index.test.js +0 -6
- package/build/test/index.test.js.map +0 -1
- package/test/index.test.ts +0 -6
- /package/src/github/{GithubAccessProvider.ts → access-provider.ts} +0 -0
|
@@ -9,4 +9,4 @@ export declare class GithubAccessProvider extends Construct {
|
|
|
9
9
|
readonly role: iam.Role;
|
|
10
10
|
constructor(scope: Construct, id: string, props: GithubAccessProviderProps);
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=access-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-provider.d.ts","sourceRoot":"","sources":["../../../src/github/access-provider.ts"],"names":[],"mappings":"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AE;gBACxB,yCAAyC,EAAE,6CAA6C;gBACxF,yCAAyC,EAAE,mBAAmB;aAC/D;SACF,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE;YAClD,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,UAAU,CAAC;YAC3F,WAAW,EAAE,mCAAmC,KAAK,CAAC,IAAI,EAAE;YAC5D,kBAAkB,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;SACtC,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/github/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/github/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/eslint.config.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
import { defineConfig } from "eslint/config";
|
|
5
|
+
|
|
6
|
+
export default defineConfig([
|
|
7
|
+
{
|
|
8
|
+
files: ["{src,test}/**/*.{js,mjs,cjs,ts,mts,cts}"],
|
|
9
|
+
plugins: { js },
|
|
10
|
+
extends: ["js/recommended"],
|
|
11
|
+
languageOptions: { globals: globals.browser }
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
ignores: ["build/**/*.{t,j}s"],
|
|
15
|
+
},
|
|
16
|
+
tseslint.configs.recommended,
|
|
17
|
+
]);
|
package/jest.config.js
CHANGED
|
@@ -7,7 +7,7 @@ const tsJestTransformCfg = createDefaultPreset({
|
|
|
7
7
|
export default {
|
|
8
8
|
testEnvironment: "node",
|
|
9
9
|
extensionsToTreatAsEsm: [".ts"],
|
|
10
|
-
roots: ['<rootDir>/
|
|
10
|
+
roots: ['<rootDir>/src'],
|
|
11
11
|
moduleNameMapper: {
|
|
12
12
|
'^@akdev1l/constructs$': '<rootDir>/src/index.ts'
|
|
13
13
|
},
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akdev1l/constructs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "CDK Constructs",
|
|
5
5
|
"private": false,
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./build/dist/index.d.ts",
|
|
9
|
+
"import": "./build/dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
6
12
|
"keywords": [
|
|
7
13
|
"cdk",
|
|
8
14
|
"construct"
|
|
@@ -20,16 +26,26 @@
|
|
|
20
26
|
"type": "module",
|
|
21
27
|
"main": "build/index.js",
|
|
22
28
|
"scripts": {
|
|
29
|
+
"prepublish": "npm run release",
|
|
30
|
+
"release": "npm run build",
|
|
31
|
+
"lint": "eslint",
|
|
32
|
+
"format": "eslint --fix",
|
|
23
33
|
"test": "jest",
|
|
24
34
|
"build": "tsc",
|
|
35
|
+
"prebuild": "eslint && jest",
|
|
25
36
|
"clean": "rm -rf build/*"
|
|
26
37
|
},
|
|
27
38
|
"devDependencies": {
|
|
39
|
+
"@eslint/js": "^9.39.2",
|
|
28
40
|
"@types/jest": "^30.0.0",
|
|
29
41
|
"aws-cdk": "^2.1104.0",
|
|
42
|
+
"eslint": "^9.39.2",
|
|
43
|
+
"globals": "^17.2.0",
|
|
30
44
|
"jest": "^30.2.0",
|
|
45
|
+
"jiti": "^2.6.1",
|
|
31
46
|
"ts-jest": "^29.4.6",
|
|
32
|
-
"typescript": "^5.9.3"
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"typescript-eslint": "^8.54.0"
|
|
33
49
|
},
|
|
34
50
|
"dependencies": {
|
|
35
51
|
"aws-cdk-lib": "^2.236.0"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { App, Stack } from 'aws-cdk-lib';
|
|
2
|
+
import { GithubAccessProvider } from '../access-provider';
|
|
3
|
+
import { describe, it, expect } from '@jest/globals';
|
|
4
|
+
|
|
5
|
+
describe('Github Access Provider', () => {
|
|
6
|
+
const app = new App();
|
|
7
|
+
const stack = new Stack(app, 'stack', {});
|
|
8
|
+
|
|
9
|
+
it('can build access provider', () => {
|
|
10
|
+
const githubProvider = new GithubAccessProvider(stack, 'GithubProvider', {
|
|
11
|
+
repo: 'akdev1l/cdk-constructs',
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
expect(githubProvider).not.toBeNull();
|
|
15
|
+
expect(githubProvider.provider).not.toBeNull();
|
|
16
|
+
expect(githubProvider.role).not.toBeNull();
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './access-provider';
|
package/src/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Visit https://aka.ms/tsconfig to read more about this file
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
// File Layout
|
|
5
|
-
|
|
6
|
-
"outDir": "./build",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./build/dist",
|
|
7
7
|
|
|
8
8
|
// Environment Settings
|
|
9
9
|
// See also https://aka.ms/tsconfig/module
|
|
10
|
-
"module": "
|
|
10
|
+
"module": "esnext",
|
|
11
11
|
"target": "esnext",
|
|
12
12
|
"types": [],
|
|
13
13
|
// For nodejs:
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
// "noPropertyAccessFromIndexSignature": true,
|
|
34
34
|
|
|
35
35
|
// Recommended Options
|
|
36
|
+
"moduleResolution": "bundler",
|
|
36
37
|
"strict": true,
|
|
37
38
|
"jsx": "react-jsx",
|
|
38
39
|
"verbatimModuleSyntax": true,
|
|
@@ -40,5 +41,7 @@
|
|
|
40
41
|
"noUncheckedSideEffectImports": true,
|
|
41
42
|
"moduleDetection": "force",
|
|
42
43
|
"skipLibCheck": true,
|
|
43
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"include": ["src"],
|
|
46
|
+
"exclude": ["**/__tests__"]
|
|
44
47
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GithubAccessProvider.d.ts","sourceRoot":"","sources":["../../../src/github/GithubAccessProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,IAAI,GAAG,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,OAAO,CAAC,MAAM,CAAC,aAAa,CAAiD;IAE7E,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;gBAEZ,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,yBAAyB;CAyB3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GithubAccessProvider.js","sourceRoot":"","sources":["../../../src/github/GithubAccessProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,GAAG,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAMvC,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACzC,MAAM,CAAC,aAAa,GAAG,6CAA6C,CAAC;IAEpE,QAAQ,CAA4B;IACpC,IAAI,CAAW;IAExB,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAgC;QACxE,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,qBAAqB,CAAC,IAAI,EAAE,uBAAuB,EAAE;YAC3E,GAAG,EAAE,oBAAoB,CAAC,aAAa;YACvC,SAAS,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC,CAAC;QAEH,MAAM,UAAU,GAAmB;YACjC,UAAU,EAAE;gBACV,CAAC,GAAG,oBAAoB,CAAC,aAAa,MAAM,CAAC,EAAE,QAAQ,KAAK,CAAC,IAAI,EAAE;aACpE;YACD,wBAAwB,EAAE;gBACxB,yCAAyC,EAAE,6CAA6C;gBACxF,yCAAyC,EAAE,mBAAmB;aAC/D;SACF,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE;YAClD,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,UAAU,CAAC;YAC3F,WAAW,EAAE,mCAAmC,KAAK,CAAC,IAAI,EAAE;YAC5D,kBAAkB,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;SACtC,CAAC,CAAC;IACL,CAAC"}
|
package/build/src/index.d.ts
DELETED
package/build/src/index.js
DELETED
package/build/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAEnC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../test/index.test.ts"],"names":[],"mappings":""}
|
package/build/test/index.test.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../test/index.test.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE7C,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE;IACvB,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
|
package/test/index.test.ts
DELETED
|
File without changes
|