Skip to content

Commit 300fe34

Browse files
committed
better grepping (C) whatthecommit.com
1 parent 265633d commit 300fe34

File tree

8 files changed

+119
-14
lines changed

8 files changed

+119
-14
lines changed

.github/workflows/ci.yml

+34-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,46 @@
11
name: CI
22
on: [push]
33
jobs:
4+
css-gradient:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest]
8+
nodejs-version: [12]
9+
python-version: [3.8]
10+
runs-on: ${{ matrix.os }}
11+
name: css-gradient ${{ matrix.os }} OS, python ${{ matrix.python-version }}, NodeJS ${{ matrix.nodejs-version }}
12+
steps:
13+
- name: Set up NodeJS ${{ matrix.nodejs-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.nodejs-version }}
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install / upgrade pip
22+
run: python -m pip install --upgrade pip setuptools
23+
- name: Install HTTPie
24+
run: pip install --upgrade httpie
25+
- name: Install required npm packages globally
26+
run: npm install -g wait-port
27+
- name: Clone git project
28+
uses: actions/checkout@v2
29+
- name: Install, run, wait and test
30+
shell: bash
31+
run: |
32+
cd $GITHUB_WORKSPACE/css-gradient && npm i
33+
cd $GITHUB_WORKSPACE/css-gradient && npm run dev &
34+
wait-port 1234
35+
http get :1234
436
css-correct-way-to-inline-blocks-with-flex:
537
strategy:
638
matrix:
739
os: [ubuntu-latest]
840
nodejs-version: [12]
941
python-version: [3.8]
1042
runs-on: ${{ matrix.os }}
11-
name: ${{ matrix.os }} OS, python ${{ matrix.python-version }}, NodeJS ${{ matrix.nodejs-version }}
43+
name: css-correct-way-to-inline-blocks-with-flex ${{ matrix.os }} OS, python ${{ matrix.python-version }}, NodeJS ${{ matrix.nodejs-version }}
1244
steps:
1345
- name: Set up NodeJS ${{ matrix.nodejs-version }}
1446
uses: actions/setup-node@v1
@@ -45,7 +77,7 @@ jobs:
4577
nodejs-version: [12]
4678
python-version: [3.8]
4779
runs-on: ${{ matrix.os }}
48-
name: ${{ matrix.os }} OS, python ${{ matrix.python-version }}, NodeJS ${{ matrix.nodejs-version }}
80+
name: css-boxing-model-and-layout-basics ${{ matrix.os }} OS, python ${{ matrix.python-version }}, NodeJS ${{ matrix.nodejs-version }}
4981
steps:
5082
- name: Set up NodeJS ${{ matrix.nodejs-version }}
5183
uses: actions/setup-node@v1

.travis.yml

+24-12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ before_install:
2929
- stop_any 80 3000 5000 8080 5432
3030
jobs:
3131
include:
32+
- stage: test
33+
name: css-gradient
34+
env:
35+
- MY_PROJECT_NAME=css-gradient
36+
before_script:
37+
- cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm i
38+
- cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm start
39+
- wait_for 1234
40+
script:
41+
- http :1234
42+
- http :1234/
43+
after_script: cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm stop
3244
- stage: test
3345
name: css-correct-way-to-inline-blocks-with-flex
3446
env:
@@ -95,18 +107,18 @@ jobs:
95107
- cd $TRAVIS_BUILD_DIR/random-tachyons-button-styling
96108
- npm i
97109
- npm run predeploy
98-
- stage: test
99-
name: parcel-starter
100-
script:
101-
- cd $TRAVIS_BUILD_DIR/parcel-starter
102-
- npm i
103-
- npm run predeploy
104-
- stage: test
105-
name: simple-starter
106-
script:
107-
- cd $TRAVIS_BUILD_DIR/simple-starter
108-
- npm i
109-
- npm run predeploy
110+
#- stage: test
111+
# name: parcel-starter
112+
# script:
113+
# - cd $TRAVIS_BUILD_DIR/parcel-starter
114+
# - npm i
115+
# - npm run predeploy
116+
#- stage: test
117+
# name: simple-starter
118+
# script:
119+
# - cd $TRAVIS_BUILD_DIR/simple-starter
120+
# - npm i
121+
# - npm run predeploy
110122
- stage: deploy
111123
name: GitHub pages deploy
112124
script: skip

css-gradient/package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "nestjs-example",
3+
"version": "0.0.1",
4+
"description": "Learn css box model and simple layout",
5+
"author": "daggerok",
6+
"license": "MIT",
7+
"scripts": {
8+
"gh": "parcel build --public-url='/css-examples/' src/index.html",
9+
"build": "parcel build src/index.html",
10+
"dev": "parcel src/index.html",
11+
"start": "pm2 start 'npm run dev' --name app",
12+
"restart": "pm2 restart app",
13+
"stop": "pm2 kill",
14+
"logs": "pm2 logs"
15+
},
16+
"keywords": [
17+
"pm2",
18+
"parcel"
19+
],
20+
"devDependencies": {
21+
"parcel-bundler": "1.12.4",
22+
"pm2": "4.2.3"
23+
}
24+
}

css-gradient/src/.nojekyll

Whitespace-only changes.

css-gradient/src/app.js

Whitespace-only changes.

css-gradient/src/favicon.ico

1.12 KB
Binary file not shown.

css-gradient/src/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>css gradient</title>
8+
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon"/>
9+
<link rel="stylesheet" href="./main.css"/>
10+
</head>
11+
<body>
12+
13+
<script src="./app.js"></script>
14+
</body>
15+
</html>

css-gradient/src/main.css

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* defaults: don't touch it */
2+
3+
body,
4+
html,
5+
h3 {
6+
/* margin: 0; <- do not do that! */
7+
padding: 0;
8+
border-width: 0;
9+
}
10+
11+
/* custom: start here */
12+
13+
body {
14+
font-family: sans-serif;
15+
font-size: 1.1em;
16+
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f24dc6+0,207ce5+100 */
17+
background: #d74aac; /* Old browsers */
18+
background: -moz-linear-gradient(left, #d74aac 0%, #207ce5 100%); /* FF3.6-15 */
19+
background: -webkit-linear-gradient(left, #d74aac 0%,#207ce5 100%); /* Chrome10-25,Safari5.1-6 */
20+
background: linear-gradient(to right, #d74aac 0%,#207ce5 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
21+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f24dc6', endColorstr='#207ce5',GradientType=1 ); /* IE6-9 */
22+
}

0 commit comments

Comments
 (0)