Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Oct 24, 2014
0 parents commit 958e1e9
Show file tree
Hide file tree
Showing 8 changed files with 481 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Build files
dist
15 changes: 15 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"indent": 2,
"globalstrict": true,
"newcap": false,

"node": true,
"browser": true,

"unused": "vars",
"esnext": true,

"globals": {
"Promise": true
}
}
7 changes: 7 additions & 0 deletions gulp/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

module.exports = function() {
var tasks = require('gulp-do');

return tasks.do('clean').then(tasks.get('node'));
};
6 changes: 6 additions & 0 deletions gulp/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = function() {
var del = require('del');
del(['./dist/**/*']);
};
10 changes: 10 additions & 0 deletions gulp/node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

module.exports = function() {
var gulp = require('gulp');
var esnext = require('gulp-esnext');

return gulp.src('./src/**/*.js')
.pipe(esnext())
.pipe(gulp.dest('./dist'));
};
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

var gulp = require('gulp');
var tasks = require('gulp-do');

tasks.configure(gulp);
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "flummox",
"version": "1.0.0",
"description": "An implementation of the Flux architecture.",
"main": "dist/index.js",
"scrpts": {
"prepublish": "./node_modules/.bin/gulp build"
},
"keywords": [
"flux",
"facebook",
"react"
],
"author": "Andrew Clark <[email protected]>",
"license": "MIT",
"devDependencies": {
"del": "^0.1.3",
"gulp": "^3.8.9",
"gulp-do": "^1.0.0",
"gulp-esnext": "^1.2.0"
},
"dependencies": {
"flux": "^2.0.1",
"wolfy87-eventemitter": "^4.2.9"
}
}
Loading

0 comments on commit 958e1e9

Please sign in to comment.