j5c8k6m8 / css_real_calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ref

https://qiita.com/j5c8k6m8/items/a86ee1e50472fbc6b3d1

docker run

docker build -t css_real_calculator .
docker run --rm -it -v $PWD:/app/css_real_calculator css_real_calculator ash

compile(in docker)

cd /app/css_real_calculator
node-sass _index.scss  _index.css
pug -P _index.pug

echo "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>css real calculator</title>
</head>
<style type=\"text/css\">" > index.html
cat _index.css >> index.html
echo "</style>
</head>
<body>" >> index.html
cat _index.html >> index.html
echo "</body>
</html>
" >> index.html

rm _index.css
rm _index.html

About

License:MIT License


Languages

Language:HTML 99.7%Language:CSS 0.3%Language:Dockerfile 0.0%