-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from NathanWorkman/feature/tooling
Feature/tooling
- Loading branch information
Showing
16 changed files
with
4,897 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "seeker", | ||
"version": "1.0.0", | ||
"description": "Job Board Aggregator", | ||
"main": "index.js", | ||
"repository": "git@github.com:NathanWorkman/seeker.git", | ||
"author": "Nathan Workman <nathancworkman@gmail.com>", | ||
"license": "MIT", | ||
"private": false, | ||
"dependencies": { | ||
"browser-sync": "^2.18.13", | ||
"gulp": "^3.9.1", | ||
"gulp-autoprefixer": "^4.0.0", | ||
"gulp-concat": "^2.6.1", | ||
"gulp-cssnano": "^2.1.2", | ||
"gulp-load-plugins": "^1.5.0", | ||
"gulp-notify": "^3.0.0", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-sass": "^3.1.0", | ||
"gulp-sourcemaps": "^2.6.1", | ||
"gulp-spawn": "^0.4.0", | ||
"gulp-uglify": "^3.0.0", | ||
"gulp-util": "^3.0.8", | ||
"gulp-watch": "^4.3.11", | ||
"node-sass": "^4.5.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ pytest-django==3.1.2 | |
flake8==3.5.0 | ||
tox==3.0.0 | ||
pytest-factoryboy==2.0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
var gulp = require('gulp'); | ||
var $ = require('gulp-load-plugins')(); | ||
var browserSync = require('browser-sync'); | ||
var gutil = require('gulp-util'); | ||
var exec = require('child_process').exec; | ||
var spawn = require('child_process').spawn; | ||
var reload = browserSync.reload; | ||
var src = 'seeker/static_src/'; | ||
var dist = 'seeker/static_src/dist/'; | ||
var ignore = ['!node_modules']; | ||
|
||
// +++++++++++++++++++++++++++++++++++++++ | ||
// Gulp tasks to build static assets | ||
// +++++++++++++++++++++++++++++++++++++++ | ||
|
||
function errorAlert(err) { | ||
$.notify.onError({ | ||
title: "Gulp Error", | ||
message: "Check your terminal", | ||
sound: "Basso" | ||
})(err); | ||
gutil.log(gutil.colors.red(err.toString())); | ||
this.emit("end"); | ||
} | ||
|
||
// Styles | ||
gulp.task('css', function() { | ||
return gulp.src(src + 'css/style.scss') | ||
.pipe($.plumber({errorHandler: errorAlert})) | ||
.pipe($.sourcemaps.init()) | ||
.pipe($.sass()) | ||
.pipe($.autoprefixer({ | ||
browsers: ['last 2 versions'], | ||
cascade: false })) | ||
.pipe($.cssnano()) | ||
.pipe($.sourcemaps.write('.')) | ||
.pipe(gulp.dest(dist + 'css/')) | ||
}); | ||
|
||
// Scripts | ||
gulp.task('js', function() { | ||
return gulp.src([ | ||
src + 'js/lib/**.js', | ||
src + 'js/**.js' | ||
]) | ||
.pipe($.plumber({errorHandler: errorAlert})) | ||
.pipe($.concat('main.min.js')) | ||
.pipe($.uglify()) | ||
.pipe(gulp.dest(dist + 'js/')) | ||
}); | ||
|
||
// Move Images | ||
gulp.task('images', function() { | ||
return gulp.src(src + 'img/**/**') | ||
.pipe(gulp.dest(dist + 'img')) | ||
}) | ||
|
||
// Build static assets | ||
gulp.task('build',['css','js','images']); | ||
|
||
// Deafult Gulp Task | ||
gulp.task('default',['runserver'], function() { | ||
browserSync.init({ | ||
notify: true, | ||
online: true, | ||
injectChanges: true, | ||
proxy: "localhost:8000" | ||
}); | ||
gulp.watch(ignore, ['/**/**/**/**/*.{html,py}'], reload); | ||
gulp.watch(src + 'css/**/*.scss', ['css', reload]); | ||
gulp.watch(src + 'js/**/*.js', ['js', reload]); | ||
}); | ||
|
||
// Start Virtualenv and start server | ||
gulp.task('runserver', function() { | ||
var proc; | ||
proc = exec('PYTHONUNBUFFERED=1 ./manage.py runserver'); | ||
proc.stderr.on('data', function(data) { | ||
return process.stdout.write(data); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,7 @@ | |
] | ||
|
||
STATICFILES_DIRS = [ | ||
"seeker/static/", | ||
"seeker/static_src/", | ||
] | ||
|
||
STATICFILES_LOCATION = 'static' | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@import 'bootstrap.min'; | ||
|
||
body { | ||
padding-top: 5rem; | ||
} | ||
|
||
|
||
div { | ||
padding: 4px; | ||
margin: 10px; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.