@rocketleap/rocketleap-projen 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "name": "@rocketleap/rocketleap-projen",
97
97
  "readme": {
98
- "markdown": "# replace this\n"
98
+ "markdown": "# rocketleap-projen\n\nThis project provides projen templates to quickly set up CDK projects in the Rocketleap platform.\nIt automatically tracks the `building-blocks-cdk` making it easy to stay up to date.\n\n## Features\n\n- Pre-configured AWS CDK TypeScript project setup\n- Automatic dependency management for `building-blocks-cdk`\n- Standardized ESLint, Prettier, and Git configuration\n- Yarn Berry (v4) with private registry support\n- Pre-commit hooks for code quality\n\n## How to adopt\n\n### New project\n\nRun `projen new` to create a new project:\n\n```shell\nnpx projen new --from @rocketleap/rocketleap-projen --company \"<company>\" --project \"<project>\"\n```\n\n### Existing project\n\nExisting projects can adopt the projen templates and get managed by `projen`.\n\n1. Install the `rocketleap-projen` library and peer dependencies:\n\n ```shell\n yarn add -D @rocketleap/rocketleap-projen projen\n ```\n\n2. Create or replace the `.projenrc.ts` file using the appropriate project type:\n\n ```typescript\n import { PlatformCdkProject } from '@rocketleap/rocketleap-projen';\n\n const project = new PlatformCdkProject({\n company: '<company>',\n project: '<project>',\n });\n\n project.synth();\n ```\n\n3. Run projen to generate the project configuration:\n\n ```shell\n npx ts-node .projenrc.ts\n ```\n\n## Project Types\n\n### PlatformCdkProject\n\nUse for **platform infrastructure** code (e.g., root-cdk, vpc-cdk, iam-cdk, security-cdk).\n\n- Includes the Norberhuis Onderneming B.V. IaC License\n- For code that is part of the licensed platform\n\n```typescript\nimport { PlatformCdkProject } from '@rocketleap/rocketleap-projen';\n\nconst project = new PlatformCdkProject({\n company: 'rocketleap',\n project: 'root-cdk',\n});\n\nproject.synth();\n```\n\n### WorkloadCdkProject\n\nUse for **customer workload** code that runs on the platform.\n\n- Does NOT include the platform license\n- For customer-specific application infrastructure\n\n```typescript\nimport { WorkloadCdkProject } from '@rocketleap/rocketleap-projen';\n\nconst project = new WorkloadCdkProject({\n company: 'acme',\n project: 'my-app-cdk',\n});\n\nproject.synth();\n```\n\n### RocketleapCdkProject (Base)\n\nThe base class used by both project types. Can be used directly if you need custom license handling.\n\n## Options\n\n| Option | Required | Default | Description |\n| ----------------------- | -------- | ----------- | ----------------------------------------------- |\n| `company` | Yes | - | The company identifier used for package scoping |\n| `project` | Yes | - | The project name |\n| `cdkVersion` | No | `'2.232.1'` | The AWS CDK version to use |\n| `constructVersion` | No | `'10.4.4'` | The constructs library version |\n| `buildingBlocksVersion` | No | `'0.104.1'` | The Rocketleap building blocks CDK version |\n"
99
99
  },
100
100
  "repository": {
101
101
  "type": "git",
@@ -145,40 +145,6 @@
145
145
  }
146
146
  },
147
147
  "types": {
148
- "@rocketleap/rocketleap-projen.RocketleapCdkProject": {
149
- "assembly": "@rocketleap/rocketleap-projen",
150
- "base": "projen.awscdk.AwsCdkTypeScriptApp",
151
- "docs": {
152
- "remarks": "This project type generates a fully configured AWS CDK TypeScript application\nwith Rocketleap's standard configuration including ESLint, Prettier, Yarn Berry,\nand pre-commit hooks.",
153
- "stability": "stable",
154
- "summary": "A projen project for Rocketleap CDK projects."
155
- },
156
- "fqn": "@rocketleap/rocketleap-projen.RocketleapCdkProject",
157
- "initializer": {
158
- "docs": {
159
- "stability": "stable"
160
- },
161
- "locationInModule": {
162
- "filename": "src/cdk-project.ts",
163
- "line": 21
164
- },
165
- "parameters": [
166
- {
167
- "name": "options",
168
- "type": {
169
- "fqn": "@rocketleap/rocketleap-projen.RocketleapCdkProjectOptions"
170
- }
171
- }
172
- ]
173
- },
174
- "kind": "class",
175
- "locationInModule": {
176
- "filename": "src/cdk-project.ts",
177
- "line": 20
178
- },
179
- "name": "RocketleapCdkProject",
180
- "symbolId": "src/cdk-project:RocketleapCdkProject"
181
- },
182
148
  "@rocketleap/rocketleap-projen.RocketleapCdkProjectOptions": {
183
149
  "assembly": "@rocketleap/rocketleap-projen",
184
150
  "datatype": true,
@@ -3626,8 +3592,182 @@
3626
3592
  }
3627
3593
  ],
3628
3594
  "symbolId": "src/cdk-project-options.generated:RocketleapCdkProjectOptions"
3595
+ },
3596
+ "@rocketleap/rocketleap-projen.RocketleapPlatformCdkProject": {
3597
+ "assembly": "@rocketleap/rocketleap-projen",
3598
+ "base": "projen.awscdk.AwsCdkTypeScriptApp",
3599
+ "docs": {
3600
+ "remarks": "This is for platform infrastructure code (e.g., root-cdk, vpc-cdk, iam-cdk).\nIncludes the Norberhuis Onderneming B.V. license.",
3601
+ "stability": "stable",
3602
+ "summary": "Projen project for Rocketleap Platform CDK projects."
3603
+ },
3604
+ "fqn": "@rocketleap/rocketleap-projen.RocketleapPlatformCdkProject",
3605
+ "initializer": {
3606
+ "docs": {
3607
+ "stability": "stable"
3608
+ },
3609
+ "locationInModule": {
3610
+ "filename": "src/cdk-project.ts",
3611
+ "line": 116
3612
+ },
3613
+ "parameters": [
3614
+ {
3615
+ "name": "options",
3616
+ "type": {
3617
+ "fqn": "@rocketleap/rocketleap-projen.RocketleapCdkProjectOptions"
3618
+ }
3619
+ }
3620
+ ]
3621
+ },
3622
+ "kind": "class",
3623
+ "locationInModule": {
3624
+ "filename": "src/cdk-project.ts",
3625
+ "line": 115
3626
+ },
3627
+ "methods": [
3628
+ {
3629
+ "docs": {
3630
+ "stability": "stable"
3631
+ },
3632
+ "locationInModule": {
3633
+ "filename": "src/cdk-project.ts",
3634
+ "line": 89
3635
+ },
3636
+ "name": "generateSampleProjenrc",
3637
+ "parameters": [
3638
+ {
3639
+ "name": "projectClass",
3640
+ "type": {
3641
+ "primitive": "string"
3642
+ }
3643
+ }
3644
+ ],
3645
+ "protected": true
3646
+ }
3647
+ ],
3648
+ "name": "RocketleapPlatformCdkProject",
3649
+ "properties": [
3650
+ {
3651
+ "docs": {
3652
+ "stability": "stable"
3653
+ },
3654
+ "immutable": true,
3655
+ "locationInModule": {
3656
+ "filename": "src/cdk-project.ts",
3657
+ "line": 24
3658
+ },
3659
+ "name": "company",
3660
+ "protected": true,
3661
+ "type": {
3662
+ "primitive": "string"
3663
+ }
3664
+ },
3665
+ {
3666
+ "docs": {
3667
+ "stability": "stable"
3668
+ },
3669
+ "immutable": true,
3670
+ "locationInModule": {
3671
+ "filename": "src/cdk-project.ts",
3672
+ "line": 25
3673
+ },
3674
+ "name": "projectName",
3675
+ "protected": true,
3676
+ "type": {
3677
+ "primitive": "string"
3678
+ }
3679
+ }
3680
+ ],
3681
+ "symbolId": "src/cdk-project:RocketleapPlatformCdkProject"
3682
+ },
3683
+ "@rocketleap/rocketleap-projen.RocketleapWorkloadCdkProject": {
3684
+ "assembly": "@rocketleap/rocketleap-projen",
3685
+ "base": "projen.awscdk.AwsCdkTypeScriptApp",
3686
+ "docs": {
3687
+ "remarks": "This is for customer-specific workload code that runs on the platform.\nDoes NOT include the platform license.",
3688
+ "stability": "stable",
3689
+ "summary": "Projen project for customer workload CDK projects."
3690
+ },
3691
+ "fqn": "@rocketleap/rocketleap-projen.RocketleapWorkloadCdkProject",
3692
+ "initializer": {
3693
+ "docs": {
3694
+ "stability": "stable"
3695
+ },
3696
+ "locationInModule": {
3697
+ "filename": "src/cdk-project.ts",
3698
+ "line": 158
3699
+ },
3700
+ "parameters": [
3701
+ {
3702
+ "name": "options",
3703
+ "type": {
3704
+ "fqn": "@rocketleap/rocketleap-projen.RocketleapCdkProjectOptions"
3705
+ }
3706
+ }
3707
+ ]
3708
+ },
3709
+ "kind": "class",
3710
+ "locationInModule": {
3711
+ "filename": "src/cdk-project.ts",
3712
+ "line": 157
3713
+ },
3714
+ "methods": [
3715
+ {
3716
+ "docs": {
3717
+ "stability": "stable"
3718
+ },
3719
+ "locationInModule": {
3720
+ "filename": "src/cdk-project.ts",
3721
+ "line": 89
3722
+ },
3723
+ "name": "generateSampleProjenrc",
3724
+ "parameters": [
3725
+ {
3726
+ "name": "projectClass",
3727
+ "type": {
3728
+ "primitive": "string"
3729
+ }
3730
+ }
3731
+ ],
3732
+ "protected": true
3733
+ }
3734
+ ],
3735
+ "name": "RocketleapWorkloadCdkProject",
3736
+ "properties": [
3737
+ {
3738
+ "docs": {
3739
+ "stability": "stable"
3740
+ },
3741
+ "immutable": true,
3742
+ "locationInModule": {
3743
+ "filename": "src/cdk-project.ts",
3744
+ "line": 24
3745
+ },
3746
+ "name": "company",
3747
+ "protected": true,
3748
+ "type": {
3749
+ "primitive": "string"
3750
+ }
3751
+ },
3752
+ {
3753
+ "docs": {
3754
+ "stability": "stable"
3755
+ },
3756
+ "immutable": true,
3757
+ "locationInModule": {
3758
+ "filename": "src/cdk-project.ts",
3759
+ "line": 25
3760
+ },
3761
+ "name": "projectName",
3762
+ "protected": true,
3763
+ "type": {
3764
+ "primitive": "string"
3765
+ }
3766
+ }
3767
+ ],
3768
+ "symbolId": "src/cdk-project:RocketleapWorkloadCdkProject"
3629
3769
  }
3630
3770
  },
3631
- "version": "0.0.11",
3632
- "fingerprint": "Pzp9/fvnACh2szDiiSDcpzYQI3yB0eiGkia7mDEP5Uc="
3771
+ "version": "0.0.12",
3772
+ "fingerprint": "PWSKReixtxbTLOCLy6M6ES/RU4Pv+0nTJ3N9csD1AQI="
3633
3773
  }
@@ -1,28 +1,7 @@
1
1
  repos:
2
2
  - repo: local
3
3
  hooks:
4
- - id: yarn-eslint
5
- name: ESLint
6
- entry: sh -c "CI=true yarn eslint --max-warnings=0 ."
4
+ - id: release
5
+ name: Release
6
+ entry: sh -c "npx projen release"
7
7
  language: system
8
- pass_filenames: false
9
- - id: yarn-prettier
10
- name: Prettier
11
- entry: sh -c "CI=true yarn prettier --check ."
12
- language: system
13
- pass_filenames: false
14
- - id: yarn-compile
15
- name: Compile
16
- entry: sh -c "CI=true yarn compile"
17
- language: system
18
- pass_filenames: false
19
- - id: yarn-test
20
- name: Test
21
- entry: sh -c "CI=true yarn test"
22
- language: system
23
- pass_filenames: false
24
- - id: yarn-package
25
- name: Package
26
- entry: sh -c "CI=true yarn package"
27
- language: system
28
- pass_filenames: false