From a922ccd0e3b92c6586255b2b660e9e9fcc18deaa Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Tue, 16 Jul 2019 15:12:26 -0600 Subject: [PATCH] Bootstrap Gleam track --- .gitignore | 4 ++++ .travis.yml | 5 +++++ LICENSE | 21 +++++++++++++++++++++ README.md | 5 +++++ bin/fetch-configlet | 32 ++++++++++++++++++++++++++++++++ config.json | 10 ++++++++++ config/exercise-readme-insert.md | 0 config/exercise_readme.go.tmpl | 16 ++++++++++++++++ config/maintainers.json | 4 ++++ docs/ABOUT.md | 0 docs/INSTALLATION.md | 0 docs/LEARNING.md | 0 docs/RESOURCES.md | 0 docs/TESTS.md | 0 img/.keep | 0 15 files changed, 97 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100755 bin/fetch-configlet create mode 100644 config.json create mode 100644 config/exercise-readme-insert.md create mode 100644 config/exercise_readme.go.tmpl create mode 100644 config/maintainers.json create mode 100644 docs/ABOUT.md create mode 100644 docs/INSTALLATION.md create mode 100644 docs/LEARNING.md create mode 100644 docs/RESOURCES.md create mode 100644 docs/TESTS.md create mode 100644 img/.keep diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..6a513a061 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.swp +.DS_Store +bin/configlet +bin/configlet.exe diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..3017b8a79 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: bash + +script: + - bin/fetch-configlet + - bin/configlet lint --track-id gleam . diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..a7527f968 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 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. diff --git a/README.md b/README.md new file mode 100644 index 000000000..8061d7424 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Exercism Gleam Track + +[![Build Status](https://travis-ci.org/exercism/gleam.svg?branch=master)](https://travis-ci.org/exercism/gleam) + +Exercism exercises in Gleam. diff --git a/bin/fetch-configlet b/bin/fetch-configlet new file mode 100755 index 000000000..4f64c5b9a --- /dev/null +++ b/bin/fetch-configlet @@ -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/ diff --git a/config.json b/config.json new file mode 100644 index 000000000..c4184336d --- /dev/null +++ b/config.json @@ -0,0 +1,10 @@ +{ + "track_id": "gleam", + "language": "Gleam", + "active": false, + "blurb": "", + "ignore_pattern": "[Ee]xample", + "solution_pattern": "[Ee]xample", + "test_pattern": "[Tt]est", + "exercises": null +} diff --git a/config/exercise-readme-insert.md b/config/exercise-readme-insert.md new file mode 100644 index 000000000..e69de29bb diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl new file mode 100644 index 000000000..2b26f4942 --- /dev/null +++ b/config/exercise_readme.go.tmpl @@ -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. diff --git a/config/maintainers.json b/config/maintainers.json new file mode 100644 index 000000000..0f1baa3a0 --- /dev/null +++ b/config/maintainers.json @@ -0,0 +1,4 @@ +{ + "docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md", + "maintainers": [] +} diff --git a/docs/ABOUT.md b/docs/ABOUT.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/LEARNING.md b/docs/LEARNING.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/RESOURCES.md b/docs/RESOURCES.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/TESTS.md b/docs/TESTS.md new file mode 100644 index 000000000..e69de29bb diff --git a/img/.keep b/img/.keep new file mode 100644 index 000000000..e69de29bb