Skip to content

Commit 81c35a9

Browse files
Merge branch 'release/0.1.0'
2 parents e92b8a9 + b8068d0 commit 81c35a9

File tree

8 files changed

+281
-8
lines changed

8 files changed

+281
-8
lines changed

.eslintrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": [
3+
"json"
4+
]
5+
}

.travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2+
# title Travis CI Build Configuration +
3+
# project nord-terminix +
4+
# repository https://github.com/arcticicestudio/nord-terminix +
5+
# author Arctic Ice Studio +
6+
7+
# copyright Copyright (C) 2016 +
8+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
#
10+
# [References]
11+
# Travis CI Documentation
12+
# (https://docs.travis-ci.com)
13+
language: node_js
14+
node_js: "6"
15+
cache:
16+
directories:
17+
- $HOME/node_modules
18+
before_script:
19+
- npm install
20+
script: npm run --silent lint

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@
33
<p align="center"><img src="https://assets-cdn.github.com/favicon.ico" width=24 height=24/> <a href="https://github.com/arcticicestudio/nord-terminix/releases/latest"><img src="https://img.shields.io/github/release/arcticicestudio/nord-terminix.svg"/></a> <a href="https://github.com/arcticicestudio/nord/releases/tag/v0.1.0"><img src="https://img.shields.io/badge/Nord-v0.1.0-blue.svg"/></a></p>
44

55
---
6+
7+
# 0.1.0 (2016-11-19)
8+
## Features
9+
Implemented the main JSON color scheme file.
10+
Detailed instructions to install the scheme file can be found in the [README](https://github.com/arcticicestudio/nord-terminix/blob/develop/README.md#installation).
11+
(@arcticicestudio, #1, b4179195)
12+
13+
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-terminix/develop/src/assets/scrot-colortest.png"/><br><strong>htop</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-terminix/develop/src/assets/scrot-htop.png"/></p>
14+
15+
# 0.0.0 (2016-11-19)
16+
**Project Initialization**

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ Based on the <a href="https://github.com/arcticicestudio/nord">Nord</a> color pa
1616
#### Manual
1717
Copy the [`nord.json`](https://github.com/arcticicestudio/nord-terminix/tree/develop/src/json/nord-json) file to the color schemes directory according to the desired installation type.
1818

19-
**Local User**
20-
```
21-
~/.config/terminix/schemes
22-
```
23-
**Global**
24-
```
25-
/usr/share/terminix/schemes
26-
```
19+
Local: `~/.config/terminix/schemes`
20+
Global: `/usr/share/terminix/schemes`
2721

2822
#### Install Script
2923
The included `install.sh` shell script can be used for an automated installation.
@@ -55,6 +49,8 @@ Syntax: `install.sh [OPTIONS]`
5549
## Development
5650
[![](https://img.shields.io/badge/Changelog-0.1.0-blue.svg)](https://github.com/arcticicestudio/nord-terminix/blob/v0.1.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-blue.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-blue.svg)](https://github.com/arcticicestudio/arcver)
5751

52+
Continuous integration builds are running at [Travis-CI](https://travis-ci.org/arcticicestudio/nord-terminix) and [Circle CI](https://circleci.com/bb/arcticicestudio/nord-terminix).
53+
5854
### Contribution
5955
Please report issues/bugs, feature requests and suggestions for improvements to the [issue tracker](https://github.com/arcticicestudio/nord-terminix/issues).
6056

circle.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2+
# title Circle CI Build Configuration +
3+
# project nord-terminix +
4+
# repository https://github.com/arcticicestudio/nord-terminix +
5+
# author Arctic Ice Studio +
6+
7+
# copyright Copyright (C) 2016 +
8+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
#
10+
# [References]
11+
# Circle CI
12+
# (https://circleci.com/docs)
13+
machine:
14+
node:
15+
version: 6.1.0
16+
dependencies:
17+
override:
18+
- npm install
19+
test:
20+
override:
21+
- npm run --silent lint

install.sh

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
#!/usr/bin/env bash
2+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3+
# title Install Script +
4+
# project nord-terminix +
5+
# repository https://github.com/arcticicestudio/nord-terminix +
6+
# author Arctic Ice Studio +
7+
8+
# copyright Copyright (C) 2016 +
9+
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10+
set -e
11+
12+
_ct_error="\e[0;31m"
13+
_ct_success="\e[0;32m"
14+
_ct_warning="\e[0;33m"
15+
_ct_highlight="\e[0;34m"
16+
_ct_primary="\e[0;36m"
17+
_ct="\e[0;37m"
18+
_ctb_subtle="\e[1;30m"
19+
_ctb_error="\e[1;31m"
20+
_ctb_success="\e[1;32m"
21+
_ctb_warning="\e[1;33m"
22+
_ctb_highlight="\e[1;34m"
23+
_ctb_primary="\e[1;36m"
24+
_ctb="\e[1;37m"
25+
_c_reset="\e[0m"
26+
27+
__help() {
28+
printf "${_ctb}Usage: ${_ct_primary}install.sh ${_ctb_subtle}[OPTIONS]\n"
29+
printf " ${_ctb_highlight}-h${_ct},${_ctb_highlight} --help ${_ct}Help\n"
30+
printf " ${_ctb_highlight}-v${_ct},${_ctb_highlight} --verbose ${_ct}Verbose output\n${_ctb_reset}"
31+
printf " ${_ctb_highlight}-g${_ct},${_ctb_highlight} --global \
32+
${_ct}Install global\n${_ctb_reset}"
33+
printf " ${_ctb_highlight}-s${_ct},${_ctb_highlight} --schemefile <SCHEME_FILE> \
34+
${_ct}Use the specified scheme file\n${_ctb_reset}"
35+
}
36+
37+
__cleanup() {
38+
trap '' SIGINT SIGTERM
39+
unset -v _ct_error _ct_success _ct_warning _ct_highlight _ct_primary _ct
40+
unset -v _ctb_error _ctb_success _ctb_warning _ctb_highlight _ctb_primary _ctb _c_reset
41+
unset -v NORD_TERMINIX_SCRIPT_OPTS COLOR_SCHEME_FILE VERBOSE GLOBAL_INSTALL LOCAL_INSTALL
42+
unset -f __help __cleanup __log_error __log_success __log_warning __log_info
43+
unset -f __validate_file __local_install __global_install
44+
}
45+
46+
__log_error() {
47+
printf "${_ctb_error}[ERROR] ${_ct}$1${_c_reset}\n"
48+
}
49+
50+
__log_success() {
51+
printf "${_ctb_success}[OK] ${_ct}$1${_c_reset}\n"
52+
}
53+
54+
__log_warning() {
55+
printf "${_ctb_warning}[WARN] ${_ct}$1${_c_reset}\n"
56+
}
57+
58+
__log_info() {
59+
printf "${_ctb}[INFO] ${_ct}$1${_c_reset}\n"
60+
}
61+
62+
__summary_success() {
63+
if [ $GLOBAL_INSTALL = true ]; then
64+
__log_success "Global installation completed"
65+
else
66+
__log_success "Local installation completed"
67+
fi
68+
__cleanup
69+
exit 0
70+
}
71+
72+
__summary_error() {
73+
__log_error "An error occurred during the installation!"
74+
__log_error "Exit code: $1"
75+
__cleanup
76+
exit 1
77+
}
78+
79+
__global_install() {
80+
__validate_file
81+
if [ ! -d $GLOBAL_INSTALL_DIR ]; then
82+
sudo mkdir -p $GLOBAL_INSTALL_DIR
83+
if [ $? -eq 0 ]; then
84+
if [ $VERBOSE = true ]; then __log_info "Created global directory $GLOBAL_INSTALL_DIR"; fi
85+
else
86+
__log_error "Could not create global directory $GLOBAL_INSTALL_DIR"
87+
__summary_error 1
88+
fi
89+
fi
90+
sudo cp -f $COLOR_SCHEME_FILE $GLOBAL_INSTALL_DIR
91+
if [ $? -eq 0 ]; then
92+
if [ $VERBOSE = true ]; then __log_success "Copied color scheme file to $GLOBAL_INSTALL_DIR"; fi
93+
__summary_success
94+
else
95+
__log_error "Could not copy color scheme file to $GLOBAL_INSTALL_DIR"
96+
__summary_error 1
97+
fi
98+
}
99+
100+
__local_install() {
101+
__validate_file
102+
if [ ! -d $LOCAL_INSTALL_DIR ]; then
103+
mkdir -p $LOCAL_INSTALL_DIR
104+
if [ $? -eq 0 ]; then
105+
if [ $VERBOSE = true ]; then __log_info "Created local directory $LOCAL_INSTALL_DIR"; fi
106+
else
107+
__log_error "Could not create local directory $LOCAL_INSTALL_DIR"
108+
__summary_error 1
109+
fi
110+
fi
111+
cp -f $COLOR_SCHEME_FILE $LOCAL_INSTALL_DIR
112+
if [ $? -eq 0 ]; then
113+
if [ $VERBOSE = true ]; then __log_success "Copied color scheme file to $LOCAL_INSTALL_DIR"; fi
114+
__summary_success
115+
else
116+
__log_error "Could not copy color scheme file to $LOCAL_INSTALL_DIR"
117+
__summary_error 1
118+
fi
119+
}
120+
121+
__validate_file() {
122+
if [ ! -f $COLOR_SCHEME_FILE ]; then
123+
__log_error "Color scheme file not found: $COLOR_SCHEME_FILE"
124+
__summary_error 1
125+
fi
126+
}
127+
128+
trap "printf '${_ctb_error}User aborted.${_ctb_reset}\n' && exit 1" SIGINT SIGTERM
129+
130+
NORD_TERMINIX_SCRIPT_OPTS=`getopt -o vghs: --long verbose,global,help,schemefile: -n 'install.sh' -- "$@"`
131+
COLOR_SCHEME_FILE=src/json/nord.json
132+
VERBOSE=false
133+
GLOBAL_INSTALL=false
134+
LOCAL_INSTALL_DIR=~/.config/terminix/schemes
135+
GLOBAL_INSTALL_DIR=/usr/share/terminix/schemes
136+
137+
eval set -- "$NORD_TERMINIX_SCRIPT_OPTS"
138+
while true; do
139+
case "$1" in
140+
-v | --verbose ) VERBOSE=true; shift ;;
141+
-g | --global ) GLOBAL_INSTALL=true; shift ;;
142+
-h | --help ) __help; exit 0; break ;;
143+
-s | --schemefile )
144+
COLOR_SCHEME_FILE="$2"; shift 2 ;;
145+
-- ) shift; break ;;
146+
* ) break ;;
147+
esac
148+
done
149+
150+
if [ $GLOBAL_INSTALL = true ]; then
151+
__global_install
152+
else
153+
__local_install
154+
fi
155+
156+
__cleanup
157+
exit 0

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "nord-terminix",
3+
"title": "Nord Terminix",
4+
"version": "0.1.0",
5+
"description": "A arctic, north-bluish clean and elegant Terminix color scheme.",
6+
"author": {
7+
"name": "Arctic Ice Studio",
8+
"email": "[email protected]",
9+
"url": "http://arcticicestudio.com"
10+
},
11+
"homepage": "https://github.com/arcticicestudio/nord-terminix",
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/arcticicestudio/nord-terminix.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/arcticicestudio/nord-terminix/issues"
18+
},
19+
"license" : "(Apache-2.0 AND CC-BY-SA-4.0)",
20+
"keywords": [
21+
"nord",
22+
"arctic",
23+
"north",
24+
"bluish",
25+
"clean",
26+
"elegant",
27+
"terminix",
28+
"color",
29+
"scheme"
30+
],
31+
"devDependencies": {
32+
"eslint": "3.10.2",
33+
"eslint-plugin-json": "1.2.0"
34+
},
35+
"scripts": {
36+
"lint": "eslint src/json/nord.json"
37+
}
38+
}

src/json/nord.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "Nord",
3+
"comment": "A arctic, north-bluish clean and elegant Terminix color scheme.",
4+
"use-theme-colors": false,
5+
"foreground-color": "#D8DEE9",
6+
"background-color": "#2E3440",
7+
"palette": [
8+
"#3B4252",
9+
"#BF616A",
10+
"#A3BE8C",
11+
"#EBCB8B",
12+
"#81A1C1",
13+
"#B48EAD",
14+
"#88C0D0",
15+
"#E5E9F0",
16+
"#4C566A",
17+
"#BF616A",
18+
"#A3BE8C",
19+
"#EBCB8B",
20+
"#81A1C1",
21+
"#B48EAD",
22+
"#8FBCBB",
23+
"#ECEFF4"
24+
]
25+
}

0 commit comments

Comments
 (0)