Skip to content

Commit 6407bf0

Browse files
committed
Exclude browser test bundle from package
Test bundle for browser environment `neo4j-web.test.js` is generated at build time and contains driver code and test code to execute. It was added to `lib/browser` directory and ended up included in the npm package. This commit makes build process generate the test bundle in `build/browser` which is excluded from package. Also removed gulp file from package.
1 parent 4b81905 commit 6407bf0

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.npmignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ docs/
22
src/
33
build/
44
test/
5-
lib/browser/neo4j-web.test.js
65
.gitignore
76
esdoc.json
8-
gulpfile.js
7+
gulpfile.babel.js
98
runTests.sh
109
runTests.ps1
10+
node_modules/

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ gulp.task('build-browser', function () {
8686
});
8787

8888
gulp.task('build-browser-test', function(){
89-
var browserOutput = 'lib/browser/';
89+
var browserOutput = 'build/browser/';
9090
var testFiles = [];
9191
return gulp.src(['./test/**/*.test.js', '!./test/**/node/*.js'])
9292
.pipe( through.obj( function( file, enc, cb ) {

test/browser/jasmine-runner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<script type="text/javascript" src="../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
2828
<script type="text/javascript" src="../../node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
2929

30-
<script type="text/javascript" src="../../lib/browser/neo4j-web.test.js"></script>
30+
<script type="text/javascript" src="../../build/browser/neo4j-web.test.js"></script>
3131

3232
</head>
3333
<body>

test/browser/karma-chrome.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function(config) {
2020
config.set({
2121
frameworks: ['jasmine'],
2222
basePath: '../../',
23-
files: ['lib/browser/neo4j-web.test.js'],
23+
files: ['build/browser/neo4j-web.test.js'],
2424
reporters: ['spec'],
2525
port: 9876, // karma web server port
2626
colors: true,
@@ -31,4 +31,4 @@ module.exports = function(config) {
3131
concurrency: 1,
3232
browserNoActivityTimeout: 30 * 60 * 1000,
3333
})
34-
}
34+
};

test/browser/karma-edge.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function(config) {
2020
config.set({
2121
frameworks: ['jasmine'],
2222
basePath: '../../',
23-
files: ['lib/browser/neo4j-web.test.js'],
23+
files: ['build/browser/neo4j-web.test.js'],
2424
reporters: ['spec'],
2525
port: 9876, // karma web server port
2626
colors: true,
@@ -31,4 +31,4 @@ module.exports = function(config) {
3131
concurrency: 1,
3232
browserNoActivityTimeout: 30 * 60 * 1000,
3333
})
34-
}
34+
};

test/browser/karma-firefox.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function(config) {
2020
config.set({
2121
frameworks: ['jasmine'],
2222
basePath: '../../',
23-
files: ['lib/browser/neo4j-web.test.js'],
23+
files: ['build/browser/neo4j-web.test.js'],
2424
reporters: ['spec'],
2525
port: 9876, // karma web server port
2626
colors: true,
@@ -37,4 +37,4 @@ module.exports = function(config) {
3737
},
3838
},
3939
})
40-
}
40+
};

test/browser/karma-ie.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (config) {
2020
config.set({
2121
frameworks: ['jasmine'],
2222
basePath: '../../',
23-
files: ['lib/browser/neo4j-web.test.js'],
23+
files: ['build/browser/neo4j-web.test.js'],
2424
reporters: ['spec'],
2525
port: 9876, // karma web server port
2626
colors: true,

0 commit comments

Comments
 (0)