Skip to content

Commit

Permalink
make project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
scott.hsieh[謝書正] committed Jun 27, 2021
1 parent e8defa1 commit 2506747
Show file tree
Hide file tree
Showing 9 changed files with 303 additions and 39 deletions.
1 change: 1 addition & 0 deletions .gitattributes

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

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

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

85 changes: 85 additions & 0 deletions .github/workflows/upgrade-projen.yml

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

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ yarn-error.log*
!/.github/workflows/build.yml
!/.github/workflows/release.yml
!/.github/workflows/upgrade-dependencies.yml
!/.github/workflows/upgrade-projen.yml
!/.mergify.yml
!/.npmignore
!/.projen/deps.json
Expand Down
12 changes: 11 additions & 1 deletion .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dependencies": [
{
"name": "@aws-cdk/assert",
"version": "^1.95.2",
"version": "^1.110.0",
"type": "build"
},
{
Expand Down Expand Up @@ -95,10 +95,20 @@
"name": "typescript",
"type": "build"
},
{
"name": "@aws-cdk/aws-s3",
"version": "^1.110.0",
"type": "peer"
},
{
"name": "constructs",
"version": "^3.2.27",
"type": "peer"
},
{
"name": "@aws-cdk/aws-s3",
"version": "^1.110.0",
"type": "runtime"
}
],
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
Expand Down
68 changes: 56 additions & 12 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,63 @@
const { AwsCdkConstructLibrary } = require('projen');
const { AwsCdkConstructLibrary, NpmAccess, ProjectType } = require('projen');
const project = new AwsCdkConstructLibrary({
author: 'user',
authorAddress: '[email protected]',
cdkVersion: '1.95.2',
author: 'scott.hsieh',
authorName: 'Shu-Jeng Hsieh',
authorAddress: 'https://fantasticsie.medium.com/',
keywords: [
'amazon-comprehhend',
'aws-sam',
'object-lambda',
'pii',
's3',
'scott.hsieh'
],

catalog: {
announce: true
},

cdkVersion: '1.110.0',
defaultReleaseBranch: 'main',
name: 'cdk-comprehend-s3olap',
repositoryUrl: 'git@scott:HsiehShuJeng/cdk-comprehend-s3olap.git',
projectType: ProjectType.LIB,

cdkDependencies: [
'@aws-cdk/aws-s3',
],
cdkAssert: true,
npmAccess: NpmAccess.PUBLIC,

eslint: true,
projenUpgradeSecret: 'PROJEN_UPGRADE_SECRET',
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
},
depsUpgradeAutoMerge: true,

// publish to npm
releaseToNpm: true,
releaseWorkflow: true,
releaseEveryCommit: true, //will run the release GitHub Action on each push to the defined

// publish to PyPi
publishToPypi: {
distName: 'cdk_comprehend_s3olap',
module: 'cdk_comprehend_s3olap',
},

// publish to Maven
publishToMaven: {
mavenGroupId: 'io.github.hsiehshujeng',
mavenArtifactId: 'cdk-comprehend-s3olap',
javaPackage: 'io.github.hsiehshujeng.cdk.comprehend.s3olap',
mavenEndpoint: 'https://s01.oss.sonatype.org', // check https://central.sonatype.org/publish/release/#login-into-ossrh
},

// 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. */
// projectType: ProjectType.UNKNOWN, /* Which type of project this is (library/app). */
// releaseWorkflow: undefined, /* Define a GitHub workflow for releasing from "main" when new versions are bumped. */
// publish to dotnet
publishToNuget: {
dotNetNamespace: 'ScottHsieh.Cdk',
packageId: 'Comprehend.S3olap',
},
});
project.synth();
2 changes: 1 addition & 1 deletion LICENSE

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

39 changes: 34 additions & 5 deletions package.json

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

Loading

0 comments on commit 2506747

Please sign in to comment.