Skip to content

Commit

Permalink
feat: fully updated with new construct
Browse files Browse the repository at this point in the history
  • Loading branch information
dkershner6 committed Dec 26, 2023
1 parent 864b687 commit fc545eb
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 71 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json

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

2 changes: 1 addition & 1 deletion .gitattributes

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

2 changes: 1 addition & 1 deletion .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.

2 changes: 1 addition & 1 deletion .projen/files.json

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

2 changes: 1 addition & 1 deletion .projen/tasks.json

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

112 changes: 57 additions & 55 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,61 +1,63 @@
import { Node20AwsCdkConstructLibrary } from "dkershner6-projen";
import { Node20AwsCdkConstructLibrary } from 'dkershner6-projen';

const GITHUB_USERNAME_OR_ORG = "dkershner6";
const GITHUB_USERNAME_OR_ORG_PASCAL_CASE = "DKershner6";
const PROJECT_NAME = "cdk-nextjs-export-s3-dynamic-routing";
const PROJECT_NAME_PASCAL_CASE = "CdkNextjsExportS3DynamicRouting";

const GITHUB_USERNAME_OR_ORG = 'dkershner6';
const GITHUB_USERNAME_OR_ORG_PASCAL_CASE = 'DKershner6';
const PROJECT_NAME = 'cdk-nextjs-export-s3-dynamic-routing';
const PROJECT_NAME_PASCAL_CASE = 'CdkNextjsExportS3DynamicRouting';

const project = new Node20AwsCdkConstructLibrary({
majorVersion: 1,
author: "Derek Kershner",
authorAddress: "https://dkershner.com",
cdkVersion: "2.77.0",
defaultReleaseBranch: "main",
jsiiVersion: "~5.0.0",
name: PROJECT_NAME,
projenrcTs: true,
repositoryUrl:
"https://github.com/dkershner6/cdk-nextjs-export-s3-dynamic-routing.git",

/* Runtime dependencies of this module. */
deps: ["lodash.set", "uglify-js"],
description:
"Deploy a static export Next.js site to Cloudfront and S3 while maintaining the ability to use dynamic routes." /* The description is just a string that helps people understand the purpose of the package. */,
devDeps: [
"@types/lodash.set",
"@types/uglify-js",
"dkershner6-projen",
"projen-nvm",
] /* Build dependencies for this module. */,
packageName: PROJECT_NAME /* The "name" in package.json. */,
bundledDeps: [
"lodash.set",
"uglify-js",
] /* Bundled dependencies of this module. */,

gitignore: [".DS_Store"],

// Publish to other languages
publishToPypi: {
distName: PROJECT_NAME,
module: PROJECT_NAME.replace("-", "_"),
},

publishToNuget: {
packageId: `${GITHUB_USERNAME_OR_ORG_PASCAL_CASE}.${PROJECT_NAME_PASCAL_CASE}`,
dotNetNamespace: `${GITHUB_USERNAME_OR_ORG_PASCAL_CASE}.${PROJECT_NAME_PASCAL_CASE}`,
},

publishToGo: {
moduleName: `github.com/${GITHUB_USERNAME_OR_ORG}/${PROJECT_NAME}`,
},

// publishToMaven: {
// mavenGroupId: `io.github.${GITHUB_USERNAME_OR_ORG}`,
// javaPackage: `io.github.${GITHUB_USERNAME_OR_ORG}.${PROJECT_NAME.replace('-', '')}`,
// mavenArtifactId: PROJECT_NAME,
// mavenEndpoint: 'https://s01.oss.sonatype.org',
// },

majorVersion: 1,
author: 'Derek Kershner',
authorAddress: 'https://dkershner.com',
cdkVersion: '2.77.0',
defaultReleaseBranch: 'main',
jsiiVersion: '~5.0.0',
name: PROJECT_NAME,
projenrcTs: true,
repositoryUrl:
'https://github.com/dkershner6/cdk-nextjs-export-s3-dynamic-routing.git',

/* Runtime dependencies of this module. */
deps: ['lodash.set', 'uglify-js'],
description:
'Deploy a static export Next.js site to Cloudfront and S3 while maintaining the ability to use dynamic routes.' /* The description is just a string that helps people understand the purpose of the package. */,
devDeps: [
'@types/lodash.set',
'@types/uglify-js',
'dkershner6-projen',
'projen-nvm',
] /* Build dependencies for this module. */,
packageName: PROJECT_NAME /* The "name" in package.json. */,
bundledDeps: [
'lodash.set',
'uglify-js',
] /* Bundled dependencies of this module. */,

gitignore: ['.DS_Store'],

// Publish to other languages
publishToPypi: {
distName: PROJECT_NAME,
module: PROJECT_NAME.replace('-', '_'),
},

publishToNuget: {
packageId: `${GITHUB_USERNAME_OR_ORG_PASCAL_CASE}.${PROJECT_NAME_PASCAL_CASE}`,
dotNetNamespace: `${GITHUB_USERNAME_OR_ORG_PASCAL_CASE}.${PROJECT_NAME_PASCAL_CASE}`,
},

publishToGo: {
moduleName: `github.com/${GITHUB_USERNAME_OR_ORG}/${PROJECT_NAME}`,
},

// publishToMaven: {
// mavenGroupId: `io.github.${GITHUB_USERNAME_OR_ORG}`,
// javaPackage: `io.github.${GITHUB_USERNAME_OR_ORG}.${PROJECT_NAME.replace('-', '')}`,
// mavenArtifactId: PROJECT_NAME,
// mavenEndpoint: 'https://s01.oss.sonatype.org',
// },
});

project.synth();
4 changes: 2 additions & 2 deletions package.json

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

16 changes: 8 additions & 8 deletions pnpm-lock.yaml

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

38 changes: 38 additions & 0 deletions tsconfig.dev.json

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

0 comments on commit fc545eb

Please sign in to comment.