Skip to content

Commit

Permalink
dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtmiller committed Apr 1, 2017
1 parent b83d833 commit 873d9ea
Show file tree
Hide file tree
Showing 18 changed files with 13,941 additions and 30 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bower_components
node_modules
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

The MIT License (MIT)

Copyright (c) 2013-2017 Blackrock Digital LLC.
Copyright (c) 2013-2017 Blackrock Digital LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 35 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var pkg = require('./package.json');

// Copy vendor files from /node_modules into /vendor
// NOTE: requires `npm install` before running!
gulp.task('copy', function() {
gulp.src(['node_modules/bootstrap/dist/**/*', '!**/npm.js', '!**/bootstrap-theme.*', '!**/*.map'])
.pipe(gulp.dest('vendor/bootstrap'))

gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.min.js'])
.pipe(gulp.dest('vendor/jquery'))

gulp.src(['node_modules/tether/dist/js/*.js'])
.pipe(gulp.dest('vendor/tether'))
})

// Default task
gulp.task('default', ['copy']);

// Configure the browserSync task
gulp.task('browserSync', function() {
browserSync.init({
server: {
baseDir: ''
},
})
})

// Dev task with browserSync
gulp.task('dev', ['browserSync'], function() {
// Reloads the browser whenever HTML or CSS files change
gulp.watch('css/*.css', browserSync.reload);
gulp.watch('*.html', browserSync.reload);
});
27 changes: 10 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<meta name="description" content="">
<meta name="author" content="">

<title>Bare - Start Bootstrap Template</title>

<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<!-- Custom styles for this template -->
<style>
/* Set top padding of the page to match the height of the navbar */

body {
padding-top: 54px;
}
Expand All @@ -27,7 +24,7 @@
padding-top: 56px;
}
}
/* Ugly hacks to fix the container within navbar functionality - should be fixed in Bootstrap 4 beta */
/* Temporary navbar container fix */

.navbar-toggler {
z-index: 1;
Expand Down Expand Up @@ -78,20 +75,16 @@ <h1 class="mt-5">A Bootstrap 4 Starter Template</h1>
<p class="lead">Complete with pre-defined file paths and responsive navigation!</p>
<ul class="list-unstyled">
<li>Bootstrap 4.0.0-alpha.6</li>
<li>jQuery 3.1.1</li>
<li>jQuery 3.2.1</li>
</ul>
</div>
</div>
</div>

<!-- jQuery Version 3.1.1 -->
<script src="js/jquery.js"></script>

<!-- Tether -->
<script src="js/tether.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/tether/tether.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>

</body>

Expand Down
4 changes: 0 additions & 4 deletions js/jquery.js

This file was deleted.

33 changes: 27 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
{
"name": "startbootstrap-bare",
"title": "Bare",
"description": "An unstlyed starter template for Bootstrap 4 with predefined file paths for easy development.",
"name": "startbootstrap-bare",
"version": "4.0.0-alpha",
"description": "A basic HTML starter template for Bootstrap",
"keywords": [
"css",
"sass",
"html",
"responsive",
"theme",
"template"
],
"homepage": "http://startbootstrap.com/template-overviews/bare",
"author": "Start Bootstrap",
"license": {
"type": "MIT",
"url": "https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE"
"bugs": {
"url": "https://github.com/BlackrockDigital/startbootstrap-bare/issues",
"email": "[email protected]"
},
"license": "MIT",
"author": "Start Bootstrap",
"contributors": [
"David Miller (http://davidmiller.io/)"
],
"repository": {
"type": "git",
"url": "https://github.com/BlackrockDigital/startbootstrap-bare.git"
},
"dependencies": {
"bootstrap": "^4.0.0-alpha.6",
"jquery": "^3.2.1",
"tether": "^1.4.0"
},
"devDependencies": {
"browser-sync": "^2.18.8",
"gulp": "^3.9.1"
}
}
Loading

0 comments on commit 873d9ea

Please sign in to comment.