Skip to content

Commit be7ae3e

Browse files
committed
Build less using gulp
1 parent 4f43516 commit be7ae3e

File tree

9 files changed

+32
-3
lines changed

9 files changed

+32
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Betty](https://github.com/SamyPesse/betty/blob/master/assets/betty.png?raw=true)
1+
![Betty](https://github.com/SamyPesse/betty/blob/master/public/images/betty.png?raw=true)
22

33
Betty (or Ben for the ones who prefer a male receiptionist) is your own cutomizable receptionist, to forward call and messages to your team anywhere in the world. It's particulary usefull if your organization is operating in the US but based in another countries.
44

@@ -32,7 +32,7 @@ A team member can also contact Betty to get access to th organization directory
3232

3333
### The Receptionists Team
3434

35-
![Team](https://github.com/SamyPesse/betty/blob/master/assets/team.png?raw=true)
35+
![Team](https://github.com/SamyPesse/betty/blob/master/public/images/team.png?raw=true)
3636

3737
Betty can be configured to use another profile (voice, language, sentencesm etc.). Change your receiptionist by changing the `PROFILE` environment variable (see below).
3838

gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var gulp = require('gulp');
2+
var less = require('gulp-less');
3+
var path = require('path');
4+
5+
gulp.task('less', function () {
6+
return gulp.src('./public/less/main.less')
7+
.pipe(less())
8+
.pipe(gulp.dest('./public/css'));
9+
});
10+
11+
12+
gulp.task('default', ['less']);

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
},
2222
"devDependencies": {
2323
"mocha": "2.2.4",
24-
"chai": "2.2.0"
24+
"chai": "2.2.0",
25+
"gulp": "3.8.11",
26+
"gulp-less": "3.0.3"
2527
},
2628
"scripts": {
2729
"test": "mocha --reporter list"
File renamed without changes.

public/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.container {
2+
max-width: 800px;
3+
width: 100%;
4+
margin: 0px auto;
5+
}
File renamed without changes.

public/less/main.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@import "./variables.less";
2+
3+
.container {
4+
max-width: @container-width;
5+
width: 100%;
6+
margin: 0px auto;
7+
}

public/less/variables.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@container-width: 800px;

views/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<link rel="stylesheet" href="css/styles.css?v=1.0">
77
</head>
88
<body>
9+
<div class="container">
910
{% block body %}{% endblock %}
11+
</div>
1012
</body>
1113
</html>

0 commit comments

Comments
 (0)