Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
chore(package.json): Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl committed May 15, 2017
1 parent 4f358ce commit e67909a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 84 deletions.
134 changes: 53 additions & 81 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,94 +1,66 @@
const gulp = require('gulp');
const ts = require('gulp-typescript');
const mocha = require('gulp-mocha');
const sourcemaps = require('gulp-sourcemaps');
const istanbul = require('gulp-istanbul');
const remapIstanbul = require('remap-istanbul/lib/gulpRemapIstanbul');
const typedoc = require("gulp-typedoc");
var rename = require("gulp-rename");
const del = require('del');

const __coverageThreshold = 60;
const tsProject = ts.createProject('./tsconfig.json');

const tslint = require("gulp-tslint");

gulp.task("build:lint", function () {
return gulp.src(["./**/*.ts", "!./node_modules/**/*", "!./test/**/*"])
.pipe(tslint({
configuration: {
rules: {
"variable-name": false,
"quotemark": [true, "single", "avoid-escape"],
"max-file-line-count": false
}
}
}))
.pipe(tslint.report())
});

gulp.task('build:clean', function () {
return del([
'./dist',
'./coverage',
'./coverage-report'
]);
});

gulp.task('build', ['build:clean'], function () {
return gulp.src([
'./src/**/*.ts',
'./test/**/*.ts'
], { base: '.' })
.pipe(sourcemaps.init())
.pipe(tsProject())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist'));
})

gulp.task('test:instrument', ['build'], function () {
return gulp.src('./dist/src/**/*.js')
.pipe(istanbul())
.pipe(istanbul.hookRequire());
});

gulp.task('test:cover', ['test:instrument'], function () {
return gulp.src('./dist/**/*Tests.js')
.pipe(mocha({ ui: 'bdd' }))
.pipe(istanbul.writeReports({
reporters: ['json', 'html']
})).on('end', remapCoverageFiles);
gulp.task("typedoc", function () {
return gulp
.src([
"./src/**/*.ts",
"!./src/**/index.ts",
"!./src/SN.ts",
"!./src/SN.d.ts"
])
.pipe(typedoc({
module: "commonjs",
target: "es2015",
includeDeclarations: false,
out: "./documentation/html",
name: "sn-client-js",
theme: "default",
ignoreCompilerErrors: true,
version: true,
mode: "modules",
readme: "sn-client-js/README.md",
excludeExternals: true,
excludePrivate: true,
includes: "docs",
experimentalDecorators: true
}));
});

function remapCoverageFiles() {
return gulp.src('./coverage/coverage-final.json')
.pipe(remapIstanbul({
basePath: '.',
reports: {
'html': './coverage',
'text-summary': null,
'lcovonly': './coverage/lcov.info'
}
}));
}

gulp.task("typedoc", function () {
gulp.task("typedoc:md:generate", function () {
return gulp
.src(["src/*.ts", "!src/sn-redux.ts"])
.src([
"./src/**/*.ts",
"!./src/**/index.ts",
"!./src/SN.ts",
"!./src/SN.d.ts"
])
.pipe(typedoc({
module: "commonjs",
target: "es2015",
includeDeclarations: false,
out: "./documentation",
name: "sn-redux",
theme: "default",
ignoreCompilerErrors: true,
version: true,
readme: "sn-redux/README.md",
excludeExternals: true,
excludePrivate: true,
includes: "docs"
}));
module: "commonjs",
target: "es2015",
includeDeclarations: false,
out: "./documentation/markdown",
name: "sn-client-js",
theme: "node_modules/typedoc-md-theme/bin",
ignoreCompilerErrors: true,
version: true,
mode: "modules",
readme: "sn-client-js/README.md",
excludeExternals: true,
excludePrivate: true,
includes: "docs"
}));
});

gulp.task('test', ['test:cover']);
gulp.task('default', ['build:lint', 'build', 'test']);
gulp.task('typedoc:md', ['typedoc:md:generate'], ()=>{
gulp.src('./documentation/markdown/**/*.*')
.pipe(rename((path)=>{
path.extname= path.extname == '.html' ? '.md' : path.extname
}))
.pipe(gulp.dest('documentation/markdown_renamed'))
});
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sn-redux",
"version": "1.1.0-development.2",
"version": "2.0.0-RC.1",
"description": "A set of redux actions, reducers and redux-ovbservable epics for Sense/Net ECM",
"main": "dist/src/sn-redux.js",
"scripts": {
Expand All @@ -23,7 +23,8 @@
"files": [
"dist",
"src",
"test"
"test",
"documentation"
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,7 +63,7 @@
"redux-thunk": "^2.2.0",
"rimraf": "^2.6.1",
"rxjs": "^5.3.1",
"sn-client-js": "1.1.1-development.7"
"sn-client-js": "^2.0.0-RC.1"
},
"devDependencies": {
"@types/chai": "3.4.35",
Expand All @@ -76,6 +77,7 @@
"cz-conventional-changelog": "2.0.0",
"del": "2.2.2",
"gulp": "3.9.1",
"gulp-rename": "^1.2.2",
"gulp-typedoc": "2.0.2",
"mocha": "3.3.0",
"nock": "9.0.9",
Expand All @@ -86,6 +88,8 @@
"semantic-release": "^6.3.2",
"tslint": "5.2.0",
"typedoc": "0.6.0",
"typedoc-md-theme": "^1.0.1",
"typedoc-plugin-external-module-name": "^1.0.9",
"typescript": "2.3.2"
},
"czConfig": {
Expand Down

0 comments on commit e67909a

Please sign in to comment.