@skeptools/skep-organization-project 0.0.15 → 0.0.16
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 +113 -3
- package/API.md +74 -43
- package/lib/skep-organization-project.js +1 -1
- package/node_modules/liquidjs/README.md +17 -10
- package/node_modules/liquidjs/dist/context/context.d.ts +7 -1
- package/node_modules/liquidjs/dist/drop/drop.d.ts +1 -1
- package/node_modules/liquidjs/dist/filters/array.d.ts +14 -14
- package/node_modules/liquidjs/dist/filters/html.d.ts +6 -5
- package/node_modules/liquidjs/dist/filters/math.d.ts +9 -9
- package/node_modules/liquidjs/dist/filters/string.d.ts +22 -21
- package/node_modules/liquidjs/dist/fs/map-fs.d.ts +13 -0
- package/node_modules/liquidjs/dist/fs/node-require.d.ts +1 -2
- package/node_modules/liquidjs/dist/index.d.ts +1 -1
- package/node_modules/liquidjs/dist/liquid-options.d.ts +28 -2
- package/node_modules/liquidjs/dist/liquid.browser.min.js +1 -1
- package/node_modules/liquidjs/dist/liquid.browser.min.js.map +1 -1
- package/node_modules/liquidjs/dist/{liquid.browser.esm.js → liquid.browser.mjs} +443 -227
- package/node_modules/liquidjs/dist/liquid.browser.umd.js +604 -368
- package/node_modules/liquidjs/dist/liquid.browser.umd.js.map +1 -1
- package/node_modules/liquidjs/dist/liquid.d.ts +3 -0
- package/node_modules/liquidjs/dist/{liquid.node.cjs.js → liquid.node.js} +432 -227
- package/node_modules/liquidjs/dist/{liquid.node.esm.js → liquid.node.mjs} +448 -228
- package/node_modules/liquidjs/dist/parser/parser.d.ts +1 -0
- package/node_modules/liquidjs/dist/parser/parser.spec.d.ts +1 -0
- package/node_modules/liquidjs/dist/parser/tokenizer.d.ts +4 -3
- package/node_modules/liquidjs/dist/tags/block.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/capture.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/case.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/for.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/if.d.ts +3 -2
- package/node_modules/liquidjs/dist/tags/include.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/layout.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/liquid.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/render.d.ts +3 -2
- package/node_modules/liquidjs/dist/tags/tablerow.d.ts +2 -1
- package/node_modules/liquidjs/dist/tags/unless.d.ts +2 -1
- package/node_modules/liquidjs/dist/template/filter-impl-options.d.ts +2 -0
- package/node_modules/liquidjs/dist/template/filter.d.ts +3 -1
- package/node_modules/liquidjs/dist/template/hash.d.ts +1 -1
- package/node_modules/liquidjs/dist/template/tag.d.ts +2 -2
- package/node_modules/liquidjs/dist/tokens/identifier-token.d.ts +0 -1
- package/node_modules/liquidjs/dist/util/assert.d.ts +1 -0
- package/node_modules/liquidjs/dist/util/error.d.ts +7 -2
- package/node_modules/liquidjs/dist/util/error.spec.d.ts +1 -0
- package/node_modules/liquidjs/dist/util/index.d.ts +2 -1
- package/node_modules/liquidjs/dist/util/intl.d.ts +6 -0
- package/node_modules/liquidjs/dist/util/limiter.d.ts +8 -0
- package/node_modules/liquidjs/dist/util/liquid-date.d.ts +39 -7
- package/node_modules/liquidjs/dist/util/liquid-date.spec.d.ts +1 -0
- package/node_modules/liquidjs/dist/util/performance.d.ts +5 -0
- package/node_modules/liquidjs/dist/util/performance.spec.d.ts +1 -0
- package/node_modules/liquidjs/dist/util/type-guards.spec.d.ts +1 -0
- package/node_modules/liquidjs/dist/util/underscore.d.ts +2 -1
- package/node_modules/liquidjs/package.json +10 -7
- package/package.json +16 -12
- package/node_modules/liquidjs/dist/util/timezone-date.d.ts +0 -44
- /package/node_modules/liquidjs/dist/{util/timezone-date.spec.d.ts → fs/map-fs.spec.d.ts} +0 -0
package/API.md
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
# skep-organization-project
|
|
2
|
-
|
|
3
|
-
## Usage
|
|
4
|
-
```
|
|
5
|
-
nvm use 14
|
|
6
|
-
npx projen new \
|
|
7
|
-
--from @skeptools/skep-organization-project \
|
|
8
|
-
--organization-name "Foo Company" \
|
|
9
|
-
--projenrc-ts
|
|
10
|
-
```
|
|
11
|
-
|
|
12
1
|
# API Reference <a name="API Reference" id="api-reference"></a>
|
|
13
2
|
|
|
14
3
|
## Constructs <a name="Constructs" id="Constructs"></a>
|
|
@@ -84,7 +73,7 @@ Returns a string representation of this construct.
|
|
|
84
73
|
##### `addExcludeFromCleanup` <a name="addExcludeFromCleanup" id="@skeptools/skep-organization-project.SkepOrganizationProject.addExcludeFromCleanup"></a>
|
|
85
74
|
|
|
86
75
|
```typescript
|
|
87
|
-
public addExcludeFromCleanup(globs: string): void
|
|
76
|
+
public addExcludeFromCleanup(globs: ...string[]): void
|
|
88
77
|
```
|
|
89
78
|
|
|
90
79
|
Exclude the matching files from pre-synth cleanup.
|
|
@@ -94,7 +83,7 @@ source files include the projen marker and we don't want them to be erased durin
|
|
|
94
83
|
|
|
95
84
|
###### `globs`<sup>Required</sup> <a name="globs" id="@skeptools/skep-organization-project.SkepOrganizationProject.addExcludeFromCleanup.parameter.globs"></a>
|
|
96
85
|
|
|
97
|
-
- *Type:* string
|
|
86
|
+
- *Type:* ...string[]
|
|
98
87
|
|
|
99
88
|
The glob patterns to match.
|
|
100
89
|
|
|
@@ -350,7 +339,7 @@ public addBins(bins: {[ key: string ]: string}): void
|
|
|
350
339
|
##### `addBundledDeps` <a name="addBundledDeps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addBundledDeps"></a>
|
|
351
340
|
|
|
352
341
|
```typescript
|
|
353
|
-
public addBundledDeps(deps: string): void
|
|
342
|
+
public addBundledDeps(deps: ...string[]): void
|
|
354
343
|
```
|
|
355
344
|
|
|
356
345
|
Defines bundled dependencies.
|
|
@@ -360,7 +349,7 @@ Bundled dependencies will be added as normal dependencies as well as to the
|
|
|
360
349
|
|
|
361
350
|
###### `deps`<sup>Required</sup> <a name="deps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addBundledDeps.parameter.deps"></a>
|
|
362
351
|
|
|
363
|
-
- *Type:* string
|
|
352
|
+
- *Type:* ...string[]
|
|
364
353
|
|
|
365
354
|
Names modules to install.
|
|
366
355
|
|
|
@@ -375,28 +364,28 @@ add/upgrade`. If you wish to specify a version range use this syntax:
|
|
|
375
364
|
##### ~~`addCompileCommand`~~ <a name="addCompileCommand" id="@skeptools/skep-organization-project.SkepOrganizationProject.addCompileCommand"></a>
|
|
376
365
|
|
|
377
366
|
```typescript
|
|
378
|
-
public addCompileCommand(commands: string): void
|
|
367
|
+
public addCompileCommand(commands: ...string[]): void
|
|
379
368
|
```
|
|
380
369
|
|
|
381
370
|
DEPRECATED.
|
|
382
371
|
|
|
383
372
|
###### `commands`<sup>Required</sup> <a name="commands" id="@skeptools/skep-organization-project.SkepOrganizationProject.addCompileCommand.parameter.commands"></a>
|
|
384
373
|
|
|
385
|
-
- *Type:* string
|
|
374
|
+
- *Type:* ...string[]
|
|
386
375
|
|
|
387
376
|
---
|
|
388
377
|
|
|
389
378
|
##### `addDeps` <a name="addDeps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addDeps"></a>
|
|
390
379
|
|
|
391
380
|
```typescript
|
|
392
|
-
public addDeps(deps: string): void
|
|
381
|
+
public addDeps(deps: ...string[]): void
|
|
393
382
|
```
|
|
394
383
|
|
|
395
384
|
Defines normal dependencies.
|
|
396
385
|
|
|
397
386
|
###### `deps`<sup>Required</sup> <a name="deps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addDeps.parameter.deps"></a>
|
|
398
387
|
|
|
399
|
-
- *Type:* string
|
|
388
|
+
- *Type:* ...string[]
|
|
400
389
|
|
|
401
390
|
Names modules to install.
|
|
402
391
|
|
|
@@ -411,14 +400,14 @@ add/upgrade`. If you wish to specify a version range use this syntax:
|
|
|
411
400
|
##### `addDevDeps` <a name="addDevDeps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addDevDeps"></a>
|
|
412
401
|
|
|
413
402
|
```typescript
|
|
414
|
-
public addDevDeps(deps: string): void
|
|
403
|
+
public addDevDeps(deps: ...string[]): void
|
|
415
404
|
```
|
|
416
405
|
|
|
417
406
|
Defines development/test dependencies.
|
|
418
407
|
|
|
419
408
|
###### `deps`<sup>Required</sup> <a name="deps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addDevDeps.parameter.deps"></a>
|
|
420
409
|
|
|
421
|
-
- *Type:* string
|
|
410
|
+
- *Type:* ...string[]
|
|
422
411
|
|
|
423
412
|
Names modules to install.
|
|
424
413
|
|
|
@@ -449,14 +438,14 @@ The fields to set.
|
|
|
449
438
|
##### `addKeywords` <a name="addKeywords" id="@skeptools/skep-organization-project.SkepOrganizationProject.addKeywords"></a>
|
|
450
439
|
|
|
451
440
|
```typescript
|
|
452
|
-
public addKeywords(keywords: string): void
|
|
441
|
+
public addKeywords(keywords: ...string[]): void
|
|
453
442
|
```
|
|
454
443
|
|
|
455
444
|
Adds keywords to package.json (deduplicated).
|
|
456
445
|
|
|
457
446
|
###### `keywords`<sup>Required</sup> <a name="keywords" id="@skeptools/skep-organization-project.SkepOrganizationProject.addKeywords.parameter.keywords"></a>
|
|
458
447
|
|
|
459
|
-
- *Type:* string
|
|
448
|
+
- *Type:* ...string[]
|
|
460
449
|
|
|
461
450
|
The keywords to add.
|
|
462
451
|
|
|
@@ -465,7 +454,7 @@ The keywords to add.
|
|
|
465
454
|
##### `addPeerDeps` <a name="addPeerDeps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addPeerDeps"></a>
|
|
466
455
|
|
|
467
456
|
```typescript
|
|
468
|
-
public addPeerDeps(deps: string): void
|
|
457
|
+
public addPeerDeps(deps: ...string[]): void
|
|
469
458
|
```
|
|
470
459
|
|
|
471
460
|
Defines peer dependencies.
|
|
@@ -476,7 +465,7 @@ your code against the minimum version required from your consumers.
|
|
|
476
465
|
|
|
477
466
|
###### `deps`<sup>Required</sup> <a name="deps" id="@skeptools/skep-organization-project.SkepOrganizationProject.addPeerDeps.parameter.deps"></a>
|
|
478
467
|
|
|
479
|
-
- *Type:* string
|
|
468
|
+
- *Type:* ...string[]
|
|
480
469
|
|
|
481
470
|
Names modules to install.
|
|
482
471
|
|
|
@@ -507,14 +496,14 @@ The scripts to set.
|
|
|
507
496
|
##### ~~`addTestCommand`~~ <a name="addTestCommand" id="@skeptools/skep-organization-project.SkepOrganizationProject.addTestCommand"></a>
|
|
508
497
|
|
|
509
498
|
```typescript
|
|
510
|
-
public addTestCommand(commands: string): void
|
|
499
|
+
public addTestCommand(commands: ...string[]): void
|
|
511
500
|
```
|
|
512
501
|
|
|
513
502
|
DEPRECATED.
|
|
514
503
|
|
|
515
504
|
###### `commands`<sup>Required</sup> <a name="commands" id="@skeptools/skep-organization-project.SkepOrganizationProject.addTestCommand.parameter.commands"></a>
|
|
516
505
|
|
|
517
|
-
- *Type:* string
|
|
506
|
+
- *Type:* ...string[]
|
|
518
507
|
|
|
519
508
|
---
|
|
520
509
|
|
|
@@ -593,7 +582,7 @@ The command to execute.
|
|
|
593
582
|
##### `addEmbeddedPackage` <a name="addEmbeddedPackage" id="@skeptools/skep-organization-project.SkepOrganizationProject.addEmbeddedPackage"></a>
|
|
594
583
|
|
|
595
584
|
```typescript
|
|
596
|
-
public addEmbeddedPackage(name: string, config: EmbeddedPackage, majorVersion: number, namespaceOpt?: string): void
|
|
585
|
+
public addEmbeddedPackage(name: string, config: EmbeddedPackage, majorVersion: number, rootDir?: string, namespaceOpt?: string): void
|
|
597
586
|
```
|
|
598
587
|
|
|
599
588
|
###### `name`<sup>Required</sup> <a name="name" id="@skeptools/skep-organization-project.SkepOrganizationProject.addEmbeddedPackage.parameter.name"></a>
|
|
@@ -614,6 +603,12 @@ public addEmbeddedPackage(name: string, config: EmbeddedPackage, majorVersion: n
|
|
|
614
603
|
|
|
615
604
|
---
|
|
616
605
|
|
|
606
|
+
###### `rootDir`<sup>Optional</sup> <a name="rootDir" id="@skeptools/skep-organization-project.SkepOrganizationProject.addEmbeddedPackage.parameter.rootDir"></a>
|
|
607
|
+
|
|
608
|
+
- *Type:* string
|
|
609
|
+
|
|
610
|
+
---
|
|
611
|
+
|
|
617
612
|
###### `namespaceOpt`<sup>Optional</sup> <a name="namespaceOpt" id="@skeptools/skep-organization-project.SkepOrganizationProject.addEmbeddedPackage.parameter.namespaceOpt"></a>
|
|
618
613
|
|
|
619
614
|
- *Type:* string
|
|
@@ -745,8 +740,8 @@ When given a project, this it the project itself.
|
|
|
745
740
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.buildWorkflow">buildWorkflow</a></code> | <code>projen.build.BuildWorkflow</code> | The PR build GitHub workflow. |
|
|
746
741
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.buildWorkflowJobId">buildWorkflowJobId</a></code> | <code>string</code> | The job ID of the build workflow. |
|
|
747
742
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.jest">jest</a></code> | <code>projen.javascript.Jest</code> | The Jest configuration (if enabled). |
|
|
748
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.maxNodeVersion">maxNodeVersion</a></code> | <code>string</code> | Maximum node version
|
|
749
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.minNodeVersion">minNodeVersion</a></code> | <code>string</code> |
|
|
743
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.maxNodeVersion">maxNodeVersion</a></code> | <code>string</code> | Maximum node version supported by this package. |
|
|
744
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.minNodeVersion">minNodeVersion</a></code> | <code>string</code> | The minimum node version required by this package to function. |
|
|
750
745
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.npmignore">npmignore</a></code> | <code>projen.IgnoreFile</code> | The .npmignore file. |
|
|
751
746
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.prettier">prettier</a></code> | <code>projen.javascript.Prettier</code> | *No description.* |
|
|
752
747
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProject.property.publisher">publisher</a></code> | <code>projen.release.Publisher</code> | Package publisher. |
|
|
@@ -1322,7 +1317,9 @@ public readonly maxNodeVersion: string;
|
|
|
1322
1317
|
|
|
1323
1318
|
- *Type:* string
|
|
1324
1319
|
|
|
1325
|
-
Maximum node version
|
|
1320
|
+
Maximum node version supported by this package.
|
|
1321
|
+
|
|
1322
|
+
The value indicates the package is incompatible with newer versions.
|
|
1326
1323
|
|
|
1327
1324
|
---
|
|
1328
1325
|
|
|
@@ -1334,7 +1331,9 @@ public readonly minNodeVersion: string;
|
|
|
1334
1331
|
|
|
1335
1332
|
- *Type:* string
|
|
1336
1333
|
|
|
1337
|
-
|
|
1334
|
+
The minimum node version required by this package to function.
|
|
1335
|
+
|
|
1336
|
+
This value indicates the package is incompatible with older versions.
|
|
1338
1337
|
|
|
1339
1338
|
---
|
|
1340
1339
|
|
|
@@ -1609,8 +1608,8 @@ const skepOrganizationProjectOptions: SkepOrganizationProjectOptions = { ... }
|
|
|
1609
1608
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.keywords">keywords</a></code> | <code>string[]</code> | Keywords to include in `package.json`. |
|
|
1610
1609
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.license">license</a></code> | <code>string</code> | License's SPDX identifier. |
|
|
1611
1610
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.licensed">licensed</a></code> | <code>boolean</code> | Indicates if a license should be added. |
|
|
1612
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.maxNodeVersion">maxNodeVersion</a></code> | <code>string</code> |
|
|
1613
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.minNodeVersion">minNodeVersion</a></code> | <code>string</code> |
|
|
1611
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.maxNodeVersion">maxNodeVersion</a></code> | <code>string</code> | The maximum node version supported by this package. Most projects should not use this option. |
|
|
1612
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.minNodeVersion">minNodeVersion</a></code> | <code>string</code> | The minimum node version required by this package to function. Most projects should not use this option. |
|
|
1614
1613
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.npmAccess">npmAccess</a></code> | <code>projen.javascript.NpmAccess</code> | Access level of the npm package. |
|
|
1615
1614
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.npmProvenance">npmProvenance</a></code> | <code>boolean</code> | Should provenance statements be generated when the package is published. |
|
|
1616
1615
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.npmRegistry">npmRegistry</a></code> | <code>string</code> | The host name of the npm registry to publish to. |
|
|
@@ -1645,7 +1644,7 @@ const skepOrganizationProjectOptions: SkepOrganizationProjectOptions = { ... }
|
|
|
1645
1644
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.releaseTrigger">releaseTrigger</a></code> | <code>projen.release.ReleaseTrigger</code> | The release trigger to use. |
|
|
1646
1645
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.releaseWorkflowName">releaseWorkflowName</a></code> | <code>string</code> | The name of the default release workflow. |
|
|
1647
1646
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.releaseWorkflowSetupSteps">releaseWorkflowSetupSteps</a></code> | <code>projen.github.workflows.JobStep[]</code> | A set of workflow steps to execute in order to setup the workflow container. |
|
|
1648
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.versionrcOptions">versionrcOptions</a></code> | <code>{[ key: string ]: any}</code> | Custom configuration used when creating changelog with
|
|
1647
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.versionrcOptions">versionrcOptions</a></code> | <code>{[ key: string ]: any}</code> | Custom configuration used when creating changelog with commit-and-tag-version package. |
|
|
1649
1648
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowContainerImage">workflowContainerImage</a></code> | <code>string</code> | Container image to use for GitHub workflows. |
|
|
1650
1649
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowRunsOn">workflowRunsOn</a></code> | <code>string[]</code> | Github Runner selection labels. |
|
|
1651
1650
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowRunsOnGroup">workflowRunsOnGroup</a></code> | <code>projen.GroupRunnerOptions</code> | Github Runner Group selection options. |
|
|
@@ -1686,7 +1685,7 @@ const skepOrganizationProjectOptions: SkepOrganizationProjectOptions = { ... }
|
|
|
1686
1685
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.releaseWorkflow">releaseWorkflow</a></code> | <code>boolean</code> | DEPRECATED: renamed to `release`. |
|
|
1687
1686
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowBootstrapSteps">workflowBootstrapSteps</a></code> | <code>projen.github.workflows.JobStep[]</code> | Workflow steps to use in order to bootstrap this repo. |
|
|
1688
1687
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowGitIdentity">workflowGitIdentity</a></code> | <code>projen.github.GitIdentity</code> | The git identity to use in workflows. |
|
|
1689
|
-
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowNodeVersion">workflowNodeVersion</a></code> | <code>string</code> | The node version
|
|
1688
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowNodeVersion">workflowNodeVersion</a></code> | <code>string</code> | The node version used in GitHub Actions workflows. |
|
|
1690
1689
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.workflowPackageCache">workflowPackageCache</a></code> | <code>boolean</code> | Enable Node.js package cache in GitHub workflows. |
|
|
1691
1690
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.disableTsconfig">disableTsconfig</a></code> | <code>boolean</code> | Do not generate a `tsconfig.json` file (used by jsii projects since tsconfig.json is generated by the jsii compiler). |
|
|
1692
1691
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.disableTsconfigDev">disableTsconfigDev</a></code> | <code>boolean</code> | Do not generate a `tsconfig.dev.json` file. |
|
|
@@ -1714,6 +1713,7 @@ const skepOrganizationProjectOptions: SkepOrganizationProjectOptions = { ... }
|
|
|
1714
1713
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.nodeVersion">nodeVersion</a></code> | <code>number</code> | The Node.js version to use when building. |
|
|
1715
1714
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.npmrc">npmrc</a></code> | <code>string[]</code> | Raw lines to drop into the workflow's .npmrc file, to access private package. Empty implies no .npmrc required. |
|
|
1716
1715
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.repoAdmins">repoAdmins</a></code> | <code>{[ key: string ]: number}</code> | The GitHub Team slug (including the org_name/ prefix) or GitHub username for the teams/people who maintain infrastructure. |
|
|
1716
|
+
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.rootDir">rootDir</a></code> | <code>string</code> | Root directory where code lives. |
|
|
1717
1717
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.terraformBackend">terraformBackend</a></code> | <code>@rlmartin-projen/cdktf-project.TerraformBackend</code> | Terraform backend configuration. |
|
|
1718
1718
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.terraformManualWorkflow">terraformManualWorkflow</a></code> | <code>boolean</code> | Set this to turn on a GitHub workflow that can be used to run manual Terraform commands within the environment. |
|
|
1719
1719
|
| <code><a href="#@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.terraformModules">terraformModules</a></code> | <code>@rlmartin-projen/cdktf-project.TerraformModuleOptions[]</code> | Terraform Modules to add to cdktf.json. These are assumed to be internal to the Medly GitHub org. |
|
|
@@ -2445,9 +2445,15 @@ public readonly maxNodeVersion: string;
|
|
|
2445
2445
|
```
|
|
2446
2446
|
|
|
2447
2447
|
- *Type:* string
|
|
2448
|
-
- *Default:* no
|
|
2448
|
+
- *Default:* no maximum version is enforced
|
|
2449
|
+
|
|
2450
|
+
The maximum node version supported by this package. Most projects should not use this option.
|
|
2449
2451
|
|
|
2450
|
-
|
|
2452
|
+
The value indicates that the package is incompatible with any newer versions of node.
|
|
2453
|
+
This requirement is enforced via the engines field.
|
|
2454
|
+
|
|
2455
|
+
You will normally not need to set this option.
|
|
2456
|
+
Consider this option only if your package is known to not function with newer versions of node.
|
|
2451
2457
|
|
|
2452
2458
|
---
|
|
2453
2459
|
|
|
@@ -2458,9 +2464,19 @@ public readonly minNodeVersion: string;
|
|
|
2458
2464
|
```
|
|
2459
2465
|
|
|
2460
2466
|
- *Type:* string
|
|
2461
|
-
- *Default:* no
|
|
2467
|
+
- *Default:* no minimum version is enforced
|
|
2468
|
+
|
|
2469
|
+
The minimum node version required by this package to function. Most projects should not use this option.
|
|
2462
2470
|
|
|
2463
|
-
|
|
2471
|
+
The value indicates that the package is incompatible with any older versions of node.
|
|
2472
|
+
This requirement is enforced via the engines field.
|
|
2473
|
+
|
|
2474
|
+
You will normally not need to set this option, even if your package is incompatible with EOL versions of node.
|
|
2475
|
+
Consider this option only if your package depends on a specific feature, that is not available in other LTS versions.
|
|
2476
|
+
Setting this option has very high impact on the consumers of your package,
|
|
2477
|
+
as package managers will actively prevent usage with node versions you have marked as incompatible.
|
|
2478
|
+
|
|
2479
|
+
To change the node version of your CI/CD workflows, use `workflowNodeVersion`.
|
|
2464
2480
|
|
|
2465
2481
|
---
|
|
2466
2482
|
|
|
@@ -2977,7 +2993,7 @@ public readonly versionrcOptions: {[ key: string ]: any};
|
|
|
2977
2993
|
- *Type:* {[ key: string ]: any}
|
|
2978
2994
|
- *Default:* standard configuration applicable for GitHub repositories
|
|
2979
2995
|
|
|
2980
|
-
Custom configuration used when creating changelog with
|
|
2996
|
+
Custom configuration used when creating changelog with commit-and-tag-version package.
|
|
2981
2997
|
|
|
2982
2998
|
Given values either append to default configuration or overwrite values in it.
|
|
2983
2999
|
|
|
@@ -3526,9 +3542,11 @@ public readonly workflowNodeVersion: string;
|
|
|
3526
3542
|
```
|
|
3527
3543
|
|
|
3528
3544
|
- *Type:* string
|
|
3529
|
-
- *Default:*
|
|
3545
|
+
- *Default:* `minNodeVersion` if set, otherwise `lts/*`.
|
|
3530
3546
|
|
|
3531
|
-
The node version
|
|
3547
|
+
The node version used in GitHub Actions workflows.
|
|
3548
|
+
|
|
3549
|
+
Always use this option if your GitHub Actions workflows require a specific to run.
|
|
3532
3550
|
|
|
3533
3551
|
---
|
|
3534
3552
|
|
|
@@ -3896,6 +3914,19 @@ nice to make this a simple string[] (list of usernames) and automatically lookup
|
|
|
3896
3914
|
|
|
3897
3915
|
---
|
|
3898
3916
|
|
|
3917
|
+
##### `rootDir`<sup>Optional</sup> <a name="rootDir" id="@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.rootDir"></a>
|
|
3918
|
+
|
|
3919
|
+
```typescript
|
|
3920
|
+
public readonly rootDir: string;
|
|
3921
|
+
```
|
|
3922
|
+
|
|
3923
|
+
- *Type:* string
|
|
3924
|
+
- *Default:* 'src'
|
|
3925
|
+
|
|
3926
|
+
Root directory where code lives.
|
|
3927
|
+
|
|
3928
|
+
---
|
|
3929
|
+
|
|
3899
3930
|
##### `terraformBackend`<sup>Optional</sup> <a name="terraformBackend" id="@skeptools/skep-organization-project.SkepOrganizationProjectOptions.property.terraformBackend"></a>
|
|
3900
3931
|
|
|
3901
3932
|
```typescript
|
|
@@ -25,5 +25,5 @@ class SkepOrganizationProject extends cdktf_project_1.CdktfProject {
|
|
|
25
25
|
}
|
|
26
26
|
exports.SkepOrganizationProject = SkepOrganizationProject;
|
|
27
27
|
_a = JSII_RTTI_SYMBOL_1;
|
|
28
|
-
SkepOrganizationProject[_a] = { fqn: "@skeptools/skep-organization-project.SkepOrganizationProject", version: "0.0.
|
|
28
|
+
SkepOrganizationProject[_a] = { fqn: "@skeptools/skep-organization-project.SkepOrganizationProject", version: "0.0.16" };
|
|
29
29
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tlcC1vcmdhbml6YXRpb24tcHJvamVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9za2VwLW9yZ2FuaXphdGlvbi1wcm9qZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsNkJBQTZCO0FBQzdCLGtFQUFtRjtBQUNuRixvRUFBbUc7QUFNbkcsTUFBTSxZQUFZLEdBQUc7SUFDbkIsb0JBQW9CO0lBQ3BCLGtCQUFrQjtDQUNuQixDQUFDO0FBRUYsTUFBYSx1QkFBd0IsU0FBUSw0QkFBWTtJQUN2RCxZQUFZLE9BQXVDO1FBQ2pELE1BQU0sV0FBVyxHQUFHO1lBQ2xCLEdBQUcsT0FBTztZQUNWLElBQUksRUFBRSxJQUFBLCtCQUFjLEVBQUMsQ0FBQyxHQUFHLFlBQVksRUFBRSxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBQ2hFLGlCQUFpQixFQUFFLElBQUEseUJBQVEsRUFBQyxPQUFPLENBQUMsZ0JBQWdCLENBQUM7U0FDdEQsQ0FBQztRQUNGLE1BQU0sRUFBRSxPQUFPLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxHQUFHLElBQUEsNkJBQVksRUFBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUM7UUFDMUcsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ25CLElBQUEseUJBQVEsRUFBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDdEIsbUNBQW1DO0lBQ3JDLENBQUM7O0FBWEgsMERBWUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBwYXRoIGZyb20gJ3BhdGgnO1xuaW1wb3J0IHsgQ2RrdGZQcm9qZWN0LCBDZGt0ZlByb2plY3RPcHRpb25zIH0gZnJvbSAnQHJsbWFydGluLXByb2plbi9jZGt0Zi1wcm9qZWN0JztcbmltcG9ydCB7IGFkZEZpbGVzLCBhbGxDYXNlcywgbG9hZFNldHRpbmdzLCBzcXVhc2hQYWNrYWdlcyB9IGZyb20gJ0BybG1hcnRpbi1wcm9qZW4vcHJvamVuLXByb2plY3QnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNrZXBPcmdhbml6YXRpb25Qcm9qZWN0T3B0aW9ucyBleHRlbmRzIENka3RmUHJvamVjdE9wdGlvbnMge1xuICByZWFkb25seSBvcmdhbml6YXRpb25OYW1lOiBzdHJpbmc7XG59XG5cbmNvbnN0IGRlcGVuZGVuY2llcyA9IFtcbiAgJ0Bza2VwdG9vbHMvc2tlcEB+MCcsXG4gICd0aW1lem9uZS1lbnVtQH4xJyxcbl07XG5cbmV4cG9ydCBjbGFzcyBTa2VwT3JnYW5pemF0aW9uUHJvamVjdCBleHRlbmRzIENka3RmUHJvamVjdCB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnM6IFNrZXBPcmdhbml6YXRpb25Qcm9qZWN0T3B0aW9ucykge1xuICAgIGNvbnN0IHRlbXBPcHRpb25zID0ge1xuICAgICAgLi4ub3B0aW9ucyxcbiAgICAgIGRlcHM6IHNxdWFzaFBhY2thZ2VzKFsuLi5kZXBlbmRlbmNpZXMsIC4uLihvcHRpb25zLmRlcHMgfHwgW10pXSksXG4gICAgICBfb3JnYW5pemF0aW9uTmFtZTogYWxsQ2FzZXMob3B0aW9ucy5vcmdhbml6YXRpb25OYW1lKSxcbiAgICB9O1xuICAgIGNvbnN0IHsgb3B0aW9uczogcHJvamVjdE9wdHMsIGZpbGVzIH0gPSBsb2FkU2V0dGluZ3ModGVtcE9wdGlvbnMsIHBhdGguam9pbihfX2Rpcm5hbWUsICcuLi9maWxlcycpLCB0cnVlKTtcbiAgICBzdXBlcihwcm9qZWN0T3B0cyk7XG4gICAgYWRkRmlsZXModGhpcywgZmlsZXMpO1xuICAgIC8vIEFkZCBub24tdGVtcGxhdGVkIHJlc291cmNlcyBoZXJlXG4gIH1cbn1cbiJdfQ==
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
[](https://github.com/harttle/liquidjs/blob/master/LICENSE)
|
|
7
7
|
[](https://github.com/harttle/liquidjs)
|
|
8
8
|
|
|
9
|
-
A simple, expressive and safe [Shopify][shopify/liquid] /
|
|
10
|
-
**The purpose of this repo** is to provide a standard Liquid implementation for the JavaScript community so that [Jekyll sites](https://jekyllrb.com), [
|
|
9
|
+
A simple, expressive and safe [Shopify][shopify/liquid] / GitHub Pages compatible template engine in pure JavaScript.
|
|
10
|
+
**The purpose of this repo** is to provide a standard Liquid implementation for the JavaScript community so that [Jekyll sites](https://jekyllrb.com), [GitHub Pages](https://pages.github.com/) and [Shopify templates](https://themes.shopify.com/) can be ported to Node.js without pain.
|
|
11
11
|
|
|
12
12
|
* [Documentation][doc]
|
|
13
13
|
* Please star [LiquidJS on GitHub][github]!
|
|
14
|
-
* Financial support via [
|
|
14
|
+
* Financial support via [GitHub Sponsors](https://github.com/sponsors/harttle).
|
|
15
15
|
|
|
16
16
|
<p align="center"><a href="https://liquidjs.com"><img height="155px" width="155px" src="https://liquidjs.com/icon/mstile-310x310.png" alt="logo"></a></p>
|
|
17
17
|
|
|
@@ -62,17 +62,13 @@ For more details, refer to the [Setup Guide][setup].
|
|
|
62
62
|
- [Builder.io](https://www.builder.io/m/developers): the first and only headless CMS with a visual editor that lets you drag and drop with your components, directly within your current site or app. Completely API-driven, for cleaner code and simpler workflows.
|
|
63
63
|
- [Microsoft Power Pages](https://learn.microsoft.com/en-us/power-pages/introduction): a secure, enterprise-grade, low-code software as a service (SaaS) platform for creating, hosting, and administering modern external-facing business websites.
|
|
64
64
|
- [Azure API Management developer portal](https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-developer-portal): an automatically generated, fully customizable website with the documentation of your APIs.
|
|
65
|
+
- [WISMOlabs](https://wismolabs.com/): Post Purchase Experience platform for eCommerce retailers enhancing customer satisfaction by using LiquidJS to provide customizable post-purchase experiences through programmable email, SMS, order tracking pages, and webhooks.
|
|
65
66
|
|
|
66
67
|
Feel free to create a PR or contact me to add your use case into this list!
|
|
67
68
|
|
|
68
69
|
## Financial Support
|
|
69
70
|
|
|
70
|
-
If you personally love LiquidJS or it's benefiting your business, please consider financially support us
|
|
71
|
-
|
|
72
|
-
- via [Github Sponsors](https://github.com/sponsors/harttle), or
|
|
73
|
-
- via [LiquidJS on Open Collective][oc]
|
|
74
|
-
|
|
75
|
-
Special thanks to the following sponsors!
|
|
71
|
+
If you personally love LiquidJS or it's benefiting your business, please consider financially support us via [GitHub Sponsors](https://github.com/sponsors/harttle). Special thanks to our sponsors!
|
|
76
72
|
|
|
77
73
|
<!-- FINANCIAL-CONTRIBUTORS-BEGIN -->
|
|
78
74
|
<table>
|
|
@@ -80,7 +76,7 @@ Special thanks to the following sponsors!
|
|
|
80
76
|
<tr>
|
|
81
77
|
<td align="center" valign="top" width="14.28%"><a href="https://www.opensense.com/"><img src="https://images.opencollective.com/opensense-inc/bf840ae/logo/256.png?height=100" width="100px;" alt="Opensense Inc."/><br /><sub><b>Opensense</b></sub></a></td>
|
|
82
78
|
<td align="center" valign="top" width="14.28%"><a href="https://www.11ty.dev/"><img src="https://avatars.githubusercontent.com/u/35147177?v=4?s=100" width="100px;" alt="Eleventy"/><br /><sub><b>Eleventy</b></sub></a></td>
|
|
83
|
-
<td align="center" valign="top" width="14.28%"><a href="
|
|
79
|
+
<td align="center" valign="top" width="14.28%"><a href="https://about.me/peterdehaan"><img src="https://avatars2.githubusercontent.com/u/557895?v=4?s=100" width="100px;" alt="Peter deHaan"/><br /><sub><b>Peter deHaan</b></sub></a></td>
|
|
84
80
|
<td align="center" valign="top" width="14.28%"><a href="https://opencollective.com/touchless"><img src="https://images.opencollective.com/touchless/273bc74/logo/256.png?height=100" width="100px;" alt="Touchless"/><br /><sub><b>Touchless</b></sub></a></td>
|
|
85
81
|
<td align="center" valign="top" width="14.28%"><a href="https://www.dropkiq.com/"><img src="https://images.opencollective.com/1bertlol/43a8ea8/logo/256.png?height=100" width="100px;" alt="Adam Darrah"/><br /><sub><b>Dropkiq</b></sub></a></td>
|
|
86
82
|
<td align="center" valign="top" width="14.28%"><a href="https://dailycontributors.com/"><img src="https://images.opencollective.com/dailycontributors/3c2e057/logo/256.png?height=100&width=100" width="100px;" alt="Dailycontributors"/><br /><sub><b>Dailycontributors</b></sub></a></td>
|
|
@@ -92,6 +88,11 @@ Special thanks to the following sponsors!
|
|
|
92
88
|
<td align="center" valign="top" width="14.28%"><a href="https://sentry.io/"><img src="https://avatars.githubusercontent.com/u/1396951?v=4?s=100" width="100px;" alt="Sentry"/><br /><sub><b>Sentry</b></sub></a></td>
|
|
93
89
|
<td align="center" valign="top" width="14.28%"><a href="https://www.checkoutblocks.com/"><img src="https://avatars.githubusercontent.com/u/114603307?v=4?s=100" width="100px;" alt="Checkout Blocks"/><br /><sub><b>Checkout Blocks</b></sub></a></td>
|
|
94
90
|
<td align="center" valign="top" width="14.28%"><a href="https://customer.io/"><img src="https://avatars.githubusercontent.com/u/1152079?v=4?s=100" width="100px;" alt="Customer IO"/><br /><sub><b>Customer IO</b></sub></a></td>
|
|
91
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/15fathoms"><img src="https://avatars.githubusercontent.com/u/79156039?v=4?s=100" width="100px;" alt="Emmanuel Cartelli"/><br /><sub><b>Emmanuel Cartelli</b></sub></a><br /></td>
|
|
92
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="Microsoft"/><br /><sub><b>Microsoft</b></sub></a><br /></td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.pakstyle.pk/"><img src="https://images.opencollective.com/pakstyle/2b81605/logo/256.png?height=100" width="100px;" alt="PakStyle.pk"/><br /><sub><b>PakStyle.pk</b></sub></a></td>
|
|
95
96
|
</tr>
|
|
96
97
|
</tbody>
|
|
97
98
|
</table>
|
|
@@ -198,6 +199,12 @@ Want to contribute? see [Contribution Guidelines][contribution]. Thanks goes to
|
|
|
198
199
|
</tr>
|
|
199
200
|
<tr>
|
|
200
201
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/amedve"><img src="https://avatars.githubusercontent.com/u/23156422?v=4?s=100" width="100px;" alt="Max Medve"/><br /><sub><b>Max Medve</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=amedve" title="Code">💻</a></td>
|
|
202
|
+
<td align="center" valign="top" width="14.28%"><a href="https://maizzle.com"><img src="https://avatars.githubusercontent.com/u/1656595?v=4?s=100" width="100px;" alt="Cosmin Popovici"/><br /><sub><b>Cosmin Popovici</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=cossssmin" title="Documentation">📖</a></td>
|
|
203
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/admtnnr"><img src="https://avatars.githubusercontent.com/u/27502?v=4?s=100" width="100px;" alt="Adam Tanner"/><br /><sub><b>Adam Tanner</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=admtnnr" title="Code">💻</a></td>
|
|
204
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/GuillermoCasalCaro"><img src="https://avatars.githubusercontent.com/u/18685581?v=4?s=100" width="100px;" alt="Guillermo Casal Caro"/><br /><sub><b>Guillermo Casal Caro</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=GuillermoCasalCaro" title="Code">💻</a></td>
|
|
205
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jsoref"><img src="https://avatars.githubusercontent.com/u/2119212?v=4?s=100" width="100px;" alt="Josh Soref"/><br /><sub><b>Josh Soref</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=jsoref" title="Documentation">📖</a></td>
|
|
206
|
+
<td align="center" valign="top" width="14.28%"><a href="https://vrugtehagel.nl"><img src="https://avatars.githubusercontent.com/u/41021050?v=4?s=100" width="100px;" alt="Koen"/><br /><sub><b>Koen</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=vrugtehagel" title="Code">💻</a></td>
|
|
207
|
+
<td align="center" valign="top" width="14.28%"><a href="https://neamar.fr"><img src="https://avatars.githubusercontent.com/u/536844?v=4?s=100" width="100px;" alt="Matthieu Bacconnier"/><br /><sub><b>Matthieu Bacconnier</b></sub></a><br /><a href="https://github.com/harttle/liquidjs/commits?author=Neamar" title="Documentation">📖</a></td>
|
|
201
208
|
</tr>
|
|
202
209
|
</tbody>
|
|
203
210
|
</table>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NormalizedFullOptions, RenderOptions } from '../liquid-options';
|
|
2
2
|
import { Scope } from './scope';
|
|
3
|
+
import { Limiter } from '../util';
|
|
3
4
|
type PropertyKey = string | number;
|
|
4
5
|
export declare class Context {
|
|
5
6
|
/**
|
|
@@ -28,7 +29,11 @@ export declare class Context {
|
|
|
28
29
|
*/
|
|
29
30
|
strictVariables: boolean;
|
|
30
31
|
ownPropertyOnly: boolean;
|
|
31
|
-
|
|
32
|
+
memoryLimit: Limiter;
|
|
33
|
+
renderLimit: Limiter;
|
|
34
|
+
constructor(env?: object, opts?: NormalizedFullOptions, renderOptions?: RenderOptions, { memoryLimit, renderLimit }?: {
|
|
35
|
+
[key: string]: Limiter;
|
|
36
|
+
});
|
|
32
37
|
getRegister(key: string): any;
|
|
33
38
|
setRegister(key: string, value: any): any;
|
|
34
39
|
saveRegister(...keys: string[]): [string, any][];
|
|
@@ -48,6 +53,7 @@ export declare class Context {
|
|
|
48
53
|
push(ctx: object): number;
|
|
49
54
|
pop(): Scope | undefined;
|
|
50
55
|
bottom(): Scope;
|
|
56
|
+
spawn(scope?: {}): Context;
|
|
51
57
|
private findScope;
|
|
52
58
|
}
|
|
53
59
|
export declare function readProperty(obj: Scope, key: PropertyKey, ownPropertyOnly: boolean): any;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { FilterImpl } from '../template';
|
|
2
|
-
import { Scope } from '../context';
|
|
3
|
-
export declare const join: (v: any[], arg: string) => any;
|
|
4
|
-
export declare const last: (v: any) => any;
|
|
5
|
-
export declare const first: (v: any) => any;
|
|
6
|
-
export declare const reverse: (v: any[]) => any;
|
|
2
|
+
import type { Scope } from '../context';
|
|
3
|
+
export declare const join: (this: unknown, v: any[], arg: string) => any;
|
|
4
|
+
export declare const last: (this: unknown, v: any) => any;
|
|
5
|
+
export declare const first: (this: unknown, v: any) => any;
|
|
6
|
+
export declare const reverse: (this: unknown, v: any[]) => any;
|
|
7
7
|
export declare function sort<T>(this: FilterImpl, arr: T[], property?: string): IterableIterator<unknown>;
|
|
8
|
-
export declare function sort_natural<T>(input: T[], property?: string): any[];
|
|
8
|
+
export declare function sort_natural<T>(this: FilterImpl, input: T[], property?: string): any[];
|
|
9
9
|
export declare const size: (v: string | any[]) => number;
|
|
10
10
|
export declare function map(this: FilterImpl, arr: Scope[], property: string): IterableIterator<unknown>;
|
|
11
11
|
export declare function sum(this: FilterImpl, arr: Scope[], property?: string): IterableIterator<unknown>;
|
|
12
12
|
export declare function compact<T>(this: FilterImpl, arr: T[]): any[];
|
|
13
|
-
export declare function concat<T1, T2>(v: T1[], arg?: T2[]): (T1 | T2)[];
|
|
14
|
-
export declare function push<T>(v: T[], arg: T): T[];
|
|
15
|
-
export declare function unshift<T>(v: T[], arg: T): T[];
|
|
13
|
+
export declare function concat<T1, T2>(this: FilterImpl, v: T1[], arg?: T2[]): (T1 | T2)[];
|
|
14
|
+
export declare function push<T>(this: FilterImpl, v: T[], arg: T): T[];
|
|
15
|
+
export declare function unshift<T>(this: FilterImpl, v: T[], arg: T): T[];
|
|
16
16
|
export declare function pop<T>(v: T[]): T[];
|
|
17
|
-
export declare function shift<T>(v: T[]): T[];
|
|
18
|
-
export declare function slice<T>(v: T[] | string, begin: number, length?: number): T[] | string;
|
|
17
|
+
export declare function shift<T>(this: FilterImpl, v: T[]): T[];
|
|
18
|
+
export declare function slice<T>(this: FilterImpl, v: T[] | string, begin: number, length?: number): T[] | string;
|
|
19
19
|
export declare function where<T extends object>(this: FilterImpl, arr: T[], property: string, expected?: any): IterableIterator<unknown>;
|
|
20
20
|
export declare function where_exp<T extends object>(this: FilterImpl, arr: T[], itemName: string, exp: string): IterableIterator<unknown>;
|
|
21
|
-
export declare function group_by<T extends object>(arr: T[], property: string): IterableIterator<unknown>;
|
|
21
|
+
export declare function group_by<T extends object>(this: FilterImpl, arr: T[], property: string): IterableIterator<unknown>;
|
|
22
22
|
export declare function group_by_exp<T extends object>(this: FilterImpl, arr: T[], itemName: string, exp: string): IterableIterator<unknown>;
|
|
23
23
|
export declare function find<T extends object>(this: FilterImpl, arr: T[], property: string, expected: string): IterableIterator<unknown>;
|
|
24
24
|
export declare function find_exp<T extends object>(this: FilterImpl, arr: T[], itemName: string, exp: string): IterableIterator<unknown>;
|
|
25
|
-
export declare function uniq<T>(arr: T[]): T[];
|
|
26
|
-
export declare function sample<T>(v: T[] | string, count?: number): T | string | (T | string)[];
|
|
25
|
+
export declare function uniq<T>(this: FilterImpl, arr: T[]): T[];
|
|
26
|
+
export declare function sample<T>(this: FilterImpl, v: T[] | string, count?: number): T | string | (T | string)[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
1
|
+
import { FilterImpl } from '../template';
|
|
2
|
+
export declare function escape(this: FilterImpl, str: string): string;
|
|
3
|
+
export declare function xml_escape(this: FilterImpl, str: string): string;
|
|
4
|
+
export declare function escape_once(this: FilterImpl, str: string): string;
|
|
5
|
+
export declare function newline_to_br(this: FilterImpl, v: string): string;
|
|
6
|
+
export declare function strip_html(this: FilterImpl, v: string): string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const abs: (x: number) => any;
|
|
2
|
-
export declare const at_least: (...args: number[]) => any;
|
|
3
|
-
export declare const at_most: (...args: number[]) => any;
|
|
4
|
-
export declare const ceil: (x: number) => any;
|
|
5
|
-
export declare const divided_by: (dividend: number, divisor: number, integerArithmetic?: any) => any;
|
|
6
|
-
export declare const floor: (x: number) => any;
|
|
7
|
-
export declare const minus: (v: number, arg: number) => any;
|
|
8
|
-
export declare const modulo: (v: number, arg: number) => any;
|
|
9
|
-
export declare const times: (v: number, arg: number) => any;
|
|
1
|
+
export declare const abs: (this: unknown, x: number) => any;
|
|
2
|
+
export declare const at_least: (this: unknown, ...args: number[]) => any;
|
|
3
|
+
export declare const at_most: (this: unknown, ...args: number[]) => any;
|
|
4
|
+
export declare const ceil: (this: unknown, x: number) => any;
|
|
5
|
+
export declare const divided_by: (this: unknown, dividend: number, divisor: number, integerArithmetic?: any) => any;
|
|
6
|
+
export declare const floor: (this: unknown, x: number) => any;
|
|
7
|
+
export declare const minus: (this: unknown, v: number, arg: number) => any;
|
|
8
|
+
export declare const modulo: (this: unknown, v: number, arg: number) => any;
|
|
9
|
+
export declare const times: (this: unknown, v: number, arg: number) => any;
|
|
10
10
|
export declare function round(v: number, arg?: number): number;
|
|
11
11
|
export declare function plus(v: number, arg: number): number;
|
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
*
|
|
4
4
|
* * prefer stringify() to String() since `undefined`, `null` should eval ''
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
6
|
+
import { FilterImpl } from '../template';
|
|
7
|
+
export declare function append(this: FilterImpl, v: string, arg: string): string;
|
|
8
|
+
export declare function prepend(this: FilterImpl, v: string, arg: string): string;
|
|
9
|
+
export declare function lstrip(this: FilterImpl, v: string, chars?: string): string;
|
|
10
|
+
export declare function downcase(this: FilterImpl, v: string): string;
|
|
11
|
+
export declare function upcase(this: FilterImpl, v: string): string;
|
|
12
|
+
export declare function remove(this: FilterImpl, v: string, arg: string): string;
|
|
13
|
+
export declare function remove_first(this: FilterImpl, v: string, l: string): string;
|
|
14
|
+
export declare function remove_last(this: FilterImpl, v: string, l: string): string;
|
|
15
|
+
export declare function rstrip(this: FilterImpl, str: string, chars?: string): string;
|
|
16
|
+
export declare function split(this: FilterImpl, v: string, arg: string): string[];
|
|
17
|
+
export declare function strip(this: FilterImpl, v: string, chars?: string): string;
|
|
18
|
+
export declare function strip_newlines(this: FilterImpl, v: string): string;
|
|
19
|
+
export declare function capitalize(this: FilterImpl, str: string): string;
|
|
20
|
+
export declare function replace(this: FilterImpl, v: string, pattern: string, replacement: string): string;
|
|
21
|
+
export declare function replace_first(this: FilterImpl, v: string, arg1: string, arg2: string): string;
|
|
22
|
+
export declare function replace_last(this: FilterImpl, v: string, arg1: string, arg2: string): string;
|
|
23
|
+
export declare function truncate(this: FilterImpl, v: string, l?: number, o?: string): string;
|
|
24
|
+
export declare function truncatewords(this: FilterImpl, v: string, words?: number, o?: string): string;
|
|
25
|
+
export declare function normalize_whitespace(this: FilterImpl, v: string): string;
|
|
26
|
+
export declare function number_of_words(this: FilterImpl, input: string, mode?: 'cjk' | 'auto'): number;
|
|
27
|
+
export declare function array_to_sentence_string(this: FilterImpl, array: unknown[], connector?: string): unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class MapFS {
|
|
2
|
+
private mapping;
|
|
3
|
+
constructor(mapping: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
});
|
|
6
|
+
sep: string;
|
|
7
|
+
exists(filepath: string): Promise<boolean>;
|
|
8
|
+
existsSync(filepath: string): boolean;
|
|
9
|
+
readFile(filepath: string): Promise<string>;
|
|
10
|
+
readFileSync(filepath: string): string;
|
|
11
|
+
dirname(filepath: string): string;
|
|
12
|
+
resolve(dir: string, file: string, ext: string): string;
|
|
13
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const requireResolve: NodeJS.RequireResolve;
|
|
1
|
+
export declare const requireResolve: (partial: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const version = "[VI]{version}[/VI]";
|
|
2
2
|
export * as TypeGuards from './util/type-guards';
|
|
3
|
-
export { toValue,
|
|
3
|
+
export { toValue, createTrie, Trie, toPromise, toValueSync, assert, LiquidError, ParseError, RenderError, UndefinedVariableError, TokenizationError, AssertionError } from './util';
|
|
4
4
|
export { Drop } from './drop';
|
|
5
5
|
export { Emitter } from './emitters';
|
|
6
6
|
export { defaultOperators, Operators, evalToken, evalQuotedToken, Expression, isFalsy, isTruthy } from './render';
|