Skip to content

Commit

Permalink
removes files from package.json, so .npmignore is meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaiman committed Apr 12, 2016
1 parent 6839275 commit 0b9d261
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
src/
typings/
coverage/
.idea/
tslint.json
typings.json
*.iml
.editorconfig
.jshintrc
test/
24 changes: 1 addition & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,10 @@ var tslint = require('gulp-tslint');
var debug = require('gulp-debug');
var rimraf = require('rimraf');

var typeDefsPath = (function (typings) {
return typings.path || 'typings';
})(require('./typings.json'));

var tsFilesGlob = (function (c) {
return c.filesGlob || c.files || '**/*.ts';
})(require('./tsconfig.json'));

gulp.task('gen_tsrefs', 'Generates the main.d.ts references file dynamically for all application *.ts files', function () {
var target = gulp.src(path.join('.', typeDefsPath, 'typings/main.d.ts'));
var sources = gulp.src([path.join('.', 'src', '**', '*.ts')], {read: false});
// sources.pipe(debug());
// target.pipe(debug());
var transformation = inject(sources, {
starttag: '//{',
endtag: '//}',
transform: function (filepath) {
console.log(filepath);
return '/// <reference path="..' + filepath + '" />';
}
});
return target
.pipe(transformation)
.pipe(gulp.dest(path.join('.', typeDefsPath)));
});

gulp.task('typings install', function(cb) {
exec('typings install', function(err, stdout, stderr) {
console.log(stdout);
Expand All @@ -63,7 +41,7 @@ gulp.task('tslint', 'Lints all TypeScript source files', function () {
.pipe(tslint.report('verbose'));
});

gulp.task('tsBuild', 'Compiles all TypeScript source files and updates module references', gulpSequence('tslint', 'typings install', 'gen_tsrefs', '_build'));
gulp.task('tsBuild', 'Compiles all TypeScript source files and updates module references', gulpSequence('tslint', 'typings install', '_build'));


gulp.task('nsp', function (cb) {
Expand Down
1 change: 0 additions & 1 deletion index.js

This file was deleted.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"name": "hazelcast-nodejs-client",
"version": "0.1.0",
"description": "Hazelcast - open source In-Memory Data Grid - client for NodeJS",
"main": "index.js",
"files": [
"lib"
],
"main": "lib/index.js",
"dependencies": {
"long": "3.0.1",
"q": "1.4.1"
Expand Down Expand Up @@ -54,5 +51,5 @@
"url": "https://github.com/hazelcast/hazelcast-nodejs-client/issues"
},
"homepage": "https://github.com/hazelcast/hazelcast-nodejs-client#readme",
"typings": "./lib/index.d.ts"
"typings": "./lib/index"
}

0 comments on commit 0b9d261

Please sign in to comment.