Skip to content

Commit

Permalink
Copy over initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
rlmartin committed Oct 11, 2022
1 parent db69ffe commit 4088cb7
Show file tree
Hide file tree
Showing 17 changed files with 976 additions and 327 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 33 additions & 1 deletion .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .github/workflows/upgrade-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 34 additions & 6 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
import { typescript } from 'projen';
import { NpmAccess } from 'projen/lib/javascript';
const project = new typescript.TypeScriptProject({
defaultReleaseBranch: 'main',
name: 'plugin-github',
name: '@skeptools/plugin-github',
projenrcTs: true,
releaseToNpm: true,
npmAccess: NpmAccess.PUBLIC,
deps: [
'@cdktf/provider-github@~3',
'@skeptools/skep-core@~0',
'constructs@~10',
],
devDeps: [
'cdktf@~0',
],
gitignore: [
'*.d.ts',
'*.js',
'cdktf.out',
'terraform.tfstate*',
'.gen',
],

// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
Expand Down
22 changes: 17 additions & 5 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 39 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
export class Hello {
public sayHello() {
return 'hello, world!';
}
}
import * as github from '@cdktf/provider-github';
import { Factory as FactoryInterface, ProviderParameters } from '@skeptools/skep-core';
import { Organization, OrganizationProps } from './organization';
import { Person, PersonProps } from './person';
import { Team, TeamProps } from './team';

export * from './organization';
export * from './person';
export * from './team';
export interface ProviderParametersType {
readonly token: string;
}

export class Factory<
PersonKeyType extends string,
TeamTypeType extends string,
RoleType
> extends FactoryInterface<
PersonKeyType,
TeamTypeType,
RoleType,
OrganizationProps<TeamTypeType>,
Organization<TeamTypeType>,
PersonProps,
Person<RoleType, TeamTypeType>,
TeamProps,
Team<TeamTypeType, PersonKeyType, RoleType>,
ProviderParametersType
> {
organizationConstructor = Organization;
personConstructor = Person;
teamConstructor = Team;
providerParameters: ProviderParameters<keyof ProviderParametersType> = {
token: {
type: 'string',
},
};
providerConstructor = github.provider.GithubProvider;
}
Loading

0 comments on commit 4088cb7

Please sign in to comment.