Skip to content

Commit 76aa14e

Browse files
committed
Initial commit
0 parents  commit 76aa14e

17 files changed

+533
-0
lines changed

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**/.vuepress/dist/**
2+
/.idea/
3+
**/.idea/**
4+
*.iml
5+
*.ipr
6+
*.iws
7+
*.log*
8+
/out/
9+
**/out/**
10+
/build/
11+
**/build/**
12+
/target/
13+
**/target/**
14+
**/node_modules/
15+
.DS_Store
16+
17+
# Project exclude paths
18+
/.gradle/
19+
/buildSrc/.gradle/

.travis.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
notifications:
2+
email: false
3+
git:
4+
quiet: true
5+
depth: false
6+
language: java
7+
jdk: openjdk11
8+
node_js: lts/*
9+
python: 3.7
10+
matrix:
11+
include:
12+
- python: 3.7
13+
services:
14+
- xvfb
15+
- docker
16+
addons:
17+
apt:
18+
update: false
19+
packages:
20+
- jq
21+
- bash
22+
- curl
23+
- tree
24+
- docker-ce
25+
- libxml2-utils
26+
- libappindicator1
27+
- fonts-liberation
28+
- google-chrome-stable
29+
- python3-setuptools
30+
- python3-pip
31+
install: true
32+
before_install:
33+
- export CHROME_BIN=/usr/bin/google-chrome
34+
- export DISPLAY=:99.0
35+
#
36+
- |
37+
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
38+
mkdir -p ${HOME}/.local/daggerok/bash-functions/master ;
39+
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
40+
fi
41+
source ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
42+
- stop_any 80 5432 8080 8081 8082 8083 8084 8085 8086 8087 8088
43+
#
44+
- export PATH=$HOME/.local/bin:$PATH
45+
- pip -V
46+
- docker-compose version
47+
- pip3 install --user --upgrade pip
48+
- pip install --user --upgrade httpie docker-compose
49+
- http --version --debug
50+
- pip -V
51+
#
52+
- stop_any 80 8080 5432
53+
- docker-compose version
54+
env:
55+
global:
56+
- TERM=dumb
57+
jobs:
58+
include:
59+
- stage: test
60+
name: gradle opernjdk11
61+
jdk: openjdk11
62+
script: ./gradlew
63+
- stage: test
64+
jdk: openjdk8
65+
name: gradle opernjdk8
66+
script: ./gradlew
67+
- stage: deploy
68+
name: VuePress documentation deployment
69+
node_js: lts/*
70+
script: skip
71+
before_deploy:
72+
- cd $TRAVIS_BUILD_DIR/docs && npm i
73+
- cd $TRAVIS_BUILD_DIR/docs && npm run gh-pages
74+
env:
75+
# travis encrypt GITHUB_TOKEN=...
76+
- secure: "TBeQ/IHObOLCf8LpoKkhAM5D78UzAW4K24tB4ma4cP3jwFCdV2aPUEBAvdD3SqVeVt+qPZvpdQUnhF2FFi/xlFN2eM0J570EOPbIc1u96l/izXTASX6ogHYtSKS1QdC2Zk6fQvj4xuR2q6NcBsv87RXf7vTPROcqB+1TwrBsvz5k+xPh4SnqzwoCur/zKL3orNyz/Oe5rIZ8gXzxkzd9nqyn+cYZD4/xodWLM1GORQD3C0KDMCQ/aE/TTU7s9Dlfj2tt4h5xIEsZp0zvDgNK15GGntNcjEBCH5CHiPeFfEj76DTcTcvjoUf0uHoawpPaXGQ+8booxqdORbtsUtlKXGQWptvOr2XHbZLHAunesfQgeBKwU89b96h3iyJYiJD+3rDnydRx73Re3QuLLYGRvx6oL60hXN6G7GQL1rYiVSaT5SectMdFWbfj1X/2/S48gnsvPzAJKd2Yj7ILayjfZgYUaM65SF9bN40yNno0qxE6VDkg/4m/0fS3WLqoxz+8hY/Z/5pADRgic4/auuYluyFus18NFFdlvY1Vl/NtD0S8xz+j3LYOD+ObqSIvGc/roWZdFtHf1xEfiiAP1DtOaIs+7dXt8PWuuVTry2/wt/2SN/FqDcfzs7IbZIvGz37oZDg0mZkgYJ5lsHC9PRSybQVSB+YGFD/+eOpglSeE38Y="
77+
deploy: &pages
78+
provider: pages
79+
github-token: "$GITHUB_TOKEN"
80+
local-dir: docs/.vuepress/dist
81+
# require gh-pages to be created manually first before deployment!
82+
target_branch: gh-pages
83+
skip_cleanup: true
84+
keep-history: true
85+
on:
86+
branch: master
87+
condition: "$TRAVIS_PULL_REQUEST = false"
88+
cache:
89+
directories:
90+
- ./docs/node_modules
91+
- ~/.local/daggerok
92+
- ~/.docker
93+
- ~/.n*
94+
packages: true
95+
npm: true

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Maksim Kostromin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Boot Your Kotlin Coroutine!
2+
3+
Documentation is deployed on [GitHub Pages](https://daggerok.github.io/boot-your-coroutines/)

build.gradle.kts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
plugins {
2+
idea
3+
base
4+
}
5+
6+
allprojects {
7+
group = Globals.groupId
8+
version = Globals.version
9+
}
10+
11+
defaultTasks("clean", "build")

buildSrc/build.gradle.kts

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
idea
3+
`kotlin-dsl`
4+
}
5+
6+
idea {
7+
module {
8+
isDownloadJavadoc = false
9+
isDownloadSources = false
10+
}
11+
}
12+
13+
repositories {
14+
gradlePluginPortal()
15+
}
16+
17+
kotlinDslPluginOptions {
18+
experimentalWarning.set(false)
19+
}

buildSrc/src/main/kotlin/Globals.kt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object Globals {
2+
const val groupId = "com.github.daggerok.coroutines"
3+
const val artifactId = "boot-your-coroutines"
4+
const val version = "1.0.0-SNAPSHOT"
5+
}

docs/.vuepress/config.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const baseHref = !!process.env.BASE_HREF ? process.env.BASE_HREF : '/';
2+
module.exports = {
3+
head: [
4+
['link', { rel: 'icon', href: '/favicon.ico' }]
5+
],
6+
base: baseHref,
7+
themeConfig: {
8+
repo: 'daggerok/boot-your-coroutines',
9+
// lastUpdated: 'Last Updated',
10+
},
11+
markdown: {
12+
lineNumbers: true,
13+
extendMarkdown: md => {
14+
// awesome md enhancer! partials includes!
15+
md.use(require('markdown-it-vuepress-code-snippet-enhanced'))
16+
}
17+
},
18+
};

docs/.vuepress/public/favicon.ico

1.12 KB
Binary file not shown.

docs/.vuepress/styles/index.styl

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* https://vuepress.vuejs.org/theme/inheritance.html#access-parent-theme */
2+
//.theme-default-content
3+
// max-width 99% !important
4+
.content:not(.custom)
5+
max-width 99% !important
6+
7+
@media only screen and (min-device-width: 768px)
8+
body, hmtl
9+
zoom 135%
10+
body > .content
11+
max-width 99% !important

docs/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Boot Your Kotlin Coroutine!
2+
3+
[[toc]]
4+
5+
## build
6+
7+
```bash
8+
./gradlew
9+
```

docs/package.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "boot-your-coroutines",
3+
"version": "1.0.0",
4+
"description": "Boot Your Kotlin Coroutines",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "vuepress dev --port 5000 .",
8+
"build": "vuepress build --no-cache .",
9+
"gh-pages": "cross-env BASE_HREF='/boot-your-coroutines/' npm run build",
10+
"test": "npm run build"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/daggerok/boot-your-coroutines.git"
15+
},
16+
"keywords": [],
17+
"author": "",
18+
"license": "ISC",
19+
"bugs": {
20+
"url": "https://github.com/daggerok/boot-your-coroutines/issues"
21+
},
22+
"homepage": "https://github.com/daggerok/boot-your-coroutines#readme",
23+
"devDependencies": {
24+
"cross-env": "6.0.3",
25+
"markdown-it-vuepress-code-snippet-enhanced": "1.0.1",
26+
"vuepress": "1.2.0"
27+
}
28+
}

gradle/wrapper/gradle-wrapper.jar

54.3 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)