Skip to content

Commit

Permalink
Commit initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nangui committed May 28, 2019
0 parents commit 23e1986
Show file tree
Hide file tree
Showing 9 changed files with 5,589 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules

44 changes: 44 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const { src, dest, parallel, watch, task} = require('gulp');
const browserSync = require('browser-sync').create();
const sass = require('gulp-sass');
const minifyCSS = require('gulp-csso');
const concat = require('gulp-concat');

function style() {
return src([
'node_modules/bootstrap/scss/bootstrap.scss',
'src/scss/*.scss'
])
.pipe(sass())
.pipe(minifyCSS())
.pipe(dest("src/css"))
.pipe(browserSync.stream());
}


function js() {
return src([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/popper.js/dist/umd/popper.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js'
], { sourcemaps: true })
.pipe(concat('app.min.js'))
.pipe(dest("src/js", { sourcemaps: true }))
.pipe(browserSync.stream());
}

function watchFile() {
browserSync.init({
server: {
baseDir: './src'
},
browser: 'chrome'
});
watch('./src/scss/**/*.scss', style);
watch('./src/**/*.html').on('change', browserSync.reload);
watch('./src/js/**/*.js').on('change', browserSync.reload);
}

exports.style = style;
exports.js = js;
exports.watchFile = parallel(js, style, watchFile);
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "splitlogin",
"version": "1.0.0",
"description": "Bootstrap Login UI",
"main": "index.js",
"author": "Adonai Nangui<adonainangui03@gmail.com>",
"scripts": {
"dev": "gulp watchFile"
},
"license": "MIT",
"dependencies": {
"bootstrap": "^4.3.1",
"browser-sync": "^2.26.5",
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
"gulp-csso": "^3.0.1",
"gulp-imagemin": "^5.0.3",
"gulp-sass": "^4.0.2",
"jquery": "^3.4.1",
"popper.js": "^1.15.0"
}
}
Empty file added src/css/app.css
Empty file.
7 changes: 7 additions & 0 deletions src/css/bootstrap.css

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" value="Adonaï Nangui">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/app.css">
<title>Bootstrap Login UI</title>
</head>
<body>


<script src="js/app.min.js"></script>
</body>
</html>
16 changes: 16 additions & 0 deletions src/js/app.min.js

Large diffs are not rendered by default.

Empty file added src/scss/app.scss
Empty file.
Loading

0 comments on commit 23e1986

Please sign in to comment.