aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-04 22:52:45 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-04-04 22:52:45 +0900
commita0a4d093497a4e35583afa36d59dff40799b138f (patch)
tree089e0dec513f7816562a422a352402a5bcb4c71d
parent765c2f4ff651d8925a2d86b536665a88f8a53b66 (diff)
downloadpoe-a0a4d093497a4e35583afa36d59dff40799b138f.tar.gz
frontend: Sass (SCSS) をつかうことにした
-rw-r--r--frontend/Rakefile4
-rw-r--r--frontend/index.html2
-rw-r--r--frontend/package.json5
-rw-r--r--frontend/poe.scss (renamed from frontend/poe.css)0
4 files changed, 8 insertions, 3 deletions
diff --git a/frontend/Rakefile b/frontend/Rakefile
index 6625bd8..a651a63 100644
--- a/frontend/Rakefile
+++ b/frontend/Rakefile
@@ -78,5 +78,7 @@ end
task :compile do
puts "Running tsc...."
- system "tsc" || exit(1)
+ system "npm tsc" || exit(1)
+ puts "Running node-sass...."
+ system "npm sass" || exit(1)
end
diff --git a/frontend/index.html b/frontend/index.html
index 0fb356d..600a420 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -5,7 +5,7 @@
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>loading... - poe</title>
<link rel="stylesheet" href="dist/codemirror.css">
- <link rel="stylesheet" href="poe.css">
+ <link rel="stylesheet" href="dist/poe.css">
<script src="dist/es6-shim.min.js"></script>
<script src="dist/Reflect.js"></script>
<script src="dist/zone.min.js"></script>
diff --git a/frontend/package.json b/frontend/package.json
index 80a26f1..18b3683 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -3,9 +3,11 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
- "start": "concurrently \"npm run tsc:w\" \"npm run lite\"",
+ "start": "concurrently \"npm run tsc:w\" \"npm run sass:w\" \"npm run lite\"",
"tsc": "tsc",
"tsc:w": "tsc -w",
+ "sass": "node-sass -x poe.scss dist/poe.css",
+ "sass:w": "node-sass -x -w poe.scss dist/poe.css",
"lite": "lite-server",
"typings": "typings",
"postinstall": "typings install"
@@ -24,6 +26,7 @@
"clean-css": "^3.4.11",
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
+ "node-sass": "^3.4.2",
"proxy-middleware": "^0.15.0",
"systemjs-builder": "^0.15.14",
"typescript": "^1.8.9",
diff --git a/frontend/poe.css b/frontend/poe.scss
index 4ec0f80..4ec0f80 100644
--- a/frontend/poe.css
+++ b/frontend/poe.scss