Skip to content

Commit

Permalink
Merge pull request #29 from BassT/intro-sass
Browse files Browse the repository at this point in the history
Introduce style.scss. Add npm task 'build-css'. Update README and travis config file.
  • Loading branch information
valentinz committed Nov 2, 2015
2 parents 3bed2ff + ac544f0 commit 738eedf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ npm-debug.log
node_modules
/phantomjsdriver.log
test/.browserstackrc
test/browserstacklocal
test/browserstacklocal
build
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: node_js
node_js: stable

install:
- npm install
- $(npm bin)/bower install

script:
- npm run lint
- npm test
- npm run browsertest
- npm run postinstall-deploy
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ LICENSE file.
7. Run the index.html in a browser of your choice.
Be careful about cross-site script detection, since the server is not running at the same domain as your client.
Maybe you have to use a proxy server like nginx.
If `style.css` is missing, run `npm run build-css` first to transpile SASS to CSS.

8. Start a python Webserver with:
<pre>python -m SimpleHTTPServer</pre>
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "come2help",
"version": "0.0.1",
"authors": [
"Valentin Zickner <[email protected]>"
"Valentin Zickner <[email protected]>",
"Sebastian Richter <[email protected]>"
],
"main": "index.html",
"license": "GPL",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script src="js/controller.js"></script>
<script src="js/i18n.js"></script>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="build/css/style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
}, {
"name": "Joshua Gleitze",
"email": "[email protected]"
}, {
"name": "Sebastian Richter",
"email": "[email protected]"
}],
"license": "GPL-3.0",
"repository": {
Expand Down Expand Up @@ -42,6 +45,10 @@
"unzip": "^0.1.11"
},
"scripts": {
"postinstall-deploy": "npm run build-css && npm run lint && npm test && npm run browsertest",
"postinstall-dev": "npm run build-css && npm run lint && npm run watch-css",
"build-css": "node-sass css --output build/css",
"watch-css": "node-sass -w -r css --output build/css",
"test": "mocha --slow 2000",
"browsertest": "export BROWSER=TRUE && mocha --slow 30000",
"lint": "eslint js/**/*.js test/**/*.js"
Expand Down

0 comments on commit 738eedf

Please sign in to comment.