Bootstrap 05AB1E track
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
bin/configlet
|
||||||
|
bin/configlet.exe
|
||||||
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
language: bash
|
||||||
|
|
||||||
|
script:
|
||||||
|
- bin/fetch-configlet
|
||||||
|
- bin/configlet lint --track-id 05ab1e .
|
||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Exercism
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
5
README.md
Normal file
5
README.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Exercism 05AB1E Track
|
||||||
|
|
||||||
|
[](https://travis-ci.org/exercism/05ab1e)
|
||||||
|
|
||||||
|
Exercism exercises in 05AB1E.
|
||||||
32
bin/fetch-configlet
Executable file
32
bin/fetch-configlet
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
LATEST=https://github.com/exercism/configlet/releases/latest
|
||||||
|
|
||||||
|
OS=$(
|
||||||
|
case $(uname) in
|
||||||
|
(Darwin*)
|
||||||
|
echo "mac";;
|
||||||
|
(Linux*)
|
||||||
|
echo "linux";;
|
||||||
|
(Windows*)
|
||||||
|
echo "windows";;
|
||||||
|
(*)
|
||||||
|
echo "linux";;
|
||||||
|
esac)
|
||||||
|
|
||||||
|
ARCH=$(
|
||||||
|
case $(uname -m) in
|
||||||
|
(*64*)
|
||||||
|
echo 64bit;;
|
||||||
|
(*686*)
|
||||||
|
echo 32bit;;
|
||||||
|
(*386*)
|
||||||
|
echo 32bit;;
|
||||||
|
(*)
|
||||||
|
echo 64bit;;
|
||||||
|
esac)
|
||||||
|
|
||||||
|
VERSION="$(curl --head --silent $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
|
||||||
|
URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-$OS-${ARCH}.tgz
|
||||||
|
|
||||||
|
curl -s --location $URL | tar xz -C bin/
|
||||||
10
config.json
Normal file
10
config.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"track_id": "05ab1e",
|
||||||
|
"language": "05AB1E",
|
||||||
|
"active": false,
|
||||||
|
"blurb": "",
|
||||||
|
"ignore_pattern": "[Ee]xample",
|
||||||
|
"solution_pattern": "[Ee]xample",
|
||||||
|
"test_pattern": "[Tt]est",
|
||||||
|
"exercises": null
|
||||||
|
}
|
||||||
0
config/exercise-readme-insert.md
Normal file
0
config/exercise-readme-insert.md
Normal file
16
config/exercise_readme.go.tmpl
Normal file
16
config/exercise_readme.go.tmpl
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# {{ .Spec.Name }}
|
||||||
|
|
||||||
|
{{ .Spec.Description -}}
|
||||||
|
{{- with .Hints }}
|
||||||
|
{{ . -}}
|
||||||
|
{{ end }}
|
||||||
|
{{- with .TrackInsert }}
|
||||||
|
{{ . -}}
|
||||||
|
{{ end }}
|
||||||
|
{{- with .Spec.Credits }}
|
||||||
|
## Source
|
||||||
|
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
|
## Submitting Incomplete Solutions
|
||||||
|
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
|
||||||
4
config/maintainers.json
Normal file
4
config/maintainers.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md",
|
||||||
|
"maintainers": []
|
||||||
|
}
|
||||||
0
docs/ABOUT.md
Normal file
0
docs/ABOUT.md
Normal file
0
docs/INSTALLATION.md
Normal file
0
docs/INSTALLATION.md
Normal file
0
docs/LEARNING.md
Normal file
0
docs/LEARNING.md
Normal file
0
docs/RESOURCES.md
Normal file
0
docs/RESOURCES.md
Normal file
0
docs/TESTS.md
Normal file
0
docs/TESTS.md
Normal file
Reference in New Issue
Block a user