-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update Template interface * update Template metadata to include files. Fix featureIds by calling getRef(...) * improve test * replace metadata entry for optionalPaths to full file path when only one file in target dir
- Loading branch information
1 parent
fbd8dfe
commit b01622e
Showing
17 changed files
with
201 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...er-templates/example-templates-sets/simple/src/mytemplate/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/base", | ||
"containerEnv": { | ||
"MY_ENV_VAR": "${templateOption:anOption}" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/azure-cli": { | ||
"installBicep": false | ||
}, | ||
"ghcr.io/devcontainers/features/aws-cli:1": {}, | ||
"ghcr.io/devcontainers/features/common-utils:2.5.1": { | ||
"userUid": "${templateOption:userUid}" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-in-docker@sha256:503f23cd692325b3cbb8c20a0ecfabb3444b0c786b363e0c82572bd7d71dc099": {} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...t/container-templates/example-templates-sets/simple/src/mytemplate/.github/dependabot.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" # See documentation for possible values | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
1 change: 1 addition & 0 deletions
1
...ontainer-templates/example-templates-sets/simple/src/mytemplate/assets/hello.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hello |
1 change: 1 addition & 0 deletions
1
...t/container-templates/example-templates-sets/simple/src/mytemplate/assets/hi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hi |
7 changes: 7 additions & 0 deletions
7
src/test/container-templates/example-templates-sets/simple/src/mytemplate/c1.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class C1 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/container-templates/example-templates-sets/simple/src/mytemplate/c2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class C2 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/container-templates/example-templates-sets/simple/src/mytemplate/c3.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class C3 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
39 changes: 39 additions & 0 deletions
39
...ntainer-templates/example-templates-sets/simple/src/mytemplate/devcontainer-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"id": "mytemplate", | ||
"version": "1.0.0", | ||
"name": "My Template", | ||
"description": "Simple test", | ||
"documentationURL": "https://github.com/codspace/templates/tree/main/src/test", | ||
"publisher": "codspace", | ||
"licenseURL": "https://github.com/devcontainers/templates/blob/main/LICENSE", | ||
"platforms": [ | ||
"Any" | ||
], | ||
"options": { | ||
"anOption": { | ||
"type": "string", | ||
"description": "A great option", | ||
"proposals": [ | ||
"8.0", | ||
"7.0", | ||
"6.0" | ||
], | ||
"default": "8.0" | ||
}, | ||
"userUid": { | ||
"type": "string", | ||
"description": "The user's UID", | ||
"proposals": [ | ||
"1000", | ||
"1001", | ||
"1002" | ||
], | ||
"default": "1000" | ||
} | ||
}, | ||
"optionalPaths": [ | ||
".github/*", | ||
"example-projects/exampleA/*", | ||
"c1.ts" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
...ple-templates-sets/simple/src/mytemplate/example-projects/exampleA/.github/dependabot.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" # See documentation for possible values | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
7 changes: 7 additions & 0 deletions
7
...er-templates/example-templates-sets/simple/src/mytemplate/example-projects/exampleA/a1.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class A1 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
7 changes: 7 additions & 0 deletions
7
...s/example-templates-sets/simple/src/mytemplate/example-projects/exampleA/subFolderA/a2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class A2 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
6 changes: 6 additions & 0 deletions
6
...ple-templates-sets/simple/src/mytemplate/example-projects/exampleB/.github/dependabot.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" # See documentation for possible values | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
Empty file.
7 changes: 7 additions & 0 deletions
7
...s/example-templates-sets/simple/src/mytemplate/example-projects/exampleB/subFolderB/b2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class B2 { | ||
constructor() { | ||
// Add your code here | ||
} | ||
|
||
// Add your methods here | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters