-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(all): changed build process to generate TypeScript definition fil…
…es and more.
- Loading branch information
Showing
10 changed files
with
140 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ if(validBumpTypes.indexOf(bump) === -1) { | |
|
||
module.exports = { | ||
bump: bump | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ gulp.task('update-own-deps', function(){ | |
|
||
gulp.task('build-dev-env', function () { | ||
tools.buildDevEnv(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
var gulp = require('gulp'); | ||
var tools = require('aurelia-tools'); | ||
var paths = require('../paths'); | ||
var yuidoc = require('gulp-yuidoc'); | ||
var typedoc = require('gulp-typedoc'); | ||
var typedocExtractor = require('gulp-typedoc-extractor'); | ||
var runSequence = require('run-sequence'); | ||
|
||
gulp.task('doc-generate', function(){ | ||
return gulp.src(paths.source) | ||
.pipe(yuidoc.parser(null, 'api.json')) | ||
return gulp.src([paths.output + '*.d.ts', paths.doc + '/core-js.d.ts', './jspm_packages/npm/*/*.d.ts']) | ||
.pipe(typedoc({ | ||
target: 'es6', | ||
includeDeclarations: true, | ||
json: paths.doc + '/api.json', | ||
name: paths.packageName + '-docs', | ||
mode: 'modules', | ||
excludeExternals: true, | ||
ignoreCompilerErrors: false, | ||
version: true | ||
})); | ||
}); | ||
|
||
gulp.task('doc-extract', function(){ | ||
return gulp.src([paths.doc + '/api.json']) | ||
.pipe(typedocExtractor(paths.packageName)) | ||
.pipe(gulp.dest(paths.doc)); | ||
}); | ||
|
||
gulp.task('doc', ['doc-generate'], function(){ | ||
tools.transformAPIModel(paths.doc); | ||
}) | ||
gulp.task('doc', function(callback){ | ||
return runSequence( | ||
'doc-generate', | ||
'doc-extract', | ||
callback | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var gulp = require('gulp'); | ||
var paths = require('../paths'); | ||
var jshint = require('gulp-jshint'); | ||
var stylish = require('jshint-stylish'); | ||
var eslint = require('gulp-eslint'); | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src(paths.source) | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter(stylish)); | ||
}); | ||
return gulp.src([paths.source, paths.tests]) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ gulp.task('prepare-release', function(callback){ | |
'changelog', | ||
callback | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ System.config({ | |
] | ||
}, | ||
paths: { | ||
"*": "dist/*", | ||
"github:*": "jspm_packages/github/*", | ||
"npm:*": "jspm_packages/npm/*", | ||
"aurelia-configuration/*": "dist/*.js" | ||
|
@@ -18,6 +17,7 @@ System.config({ | |
"aurelia-dependency-injection": "npm:[email protected]", | ||
"aurelia-loader": "npm:[email protected]", | ||
"aurelia-pal-browser": "npm:[email protected]", | ||
"aurelia-path": "npm:[email protected]", | ||
"babel": "npm:[email protected]", | ||
"babel-runtime": "npm:[email protected]", | ||
"core-js": "npm:[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters