Skip to content

Commit 1fbe80c

Browse files
committed
Move src to lib
1 parent 10a8c99 commit 1fbe80c

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.DS_Store
2-
node_modules/
3-
_SpecRunner.html
4-
.grunt
5-
src-instrumented
1+
node_modules
2+
lib-instrumented
63
test/coverage
7-
.coveralls.yml

gulpfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ gulp.task('default', ['clean', 'lint', 'test', 'compile']);
2222
gulp.task('dev', ['compile', 'watch']);
2323

2424
gulp.task('watch', function() {
25-
gulp.watch('src/**/*.js', ['test', 'compile']);
25+
gulp.watch('lib/**/*.js', ['test', 'compile']);
2626
gulp.watch('test/spec/**/*.js', ['test']);
2727
});
2828

@@ -32,19 +32,19 @@ gulp.task('clean', function() {
3232
});
3333

3434
gulp.task('lint', function() {
35-
return gulp.src(['gulpfile.js', 'src/**/*.js', 'specs/**/*.js'])
35+
return gulp.src(['gulpfile.js', 'lib/**/*.js', 'specs/**/*.js'])
3636
.pipe(jshint('.jshintrc'))
3737
.pipe(jshint.reporter('jshint-stylish'));
3838
});
3939

4040
gulp.task('instrument', function() {
41-
return gulp.src('src/**/*.js')
41+
return gulp.src('lib/**/*.js')
4242
.pipe(map(function(code, filename) {
4343
var instrumenter = new istanbul.Instrumenter(),
4444
relativePath = path.relative(__dirname, filename);
4545
return instrumenter.instrumentSync(code.toString(), relativePath);
4646
}))
47-
.pipe(gulp.dest('src-instrumented'));
47+
.pipe(gulp.dest('lib-instrumented'));
4848
});
4949

5050
gulp.task('test', ['clean', 'instrument'], function() {
@@ -58,7 +58,7 @@ gulp.task('coveralls', ['test'], function() {
5858
});
5959

6060
gulp.task('compile', ['clean'], function() {
61-
return browserify('./src/bespoke.js')
61+
return browserify('./lib/bespoke.js')
6262
.bundle({ standalone: 'bespoke' })
6363
.on('error', gutil.log)
6464
.pipe(source('bespoke.js'))
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "gulp",
1515
"coveralls": "gulp coveralls"
1616
},
17-
"main": "./src/bespoke.js",
17+
"main": "./lib/bespoke.js",
1818
"repository": {
1919
"type": "git",
2020
"url": "git://github.com/markdalgleish/bespoke.js.git"

test/spec/BespokeSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Function.prototype.bind = require('function-bind');
55

6-
var bespoke = require('../../src-instrumented/bespoke.js');
6+
var bespoke = require('../../lib-instrumented/bespoke.js');
77

88
describe("bespoke", function() {
99

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy