diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f915778..a0f0a03 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,12 +1,12 @@ { - "image": "mcr.microsoft.com/devcontainers/javascript-node", - "features": { - "ghcr.io/devcontainers/features/docker-in-docker": {} - }, - "postCreateCommand": "npm install -g @devcontainers/cli", - "customizations": { - "vscode": { - "extensions": ["mads-hartmann.bash-ide-vscode"] - } - } + "image": "mcr.microsoft.com/devcontainers/javascript-node", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker": {} + }, + "postCreateCommand": "npm install -g @devcontainers/cli", + "customizations": { + "vscode": { + "extensions": ["mads-hartmann.bash-ide-vscode"] + } + } } diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 475b0ad..3914d00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,8 @@ on: - main pull_request: workflow_dispatch: - +permissions: + contents: read jobs: test-autogenerated: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6f4150 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +megalinter-reports +logs +*.log diff --git a/.vscode/settings.json b/.vscode/settings.json index b929539..cfaa43a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,8 @@ { - "json.schemas": [ - { - "fileMatch": ["*/devcontainer-feature.json"], - "url": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerFeature.schema.json" - } - ] + "json.schemas": [ + { + "fileMatch": ["*/devcontainer-feature.json"], + "url": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerFeature.schema.json" + } + ] } diff --git a/README.md b/README.md index ffadd7f..254078c 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ my favorite color is green ## Repo and Feature Structure -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`. +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`. ``` ├── src @@ -149,7 +149,7 @@ https://github.com/users//packages/container/%2F/setti If you'd like your Features to appear in our [public index](https://containers.dev/features) so that other community members can find them, you can do the following: * Go to [github.com/devcontainers/devcontainers.github.io](https://github.com/devcontainers/devcontainers.github.io) - * This is the GitHub repo backing the [containers.dev](https://containers.dev/) spec site + * This is the GitHub repo backing the [containers.dev](https://containers.dev/) spec site * Open a PR to modify the [collection-index.yml](https://github.com/devcontainers/devcontainers.github.io/blob/gh-pages/_data/collection-index.yml) file This index is from where [supporting tools](https://containers.dev/supporting) like [VS Code Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and [GitHub Codespaces](https://github.com/features/codespaces) surface Features for their dev container creation UI. diff --git a/src/dart/NOTES.md b/src/dart/NOTES.md index 7608082..d7c3249 100644 --- a/src/dart/NOTES.md +++ b/src/dart/NOTES.md @@ -1,45 +1,44 @@ - - -
- -[![Dart website](https://thum.io/get/width/800/crop/600/noanimate/https://dart.dev/)](https://dart.dev/) - -
- -> Dart is a client-optimized language for fast apps on any platform - -— [Dart programming language | Dart] - -This feature installs the Dart SDK. - -🆘 If you're having trouble with this feature, [open a Discussion] or [open an -Issue]! We'd be happy to fix bugs! 🐛 - -## Supported platforms - -`linux/amd64` and `linux/arm64` platforms `debian` and `ubuntu`. - -## How to specify extensions? - -This feature installs any version with the `version` option and `channel` option. -Check [Dart SDK archive] for channel details. - -```json -"features": { - "ghcr.io/devcontainers-community/features/dart:1": { - "version": "3", - "channel": "beta" - } -} -``` - -Note that the beta and dev channels use suffix-based version matching, -so only versions ending with channel name (e.g. `3.1.0-63.1.beta`) can be installed. - - -[Dart programming language | Dart]: https://dart.dev/ -[Dart SDK archive]: https://dart.dev/get-dart/archive -[Flutter]: https://flutter.dev/ -[open a Discussion]: https://github.com/devcontainers-community/features/discussions/new?category=q-a -[open an Issue]: https://github.com/devcontainers-community/features/issues/new - + + +
+ +[![Dart website](https://thum.io/get/width/800/crop/600/noanimate/https://dart.dev/)](https://dart.dev/) + +
+ +> Dart is a client-optimized language for fast apps on any platform + +— [Dart programming language | Dart] + +This feature installs the Dart SDK. + +🆘 If you're having trouble with this feature, [open a Discussion] or [open an +Issue]! We'd be happy to fix bugs! 🐛 + +## Supported platforms + +`linux/amd64` and `linux/arm64` platforms `debian` and `ubuntu`. + +## How to specify extensions? + +This feature installs any version with the `version` option and `channel` option. +Check [Dart SDK archive] for channel details. + +```json +"features": { + "ghcr.io/devcontainers-community/features/dart:1": { + "version": "3", + "channel": "beta" + } +} +``` + +Note that the beta and dev channels use suffix-based version matching, +so only versions ending with channel name (e.g. `3.1.0-63.1.beta`) can be installed. + + +[Dart programming language | Dart]: https://dart.dev/ +[Dart SDK archive]: https://dart.dev/get-dart/archive +[open a Discussion]: https://github.com/devcontainers-community/features/discussions/new?category=q-a +[open an Issue]: https://github.com/devcontainers-community/features/issues/new + diff --git a/src/dart/devcontainer-feature.json b/src/dart/devcontainer-feature.json index 749a5b0..0c7fda7 100644 --- a/src/dart/devcontainer-feature.json +++ b/src/dart/devcontainer-feature.json @@ -1,28 +1,28 @@ -{ - "id": "dart", - "name": "Dart", - "description": "Installs the Dart SDK", - "version": "1.0.0", - "options": { - "version": { - "description": "Select version of Dart SDK", - "type": "string", - "default": "latest", - "proposals": ["latest", "3"] - }, - "channel": { - "description": "Select build channel of Dart SDK", - "type": "string", - "default": "stable", - "enum": ["stable", "beta", "dev", "main"] - } - }, - "containerEnv": { - "PATH": "/usr/lib/dart/bin:${PATH}" - }, - "customizations": { - "vscode": { - "extensions": ["dart-code.dart-code"] - } - } -} +{ + "id": "dart", + "name": "Dart", + "description": "Installs the Dart SDK", + "version": "1.0.0", + "options": { + "version": { + "description": "Select version of Dart SDK", + "type": "string", + "default": "latest", + "proposals": ["latest", "3"] + }, + "channel": { + "description": "Select build channel of Dart SDK", + "type": "string", + "default": "stable", + "enum": ["stable", "beta", "dev", "main"] + } + }, + "containerEnv": { + "PATH": "/usr/lib/dart/bin:${PATH}" + }, + "customizations": { + "vscode": { + "extensions": ["dart-code.dart-code"] + } + } +} diff --git a/test/dart/scenarios.json b/test/dart/scenarios.json index 1b2f9e2..ac3721a 100644 --- a/test/dart/scenarios.json +++ b/test/dart/scenarios.json @@ -1,26 +1,26 @@ { - "version-3": { - "image": "mcr.microsoft.com/devcontainers/base:debian", - "features": { - "dart": { - "version": "3" - } - } - }, - "channel-beta": { - "image": "mcr.microsoft.com/devcontainers/base:debian", - "features": { - "dart": { - "channel": "beta" - } - } - }, - "channel-main": { - "image": "mcr.microsoft.com/devcontainers/base:debian", - "features": { - "dart": { - "channel": "main" - } - } - } + "version-3": { + "image": "mcr.microsoft.com/devcontainers/base:debian", + "features": { + "dart": { + "version": "3" + } + } + }, + "channel-beta": { + "image": "mcr.microsoft.com/devcontainers/base:debian", + "features": { + "dart": { + "channel": "beta" + } + } + }, + "channel-main": { + "image": "mcr.microsoft.com/devcontainers/base:debian", + "features": { + "dart": { + "channel": "main" + } + } + } }