0.1.196 • Published 10 days ago

cdklabs-projen-project-types v0.1.196

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 days ago

Cdklabs Projen Project Types

This repository stores custom project types extended from projen with cdklabs defaults baked in. This is meant to serve as a hook for continuous management of all repos we own. With cdklabs projen types, we can add new configuration as they come up and have it propagate to all repositories using the type.

CdklabsConstructLibrary

This type extends projen's awscdk.AwsConstructLibrary project type and should be used in place of that type.

Usage

From the command line:

npx projen new --from cdklabs-projen-project-types cdklabs-construct-lib

From inside cdk-ops:

this.cdklabs.addPreApprovedRepo({
  repo: 'cdk-new-lib',
  owner: 'conroyka@amazon.com',
  createWith: {
    projectType: ProjectType.CDKLABS_MANAGED_CONSTRUCT_LIB,
  },
});

Features

  • cdklabsPublishingDefaults

By default, this is turned on. cdklabsPublishingDefaults provides publishing defaults based off of the project's name. Specifically, the defaults look like this:

return {
  publishToPypi: {
    distName: npmPackageName,
    module: changeDelimiter(npmPackageName, '_'),
  },
  publishToMaven: {
    javaPackage: `io.github.cdklabs.${changeDelimiter(npmPackageName, '.')}`,
    mavenGroupId: 'io.github.cdklabs',
    mavenArtifactId: npmPackageName,
    mavenEndpoint: 'https://s01.oss.sonatype.org',
  },
  publishToNuget: {
    dotNetNamespace: `Cdklabs${upperCaseName(npmPackageName)}`,
    packageId: `Cdklabs${upperCaseName(npmPackageName)}`,
  },
  publishToGo: {
    moduleName: `${npmPackageName}-go`,
  },
};

Additionally, we also require that we publish to all jsii language targets (including go) when we specify a library as stable.

  • private

By default, a project is created as private. Turning this off simply means setting private: false. A project being private means it gets certain properties set as default that are true for private projects. Today, that means setting private: true in package.json, removing .mergify.yml from the project, and removing .npmignore.

  • releasableCommits

By default this project type releases ReleasableCommits.featuresAndFixes, to not release a new version every day on a package that only sees devDependency updates. You may want to override this if you need something more specific.

CdklabsTypeScriptProject

This type extends projen's typescript.TypeScriptProject project type and should be used in place of that type.

Usage

npx projen new --from cdklabs-projen-project-types cdklabs-ts-proj

From inside cdk-ops:

this.cdklabs.addPreApprovedRepo({
  repo: 'cdk-new-lib',
  owner: 'conroyka@amazon.com',
  createWith: {
    projectType: ProjectType.CDKLABS_MANAGED_TS_PROJECT,
  },
});

Features

  • private

By default, a project is created as private. Turning this off simply means setting private: false. A project being private means it gets certain properties set as default that are true for private projects. Today, that means setting private: true in package.json, removing .mergify.yml from the project, and removing .npmignore.

CdklabsMonorepo

A TypeScript monorepo using Yarn Workspaces. Individual workspaces can be added with yarn.TypeScriptWorkspace which extends projen's typescript.TypeScriptProject.

Usage

npx projen new --from cdklabs-projen-project-types cdklabs-yarn-monorepo

Features

const project = new yarn.CdkLabsMonorepo({
  defaultReleaseBranch: "main",
  devDeps: ["cdklabs-projen-project-types"],
  name: "monorepo",
});
  • Workspace commands: projen build|compile|package|test|upgrade\ Will run the specific command in all workspaces and the root if applicable.

  • Workspace run: projen run <command>\ Executes the given command in all workspaces

  • Automatic dependency installation\ The monorepo will know if a dependency has been added for a workspace and run yarn install as part of projen

  • projen at any level\ The default projen command can be run in any workspace and will execute the monorepo synth command.

  • Release\ This feature is not supported at this time. Any release functionality must be implemented.

  • vscodeWorkspace: boolean\ You can specify if a VSCode Workspace file should be created for the monorepo.

Workspaces

new yarn.TypeScriptWorkspace({
  parent: project,
  name: 'workspace'
})
  • parent: yarn.Monorepo\ Workspaces (aka subprojects) must be added using the parent option.

  • workspaceScope: string\ The location the workspace is placed at. Defaults to ./packages

  • excludeDepsFromUpgrade: Array<string>\ List any dependencies that should not be updated in the workspace.

0.1.196

10 days ago

0.1.195

10 days ago

0.1.194

13 days ago

0.1.192

1 month ago

0.1.191

1 month ago

0.1.193

1 month ago

0.1.190

2 months ago

0.1.189

3 months ago

0.1.188

3 months ago

0.1.187

4 months ago

0.1.186

4 months ago

0.1.185

4 months ago

0.1.184

4 months ago

0.1.183

5 months ago

0.1.169

6 months ago

0.1.168

6 months ago

0.1.165

6 months ago

0.1.164

7 months ago

0.1.167

6 months ago

0.1.166

6 months ago

0.1.161

9 months ago

0.1.160

9 months ago

0.1.163

9 months ago

0.1.162

9 months ago

0.1.170

6 months ago

0.1.179

6 months ago

0.1.176

6 months ago

0.1.175

6 months ago

0.1.178

6 months ago

0.1.177

6 months ago

0.1.172

6 months ago

0.1.171

6 months ago

0.1.174

6 months ago

0.1.173

6 months ago

0.1.181

6 months ago

0.1.180

6 months ago

0.1.182

6 months ago

0.1.158

10 months ago

0.1.157

10 months ago

0.1.159

10 months ago

0.1.154

11 months ago

0.1.153

11 months ago

0.1.156

11 months ago

0.1.155

11 months ago

0.1.152

11 months ago

0.1.139

11 months ago

0.1.136

11 months ago

0.1.135

11 months ago

0.1.138

11 months ago

0.1.137

11 months ago

0.1.134

11 months ago

0.1.133

11 months ago

0.1.147

11 months ago

0.1.146

11 months ago

0.1.149

11 months ago

0.1.148

11 months ago

0.1.143

11 months ago

0.1.142

11 months ago

0.1.145

11 months ago

0.1.144

11 months ago

0.1.141

11 months ago

0.1.140

11 months ago

0.1.150

11 months ago

0.1.151

11 months ago

0.1.118

12 months ago

0.1.117

12 months ago

0.1.119

11 months ago

0.1.114

12 months ago

0.1.113

12 months ago

0.1.116

12 months ago

0.1.115

12 months ago

0.1.110

12 months ago

0.1.112

12 months ago

0.1.111

12 months ago

0.1.129

11 months ago

0.1.128

11 months ago

0.1.125

11 months ago

0.1.124

11 months ago

0.1.127

11 months ago

0.1.126

11 months ago

0.1.121

11 months ago

0.1.120

11 months ago

0.1.123

11 months ago

0.1.122

11 months ago

0.1.132

11 months ago

0.1.131

11 months ago

0.1.130

11 months ago

0.1.97

12 months ago

0.1.98

12 months ago

0.1.99

12 months ago

0.1.107

12 months ago

0.1.106

12 months ago

0.1.109

12 months ago

0.1.108

12 months ago

0.1.103

12 months ago

0.1.102

12 months ago

0.1.105

12 months ago

0.1.104

12 months ago

0.1.101

12 months ago

0.1.100

12 months ago

0.1.96

1 year ago

0.1.90

1 year ago

0.1.91

1 year ago

0.1.92

1 year ago

0.1.93

1 year ago

0.1.94

1 year ago

0.1.95

1 year ago

0.1.85

1 year ago

0.1.86

1 year ago

0.1.87

1 year ago

0.1.88

1 year ago

0.1.89

1 year ago

0.1.80

1 year ago

0.1.81

1 year ago

0.1.82

1 year ago

0.1.83

1 year ago

0.1.84

1 year ago

0.1.74

1 year ago

0.1.75

1 year ago

0.1.76

1 year ago

0.1.77

1 year ago

0.1.78

1 year ago

0.1.79

1 year ago

0.1.70

1 year ago

0.1.71

1 year ago

0.1.72

1 year ago

0.1.73

1 year ago

0.1.63

1 year ago

0.1.64

1 year ago

0.1.65

1 year ago

0.1.66

1 year ago

0.1.67

1 year ago

0.1.68

1 year ago

0.1.69

1 year ago

0.1.62

1 year ago

0.1.52

1 year ago

0.1.53

1 year ago

0.1.54

1 year ago

0.1.55

1 year ago

0.1.56

1 year ago

0.1.57

1 year ago

0.1.58

1 year ago

0.1.59

1 year ago

0.1.50

1 year ago

0.1.51

1 year ago

0.1.49

1 year ago

0.1.41

1 year ago

0.1.42

1 year ago

0.1.43

1 year ago

0.1.44

1 year ago

0.1.45

1 year ago

0.1.46

1 year ago

0.1.47

1 year ago

0.1.48

1 year ago

0.1.40

1 year ago

0.1.38

1 year ago

0.1.39

1 year ago

0.1.33

1 year ago

0.1.34

1 year ago

0.1.35

1 year ago

0.1.36

1 year ago

0.1.37

1 year ago

0.1.60

1 year ago

0.1.61

1 year ago

0.1.32

1 year ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.20

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago