Skip to content

Commit 546029e

Browse files
committed
Add editorconfig.
1 parent 8cd934d commit 546029e

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

.devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"customizations": {
44
"vscode": {
55
"extensions": [
6+
"EditorConfig.EditorConfig",
67
"mads-hartmann.bash-ide-vscode"
78
]
89
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.yml]
15+
indent_size = 2

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
publish-features: "true"
1616
base-path-to-features: "./src"
1717
generate-docs: "true"
18-
18+
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dev Container Features: Self Authoring Template
22

3-
> This repo provides a starting point and example for creating your own custom [dev container Features](https://containers.dev/implementors/features/), hosted for free on GitHub Container Registry. The example in this repository follows the [dev container Feature distribution specification](https://containers.dev/implementors/features-distribution/).
3+
> This repo provides a starting point and example for creating your own custom [dev container Features](https://containers.dev/implementors/features/), hosted for free on GitHub Container Registry. The example in this repository follows the [dev container Feature distribution specification](https://containers.dev/implementors/features-distribution/).
44
>
55
> To provide feedback to the specification, please leave a comment [on spec issue #70](https://github.com/devcontainers/spec/issues/70). For more broad feedback regarding dev container Features, please see [spec issue #61](https://github.com/devcontainers/spec/issues/61).
66
@@ -52,7 +52,7 @@ my favorite color is green
5252

5353
## Repo and Feature Structure
5454

55-
Similar to the [`devcontainers/features`](https://github.com/devcontainers/features) repo, this repository has a `src` folder. Each Feature has its own sub-folder, containing at least a `devcontainer-feature.json` and an entrypoint script `install.sh`.
55+
Similar to the [`devcontainers/features`](https://github.com/devcontainers/features) repo, this repository has a `src` folder. Each Feature has its own sub-folder, containing at least a `devcontainer-feature.json` and an entrypoint script `install.sh`.
5656

5757
```
5858
├── src
@@ -113,11 +113,11 @@ Features are individually versioned by the `version` attribute in a Feature's `d
113113

114114
### Publishing
115115

116-
> NOTE: The Distribution spec can be [found here](https://containers.dev/implementors/features-distribution/).
116+
> NOTE: The Distribution spec can be [found here](https://containers.dev/implementors/features-distribution/).
117117
>
118118
> While any registry [implementing the OCI Distribution spec](https://github.com/opencontainers/distribution-spec) can be used, this template will leverage GHCR (GitHub Container Registry) as the backing registry.
119119
120-
Features are meant to be easily sharable units of dev container configuration and installation code.
120+
Features are meant to be easily sharable units of dev container configuration and installation code.
121121

122122
This repo contains a GitHub Action [workflow](.github/workflows/release.yaml) that will publish each feature to GHCR. By default, each Feature will be prefixed with the `<owner/<repo>` namespace. For example, the two Features in this repository can be referenced in a `devcontainer.json` with:
123123

0 commit comments

Comments
 (0)