File tree 7 files changed +87
-0
lines changed
7 files changed +87
-0
lines changed Original file line number Diff line number Diff line change
1
+ node_modules
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
1
+ html , body {
2
+ height : 100% ; }
Original file line number Diff line number Diff line change
1
+ html , body {
2
+ height : 100% ;
3
+ }
You can’t perform that action at this time.
0 commit comments