Skip to content

Commit d4500e8

Browse files
committed
Initialize Project
1 parent fd1e533 commit d4500e8

File tree

7 files changed

+87
-0
lines changed

7 files changed

+87
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

gulpfile.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const gulp = require('gulp');
2+
const del = require('del');
3+
const sass = require('gulp-sass');
4+
5+
// Clean the contents of the distribution directory
6+
gulp.task('clean', function() {
7+
return del('src/public/**/*');
8+
});
9+
10+
// Compile Sass
11+
gulp.task('sass', function() {
12+
return gulp.src('src/scss/**/*.scss')
13+
.pipe(sass().on('error', sass.logError))
14+
.pipe(gulp.dest('src/public/css'));
15+
});
16+
17+
gulp.task('default', ['sass']);
18+
19+
var watcher = gulp.watch(['src/scss/**/*.scss'], ['sass']);
20+
watcher.on('change', function(event) {
21+
console.log('File ' + event.path + ' was ' + event.type);
22+
});

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "programming-club-signup",
3+
"version": "1.0.0",
4+
"description": "Signup website for MICDS Programming Club",
5+
"main": "src/index.js",
6+
"scripts": {
7+
"start": "concurrently \"gulp\" \"nodemon\" ",
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/michaelgira23/Programming-Club-Signup.git"
13+
},
14+
"keywords": [
15+
"MICDS",
16+
"Programming",
17+
"Club"
18+
],
19+
"author": "Michael Gira",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/michaelgira23/Programming-Club-Signup/issues"
23+
},
24+
"homepage": "https://github.com/michaelgira23/Programming-Club-Signup#readme",
25+
"dependencies": {
26+
"express": "^4.14.0",
27+
"socket.io": "^1.4.8"
28+
},
29+
"devDependencies": {
30+
"del": "^2.2.2",
31+
"gulp": "^3.9.1",
32+
"gulp-sass": "^2.3.2"
33+
}
34+
}

src/html/index.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>MICDS Programming Club</title>
5+
</head>
6+
<body>
7+
<div class="container">
8+
<form></form>
9+
</div>
10+
</body>
11+
</html>

src/index.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const port = 420;
2+
3+
const express = require('express');
4+
const app = express();
5+
6+
app.use('/', express.static(__dirname + '/public'));
7+
8+
app.get('/', function(req, res) {
9+
res.end('hello world');
10+
});
11+
12+
app.listen(port, function() {
13+
console.log('Server listening on *:' + port);
14+
});

src/public/css/styles.css

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
html, body {
2+
height: 100%; }

src/scss/styles.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
html, body {
2+
height: 100%;
3+
}

0 commit comments

Comments
 (0)