Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions .gitattributes

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

19 changes: 0 additions & 19 deletions .github/workflows/release-beta.yml

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

19 changes: 0 additions & 19 deletions .github/workflows/release.yml

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

2 changes: 0 additions & 2 deletions .gitignore

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

2 changes: 0 additions & 2 deletions .npmignore

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

42 changes: 4 additions & 38 deletions .projen/deps.json

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

26 changes: 1 addition & 25 deletions .projen/tasks.json

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

43 changes: 15 additions & 28 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const project = new AwsCdkConstructLibrary({
packageName: '@aws-amplify/cdk-exported-backend',
cdkVersion: '1.127.0',
defaultReleaseBranch: 'release',
name: 'export-backend',
name: 'exported-backend',
bundledDeps: dependencies,
deps: dependencies,
devDeps: [
Expand All @@ -21,17 +21,18 @@ const project = new AwsCdkConstructLibrary({
'@types/node',
'@types/uuid',
'yaml',
'@aws-cdk/core',
],
authorOrganization: true,
repositoryUrl: 'https://github.com/aws-amplify/amplify-cli-export-construct.git',
packageManager: NodePackageManager.NPM,
publishToNuget: {
dotNetNamespace: 'Amazon.Amplify.CDK',
packageId: 'Exportedbackend',
},
// publishToNuget: {
// dotNetNamespace: 'Amazon.Amplify.CDK',
// packageId: 'Exportedbackend',
// },
publishToPypi: {
distName: 'aws-amplify.cdk.Exported-backend',
module: 'aws-amplify.cdk.Exported_backend',
distName: 'aws-amplify.cdk.exported-backend',
module: 'aws_amplify.cdk.exported_backend',
},
publishToMaven: {
javaPackage: 'com.amplifyframework.cdk.exportedbackend',
Expand All @@ -45,7 +46,6 @@ const project = new AwsCdkConstructLibrary({
docgen: true,
npmDistTag: 'latest',
cdkDependencies: [
'@aws-cdk/core',
'@aws-cdk/aws-apigateway',
'@aws-cdk/aws-appsync',
'@aws-cdk/aws-cloudformation',
Expand All @@ -61,6 +61,7 @@ const project = new AwsCdkConstructLibrary({
'integ-test/amplify-e2e-core',
'integ-test/amplify-headless-interface',
],
eslint: false,
license: 'Apache-2.0',
licensed: true,
excludeTypescript: ['integ-test/*'],
Expand All @@ -74,26 +75,12 @@ const project = new AwsCdkConstructLibrary({
testdir: 'test',
mutableBuild: false,
cdkAssert: true,
// tsconfig: {
// compilerOptions: {
// esModuleInterop: true,
// strictPropertyInitialization: false,
// },
// },
// cdkDependencies: undefined, /* Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? */
// cdkTestDependencies: undefined, /* AWS CDK modules required for testing. */
// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// devDeps: [], /* Build dependencies for this module. */
// packageName: undefined, /* The "name" in package.json. */
// release: undefined, /* Add release management to this project. */
});
const unitTest = project.tasks.tryFind('test');
unitTest.reset();
unitTest.exec('rm -fr lib/');
unitTest.exec('tsc --noEmit --project tsconfig.jest.json');
unitTest.exec('jest ./test/*');
unitTest.exec('eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools .projenrc.js');
project.release.addBranch('beta', {
tagPrefix: 'beta',
majorVersion: '0',
Expand Down Expand Up @@ -123,14 +110,14 @@ const integrationTestJob = {
},
{
name: 'Install Amplify CLI',
run: 'npm i @aws-amplify/cli@6.4.0-ext11.0\nnpm i -g @aws-amplify/cli@6.4.0-ext11.0\nwhich amplify\namplify_path=$(which amplify)\necho "AMPLIFY_PATH=$amplify_path" >> $GITHUB_ENV\necho ${{ env.AMPLIFY_PATH }}\n',
run: 'npm i @aws-amplify/cli@6.4.0-ext12.0\nnpm i -g @aws-amplify/cli@6.4.0-ext12.0\nwhich amplify\namplify_path=$(which amplify)\necho "AMPLIFY_PATH=$amplify_path" >> $GITHUB_ENV\necho ${{ env.AMPLIFY_PATH }}\n',
},
{
name: 'Checkout',
uses: 'actions/checkout@v2',
with: {
repository: 'aws-amplify/amplify-cli',
ref: 'extOverrides2',
ref: 'extOverrides3',
path: 'amplify-cli',
},
},
Expand Down Expand Up @@ -184,8 +171,8 @@ fs.writeFileSync('./.github/workflows/integration-test.yml', stringify({
},
}));

const publishJobs = project.release.publisher.jobs;
Object.keys(project.release.publisher.jobs).forEach((r) => {
publishJobs[r].needs = ['integration_tests'];
});
// const publishJobs = project.release.publisher.jobs;
// Object.keys(project.release.publisher.jobs).forEach((r) => {
// publishJobs[r].needs = ['integration_tests'];
// });
project.synth();
Loading