Commit 321aa7e2 authored by Jed Simson's avatar Jed Simson

Add NPM, Bower, Gulp build configs

parent 083cc989
{
"directory": "./static/bower_components"
}
......@@ -27,3 +27,6 @@ pip-log.txt
venv
*.pyc
build
static/bower_components
node_modules
{
"name": "reddit-slider",
"authors": [
"Jed Simson <jed.simson@gmail.com>"
],
"description": "Adds more functionality to reddit by allowing querying of specific ranges in time",
"main": "",
"license": "MIT",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "^3.3.6",
"react": "^15.1.0",
"jquery": "^3.0.0"
}
}
var gulp = require('gulp');
var gulpBrowser = require("gulp-browser");
var reactify = require('reactify');
var del = require('del');
var size = require('gulp-size');
// tasks
gulp.task('transform', function () {
var stream = gulp.src('./static/scripts/jsx/*.js')
.pipe(gulpBrowser.browserify({transform: ['reactify']}))
.pipe(gulp.dest('./static/scripts/js/'))
.pipe(size());
return stream;
});
gulp.task('del', function () {
// add task
});
gulp.task('default', function() {
gulp.start('transform');
});
{
"name": "reddit-slider",
"version": "1.0.0",
"description": "Adds more functionality to reddit by allowing querying of specific ranges in time",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"devDependencies": {
"bower": "^1.7.9",
"gulp": "^3.9.1",
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-browser": "^2.1.4",
"gulp-size": "^2.1.0",
"reactify": "^1.1.1"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment