cdklabs-projen-project-types 0.0.2
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/.gitattributes +22 -0
- package/.jsii +421 -0
- package/API.md +14712 -0
- package/LICENSE +202 -0
- package/README.md +1 -0
- package/lib/cdk.d.ts +40 -0
- package/lib/cdk.js +68 -0
- package/lib/cdklabs.d.ts +45 -0
- package/lib/cdklabs.js +101 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +15 -0
- package/lib/private.d.ts +13 -0
- package/lib/private.js +25 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +143 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +59 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +40 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +92 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +80 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +110 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +194 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +45 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +200 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +134 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +17 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +332 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +72 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +54 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +85 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +169 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +14 -0
- package/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js +164 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +94 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +48 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +23 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +97 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +104 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +701 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +950 -0
- package/node_modules/yaml/browser/dist/public-api.js +99 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +38 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +42 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +33 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +83 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +66 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +73 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +77 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +92 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +135 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +124 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +151 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +319 -0
- package/node_modules/yaml/browser/dist/util.js +9 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +61 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +42 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +27 -0
- package/node_modules/yaml/dist/compose/compose-node.js +95 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +82 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +62 -0
- package/node_modules/yaml/dist/compose/composer.js +221 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +112 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +196 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +47 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +202 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +22 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +136 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +29 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +19 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +139 -0
- package/node_modules/yaml/dist/doc/Document.js +334 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +77 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +56 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +87 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +171 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +21 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +17 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +28 -0
- package/node_modules/yaml/dist/nodes/Alias.js +96 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +59 -0
- package/node_modules/yaml/dist/nodes/Node.js +66 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +21 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +42 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +26 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +119 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +58 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +99 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +106 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +30 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +338 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +106 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +703 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +954 -0
- package/node_modules/yaml/dist/public-api.d.ts +43 -0
- package/node_modules/yaml/dist/public-api.js +104 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +18 -0
- package/node_modules/yaml/dist/schema/Schema.js +40 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +44 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +35 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +40 -0
- package/node_modules/yaml/dist/schema/tags.js +86 -0
- package/node_modules/yaml/dist/schema/types.d.ts +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +25 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +81 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +26 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +95 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +140 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +127 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +321 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +9 -0
- package/node_modules/yaml/dist/util.js +24 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +94 -0
- package/node_modules/yaml/util.d.ts +3 -0
- package/node_modules/yaml/util.js +2 -0
- package/package.json +126 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# replace this
|
package/lib/cdk.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { awscdk, typescript } from 'projen';
|
|
2
|
+
export interface CdkConstructLibraryOptions extends awscdk.AwsCdkConstructLibraryOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Whether or not this package is private. Setting this variable
|
|
5
|
+
* to true means that your project is created with sane defaults
|
|
6
|
+
* for private repositories.
|
|
7
|
+
*
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
readonly private?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a Cdk Construct Library Project
|
|
14
|
+
*
|
|
15
|
+
* @pjid cdk-construct-lib
|
|
16
|
+
*/
|
|
17
|
+
export declare class CdkConstructLibrary extends awscdk.AwsCdkConstructLibrary {
|
|
18
|
+
private static stabilityRequirements;
|
|
19
|
+
readonly private: boolean;
|
|
20
|
+
constructor(options: CdkConstructLibraryOptions);
|
|
21
|
+
}
|
|
22
|
+
export interface CdkTypeScriptProjectOptions extends typescript.TypeScriptProjectOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Whether or not this module is private. Setting this variable
|
|
25
|
+
* to true means that your project is created with sane defaults
|
|
26
|
+
* for private repositories.
|
|
27
|
+
*
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
readonly private?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a Cdk TypeScript Project
|
|
34
|
+
*
|
|
35
|
+
* @pjid cdk-ts-proj
|
|
36
|
+
*/
|
|
37
|
+
export declare class CdkTypeScriptProject extends typescript.TypeScriptProject {
|
|
38
|
+
readonly private: boolean;
|
|
39
|
+
constructor(options: CdkTypeScriptProjectOptions);
|
|
40
|
+
}
|
package/lib/cdk.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CdkTypeScriptProject = exports.CdkConstructLibrary = void 0;
|
|
5
|
+
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
6
|
+
const projen_1 = require("projen");
|
|
7
|
+
const cdk_1 = require("projen/lib/cdk");
|
|
8
|
+
const private_1 = require("./private");
|
|
9
|
+
/**
|
|
10
|
+
* Create a Cdk Construct Library Project
|
|
11
|
+
*
|
|
12
|
+
* @pjid cdk-construct-lib
|
|
13
|
+
*/
|
|
14
|
+
class CdkConstructLibrary extends projen_1.awscdk.AwsCdkConstructLibrary {
|
|
15
|
+
constructor(options) {
|
|
16
|
+
if (options.stability === cdk_1.Stability.STABLE) {
|
|
17
|
+
const errors = CdkConstructLibrary.stabilityRequirements(options);
|
|
18
|
+
if (errors.length > 0) {
|
|
19
|
+
throw new Error(`The project does not pass stability requirements due to the following errors:\n ${errors.join('\n ')}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
super({
|
|
23
|
+
stability: cdk_1.Stability.EXPERIMENTAL,
|
|
24
|
+
...options,
|
|
25
|
+
});
|
|
26
|
+
this.private = options.private ?? true;
|
|
27
|
+
if (this.private) {
|
|
28
|
+
new private_1.Private(this);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
static stabilityRequirements(options) {
|
|
32
|
+
const errors = [];
|
|
33
|
+
if (!options.publishToPypi) {
|
|
34
|
+
errors.push('Publishing Error: project not configured to publish to Python');
|
|
35
|
+
}
|
|
36
|
+
if (!options.publishToMaven) {
|
|
37
|
+
errors.push('Publishing Error: project not configured to publish to Maven');
|
|
38
|
+
}
|
|
39
|
+
if (!options.publishToNuget) {
|
|
40
|
+
errors.push('Publishing Error: project not configured to publish to Nuget');
|
|
41
|
+
}
|
|
42
|
+
if (!options.publishToGo) {
|
|
43
|
+
errors.push('Publishing Error: project not configured to publish to Go');
|
|
44
|
+
}
|
|
45
|
+
return errors;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.CdkConstructLibrary = CdkConstructLibrary;
|
|
49
|
+
_a = JSII_RTTI_SYMBOL_1;
|
|
50
|
+
CdkConstructLibrary[_a] = { fqn: "cdklabs-projen-project-types.CdkConstructLibrary", version: "0.0.2" };
|
|
51
|
+
/**
|
|
52
|
+
* Create a Cdk TypeScript Project
|
|
53
|
+
*
|
|
54
|
+
* @pjid cdk-ts-proj
|
|
55
|
+
*/
|
|
56
|
+
class CdkTypeScriptProject extends projen_1.typescript.TypeScriptProject {
|
|
57
|
+
constructor(options) {
|
|
58
|
+
super(options);
|
|
59
|
+
this.private = options.private ?? true;
|
|
60
|
+
if (this.private) {
|
|
61
|
+
new private_1.Private(this);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.CdkTypeScriptProject = CdkTypeScriptProject;
|
|
66
|
+
_b = JSII_RTTI_SYMBOL_1;
|
|
67
|
+
CdkTypeScriptProject[_b] = { fqn: "cdklabs-projen-project-types.CdkTypeScriptProject", version: "0.0.2" };
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2RrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Nkay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLG1DQUE0QztBQUM1Qyx3Q0FBMkM7QUFDM0MsdUNBQW9DO0FBYXBDOzs7O0dBSUc7QUFDSCxNQUFhLG1CQUFvQixTQUFRLGVBQU0sQ0FBQyxzQkFBc0I7SUFvQnBFLFlBQVksT0FBbUM7UUFDN0MsSUFBSSxPQUFPLENBQUMsU0FBUyxLQUFLLGVBQVMsQ0FBQyxNQUFNLEVBQUU7WUFDMUMsTUFBTSxNQUFNLEdBQUcsbUJBQW1CLENBQUMscUJBQXFCLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDbEUsSUFBSSxNQUFNLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRTtnQkFDckIsTUFBTSxJQUFJLEtBQUssQ0FBQyxvRkFBb0YsTUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUM7YUFDNUg7U0FDRjtRQUVELEtBQUssQ0FBQztZQUNKLFNBQVMsRUFBRSxlQUFTLENBQ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aXB0UHJvamVjdCBleHRlbmRzIHR5cGVzY3JpcHQuVHlwZVNjcmlwdFByb2plY3Qge1xuICBwdWJsaWMgcmVhZG9ubHkgcHJpdmF0ZTogYm9vbGVhbjtcblxuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBDZGtUeXBlU2NyaXB0UHJvamVjdE9wdGlvbnMpIHtcbiAgICBzdXBlcihvcHRpb25zKTtcbiAgICB0aGlzLnByaXZhdGUgPSBvcHRpb25zLnByaXZhdGUgPz8gdHJ1ZTtcbiAgICBpZiAodGhpcy5wcml2YXRlKSB7XG4gICAgICBuZXcgUHJpdmF0ZSh0aGlzKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
package/lib/cdklabs.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CdkConstructLibrary, CdkConstructLibraryOptions, CdkTypeScriptProject, CdkTypeScriptProjectOptions } from './cdk';
|
|
2
|
+
export interface CdklabsConstructLibraryOptions extends CdkConstructLibraryOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Set default publishing properties. Setting this property guarantees
|
|
5
|
+
* that your project will have reasonable publishing names. You can choose
|
|
6
|
+
* to modify them however you wish with the traditional `publishToPypi`,
|
|
7
|
+
* `publishToMaven`, `publishToNuget`, and `publishToGo` properties, and
|
|
8
|
+
* your configuration will be respected.
|
|
9
|
+
*
|
|
10
|
+
* This should be set to false only if you do not plan on releasing the package.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
readonly cdklabsPublishingDefaults?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a Cdklabs Construct Library Project
|
|
18
|
+
*
|
|
19
|
+
* @pjid cdklabs-construct-lib
|
|
20
|
+
*/
|
|
21
|
+
export declare class CdklabsConstructLibrary extends CdkConstructLibrary {
|
|
22
|
+
constructor(options: CdklabsConstructLibraryOptions);
|
|
23
|
+
}
|
|
24
|
+
export interface CdklabsTypeScriptProjectOptions extends CdkTypeScriptProjectOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Set default publishing properties. Setting this property guarantees
|
|
27
|
+
* that your project will have reasonable publishing names. You can choose
|
|
28
|
+
* to modify them however you wish with the traditional `publishToPypi`,
|
|
29
|
+
* `publishToMaven`, `publishToNuget`, and `publishToGo` properties, and
|
|
30
|
+
* your configuration will be respected.
|
|
31
|
+
*
|
|
32
|
+
* This should be set to false only if you do not plan on releasing the package.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
readonly cdklabsPublishingDefaults?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a Cdklabs TypeScript Project
|
|
40
|
+
*
|
|
41
|
+
* @pjid cdklabs-ts-proj
|
|
42
|
+
*/
|
|
43
|
+
export declare class CdklabsTypeScriptProject extends CdkTypeScriptProject {
|
|
44
|
+
constructor(options: CdklabsTypeScriptProjectOptions);
|
|
45
|
+
}
|
package/lib/cdklabs.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CdklabsTypeScriptProject = exports.CdklabsConstructLibrary = void 0;
|
|
5
|
+
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
6
|
+
const javascript_1 = require("projen/lib/javascript");
|
|
7
|
+
const util_1 = require("projen/lib/util");
|
|
8
|
+
const cdk_1 = require("./cdk");
|
|
9
|
+
// override these properties no matter what values are given client-side
|
|
10
|
+
const cdklabsForcedProps = {
|
|
11
|
+
author: 'Amazon Web Services',
|
|
12
|
+
authorName: 'Amazon Web Services',
|
|
13
|
+
authorAddress: 'aws-cdk-dev@amazon.com',
|
|
14
|
+
authorEmail: 'aws-cdk-dev@amazon.com',
|
|
15
|
+
authorOrganization: true,
|
|
16
|
+
};
|
|
17
|
+
const cdklabsDefaultProps = {
|
|
18
|
+
autoApproveUpgrades: true,
|
|
19
|
+
autoApproveOptions: {
|
|
20
|
+
allowedUsernames: ['cdklabs-automation'],
|
|
21
|
+
secret: 'GITHUB_TOKEN',
|
|
22
|
+
},
|
|
23
|
+
minNodeVersion: '14.17.0',
|
|
24
|
+
jestOptions: {
|
|
25
|
+
updateSnapshot: javascript_1.UpdateSnapshot.NEVER,
|
|
26
|
+
},
|
|
27
|
+
defaultReleaseBranch: 'main',
|
|
28
|
+
};
|
|
29
|
+
function createCdklabsPublishingDefaults(npmPackageName) {
|
|
30
|
+
return {
|
|
31
|
+
publishToPypi: {
|
|
32
|
+
distName: npmPackageName,
|
|
33
|
+
module: changeDelimiter(npmPackageName, '_'),
|
|
34
|
+
},
|
|
35
|
+
publishToMaven: {
|
|
36
|
+
javaPackage: `io.github.cdklabs.${changeDelimiter(npmPackageName, '.')}`,
|
|
37
|
+
mavenGroupId: 'io.github.cdklabs',
|
|
38
|
+
mavenArtifactId: npmPackageName,
|
|
39
|
+
mavenEndpoint: 'https://s01.oss.sonatype.org',
|
|
40
|
+
},
|
|
41
|
+
publishToNuget: {
|
|
42
|
+
dotNetNamespace: `Cdklabs${upperCaseName(npmPackageName)}`,
|
|
43
|
+
packageId: `Cdklabs${upperCaseName(npmPackageName)}`,
|
|
44
|
+
},
|
|
45
|
+
publishToGo: {
|
|
46
|
+
moduleName: `${npmPackageName}-go`,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
function upperCaseName(str) {
|
|
50
|
+
let words = str.split('-');
|
|
51
|
+
words = words.map((w) => w[0].toUpperCase() + w.substring(1));
|
|
52
|
+
return words.join('');
|
|
53
|
+
}
|
|
54
|
+
function changeDelimiter(str, delim) {
|
|
55
|
+
return str.split('-').join(delim);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
;
|
|
59
|
+
/**
|
|
60
|
+
* Create a Cdklabs Construct Library Project
|
|
61
|
+
*
|
|
62
|
+
* @pjid cdklabs-construct-lib
|
|
63
|
+
*/
|
|
64
|
+
class CdklabsConstructLibrary extends cdk_1.CdkConstructLibrary {
|
|
65
|
+
constructor(options) {
|
|
66
|
+
const cdklabsPublishingDefaultProps = (options.cdklabsPublishingDefaults ?? true) ?
|
|
67
|
+
createCdklabsPublishingDefaults(options.name) : {};
|
|
68
|
+
const mergedOptions = util_1.deepMerge([
|
|
69
|
+
cdklabsDefaultProps,
|
|
70
|
+
cdklabsPublishingDefaultProps,
|
|
71
|
+
options,
|
|
72
|
+
cdklabsForcedProps,
|
|
73
|
+
]);
|
|
74
|
+
super(mergedOptions);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.CdklabsConstructLibrary = CdklabsConstructLibrary;
|
|
78
|
+
_a = JSII_RTTI_SYMBOL_1;
|
|
79
|
+
CdklabsConstructLibrary[_a] = { fqn: "cdklabs-projen-project-types.CdklabsConstructLibrary", version: "0.0.2" };
|
|
80
|
+
/**
|
|
81
|
+
* Create a Cdklabs TypeScript Project
|
|
82
|
+
*
|
|
83
|
+
* @pjid cdklabs-ts-proj
|
|
84
|
+
*/
|
|
85
|
+
class CdklabsTypeScriptProject extends cdk_1.CdkTypeScriptProject {
|
|
86
|
+
constructor(options) {
|
|
87
|
+
const cdklabsPublishingDefaultProps = (options.cdklabsPublishingDefaults ?? true) ?
|
|
88
|
+
createCdklabsPublishingDefaults(options.name) : {};
|
|
89
|
+
const mergedOptions = util_1.deepMerge([
|
|
90
|
+
cdklabsDefaultProps,
|
|
91
|
+
cdklabsPublishingDefaultProps,
|
|
92
|
+
options,
|
|
93
|
+
cdklabsForcedProps,
|
|
94
|
+
]);
|
|
95
|
+
super(mergedOptions);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.CdklabsTypeScriptProject = CdklabsTypeScriptProject;
|
|
99
|
+
_b = JSII_RTTI_SYMBOL_1;
|
|
100
|
+
CdklabsTypeScriptProject[_b] = { fqn: "cdklabs-projen-project-types.CdklabsTypeScriptProject", version: "0.0.2" };
|
|
101
|
+
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|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./cdk"), exports);
|
|
14
|
+
__exportStar(require("./cdklabs"), exports);
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLDRDQUEwQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2RrJztcbmV4cG9ydCAqIGZyb20gJy4vY2RrbGFicyc7Il19
|
package/lib/private.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from 'projen';
|
|
2
|
+
import { TypeScriptProject } from 'projen/lib/typescript';
|
|
3
|
+
/**
|
|
4
|
+
* The Private component is a one-stop shop for all things
|
|
5
|
+
* related to configuring a private repository. Instead of
|
|
6
|
+
* ensuring that the project options are configured in a
|
|
7
|
+
* "private" way, this component ensures that the output
|
|
8
|
+
* enforces all our rules for private repositories regardless
|
|
9
|
+
* of input.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Private extends Component {
|
|
12
|
+
constructor(project: TypeScriptProject);
|
|
13
|
+
}
|
package/lib/private.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Private = void 0;
|
|
4
|
+
const projen_1 = require("projen");
|
|
5
|
+
/**
|
|
6
|
+
* The Private component is a one-stop shop for all things
|
|
7
|
+
* related to configuring a private repository. Instead of
|
|
8
|
+
* ensuring that the project options are configured in a
|
|
9
|
+
* "private" way, this component ensures that the output
|
|
10
|
+
* enforces all our rules for private repositories regardless
|
|
11
|
+
* of input.
|
|
12
|
+
*/
|
|
13
|
+
class Private extends projen_1.Component {
|
|
14
|
+
constructor(project) {
|
|
15
|
+
super(project);
|
|
16
|
+
// mark private: true in package.json
|
|
17
|
+
project.addFields({ private: true });
|
|
18
|
+
// private repositories cannot have mergify configured.
|
|
19
|
+
project.tryRemoveFile('.mergify.yml');
|
|
20
|
+
// no need for npmignore file
|
|
21
|
+
project.tryRemoveFile('.npmignore');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Private = Private;
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wcml2YXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1DQUFtQztBQUduQzs7Ozs7OztHQU9HO0FBQ0gsTUFBYSxPQUFRLFNBQVEsa0JBQVM7SUFDcEMsWUFBWSxPQUEwQjtRQUNwQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFZixxQ0FBcUM7UUFDckMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDO1FBRXJDLHVEQUF1RDtRQUN2RCxPQUFPLENBQUMsYUFBYSxDQ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QuXG4gICAgcHJvamVjdC50cnlSZW1vdmVGaWxlKCcubWVyZ2lmeS55bWwnKTtcblxuICAgIC8vIG5vIG5lZWQgZm9yIG5wbWlnbm9yZSBmaWxlXG4gICAgcHJvamVjdC50cnlSZW1vdmVGaWxlKCcubnBtaWdub3JlJyk7XG4gIH1cbn0iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright Eemeli Aro <eemeli@gmail.com>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
4
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
5
|
+
and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
11
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
12
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
13
|
+
THIS SOFTWARE.
|