Browse Source

Initial commit

Sven Slootweg 5 years ago
parent
commit
f06f7a1043
3 changed files with 64 additions and 1 deletions
  1. 2 1
      .gitignore
  2. 28 0
      gulpfile.js
  3. 34 0
      package.json

+ 2 - 1
.gitignore

@ -1,3 +1,4 @@
1 1
# https://git-scm.com/docs/gitignore
2 2
# https://help.github.com/articles/ignoring-files
3
# Example .gitignore files: https://github.com/github/gitignore
3
# Example .gitignore files: https://github.com/github/gitignore
4
/node_modules/

+ 28 - 0
gulpfile.js

@ -0,0 +1,28 @@
1
var gulp = require('gulp');
2
3
/* CoffeeScript compile deps */
4
var path = require('path');
5
var gutil = require('gulp-util');
6
var concat = require('gulp-concat');
7
var rename = require('gulp-rename');
8
var coffee = require('gulp-coffee');
9
var cache = require('gulp-cached');
10
var remember = require('gulp-remember');
11
var plumber = require('gulp-plumber');
12
13
var source = ["lib/**/*.coffee", "index.coffee"]
14
15
gulp.task('coffee', function() {
16
	return gulp.src(source, {base: "."})
17
		.pipe(plumber())
18
		.pipe(cache("coffee"))
19
		.pipe(coffee({bare: true}).on('error', gutil.log)).on('data', gutil.log)
20
		.pipe(remember("coffee"))
21
		.pipe(gulp.dest("."));
22
});
23
24
gulp.task('watch', function () {
25
	gulp.watch(source, ['coffee']);
26
});
27
28
gulp.task('default', ['coffee', 'watch']);

+ 34 - 0
package.json

@ -0,0 +1,34 @@
1
{
2
  "name": "scrypt-for-humans",
3
  "version": "1.0.0",
4
  "description": "A human-friendly API wrapper for the Node.js Scrypt bindings.",
5
  "main": "index.js",
6
  "scripts": {
7
    "test": "echo \"Error: no test specified\" && exit 1"
8
  },
9
  "repository": {
10
    "type": "git",
11
    "url": "git://github.com/joepie91/scrypt-for-humans"
12
  },
13
  "keywords": [
14
    "scrypt",
15
    "hash"
16
  ],
17
  "author": "Sven Slootweg",
18
  "license": "WTFPL",
19
  "devDependencies": {
20
    "gulp": "~3.8.0",
21
    "gulp-cached": "~0.0.3",
22
    "gulp-coffee": "~2.0.1",
23
    "gulp-concat": "~2.2.0",
24
    "gulp-livereload": "~2.1.0",
25
    "gulp-nodemon": "~1.0.4",
26
    "gulp-plumber": "~0.6.3",
27
    "gulp-remember": "~0.2.0",
28
    "gulp-rename": "~1.2.0",
29
    "gulp-util": "~2.2.17"
30
  },
31
  "dependencies": {
32
    "scrypt": "^3.0.1"
33
  }
34
}