Skip to content

Commit 91dba7c

Browse files
committed
Add CSS Theme app. | And a commit that I don't know the reason of... (C) whatthecommit.com
1 parent 8d9154a commit 91dba7c

File tree

7 files changed

+137
-0
lines changed

7 files changed

+137
-0
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
name: CI
22
on: [push]
33
jobs:
4+
css-theme:
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-theme (${{ 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-theme && npm i
33+
cd $GITHUB_WORKSPACE/css-theme && npm start
34+
cd $GITHUB_WORKSPACE/css-theme && npm run logs &
35+
wait-port 1234
36+
http get :1234
37+
cd $GITHUB_WORKSPACE/css-theme && npm stop
438
basic-grid:
539
strategy:
640
matrix:

css-theme/package.json

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "css-theme-app",
3+
"version": "1.0.0",
4+
"description": "Grid CSS 20200327",
5+
"main": "index.js",
6+
"scripts": {
7+
"dev": "parcel src/index.html --no-cache",
8+
"prebuild": "rimraf dist",
9+
"build": "parcel build src/index.html --no-cache",
10+
"preserve": "npm run build",
11+
"serve": "browser-sync start --no-notify --single -s ./dist/",
12+
"start": "pm2 start 'npm run dev' --name app",
13+
"restart": "pm2 restart app",
14+
"stop": "pm2 kill",
15+
"logs": "pm2 logs",
16+
"gh": "npm run build -- --public-url /css-examples/",
17+
"predeploy": "npm run gh",
18+
"deploy": "gh-pages -e ./ -d ./dist -s '{*.*,.*,*,**}' --branch gh-pages --dotfiles=true -m \"Github Pages $(date +%Y-%m-%d) deployment\""
19+
},
20+
"keywords": [
21+
"ncp",
22+
"pm2",
23+
"scss",
24+
"rimraf",
25+
"parcel",
26+
"gh-pages",
27+
"webfontloader",
28+
"css-grid",
29+
"basic-grid",
30+
"auto-fit",
31+
"auto-fill"
32+
],
33+
"author": "Maksim Kostromin <[email protected]> (https://github.com/daggerok)",
34+
"license": "MIT",
35+
"devDependencies": {
36+
"@types/node": "13.9.0",
37+
"@types/webfontloader": "1.6.29",
38+
"babel-core": "^6.26.3",
39+
"babel-preset-env": "1.7.0",
40+
"gh-pages": "2.2.0",
41+
"ncp": "2.0.0",
42+
"parcel-bundler": "1.12.4",
43+
"pm2": "4.2.3",
44+
"rimraf": "3.0.2",
45+
"sass": "1.26.3",
46+
"typescript": "3.8.3",
47+
"webfontloader": "1.6.28"
48+
},
49+
"babel": {
50+
"presets": [
51+
[
52+
"env",
53+
{
54+
"targets": {
55+
"browsers": [
56+
"last 2 versions",
57+
"safari >= 7",
58+
"chrome >= 36",
59+
"firefox >= 28"
60+
]
61+
}
62+
}
63+
]
64+
]
65+
}
66+
}

css-theme/src/app.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as WebFont from 'webfontloader';
2+
3+
WebFont.load({
4+
google: {
5+
families: [
6+
'Roboto',
7+
],
8+
},
9+
});

css-theme/src/base.scss

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
body,
2+
html {
3+
height: 100vh;
4+
}
5+
6+
* {
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
body {
12+
font-family: 'Roboto', sans-serif;
13+
}

css-theme/src/favicon.ico

1.12 KB
Binary file not shown.

css-theme/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+
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<link rel="stylesheet" href="./base.scss">
9+
<link rel="stylesheet" href="./main.scss">
10+
<title>css theme</title>
11+
</head>
12+
<body>
13+
<script src="./app.ts"></script>
14+
</body>
15+
</html>

css-theme/src/main.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)