-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #374 from bigopon/convert-to-TS
chore(all): convert to TS
- Loading branch information
Showing
93 changed files
with
6,041 additions
and
6,806 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 |
---|---|---|
@@ -1,9 +1,46 @@ | ||
version: 2.1 | ||
|
||
map-1: &filter_only_develop | ||
filters: | ||
branches: | ||
only: develop | ||
|
||
map-2: &filter_only_tag | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v?[0-9]+(\.[0-9]+)*$/ | ||
|
||
orbs: | ||
v1: aurelia/v1@volatile | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- v1/build_test | ||
- v1/build_test: | ||
use_jspm: false | ||
- v1/build_merge: | ||
<<: *filter_only_develop | ||
use_jspm: false | ||
requires: | ||
- v1/build_test | ||
- v1/npm_publish: | ||
<<: *filter_only_tag | ||
name: npm_publish_dry | ||
args: "--dry-run" | ||
- request_publish_latest: | ||
<<: *filter_only_tag | ||
type: approval | ||
requires: | ||
- npm_publish_dry | ||
- v1/npm_publish: | ||
<<: *filter_only_tag | ||
name: npm_publish | ||
context: Aurelia | ||
requires: | ||
- request_publish_latest | ||
- v1/merge_back: | ||
<<: *filter_only_tag | ||
requires: | ||
- npm_publish |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ jspm_packages | |
bower_components | ||
.idea | ||
.DS_STORE | ||
.rollupcache | ||
build/reports |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"tslint.autoFixOnSave": true | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const fs = require('fs'); | ||
const paths = require('./paths'); | ||
const path = require('path'); | ||
const conventionalChangelog = require('conventional-changelog'); | ||
const dest = path.resolve(process.cwd(), paths.doc, 'CHANGELOG.md'); | ||
|
||
let changelogChunk = ''; | ||
const changelogStream = conventionalChangelog({ preset: 'angular' }) | ||
.on('data', chunk => changelogChunk += chunk.toString('utf8')) | ||
.on('end', () => { | ||
changelogStream.removeAllListeners(); | ||
const data = fs.readFileSync(dest, 'utf-8'); | ||
const fd = fs.openSync(dest, 'w+'); | ||
fs.writeSync(fd, Buffer.from(changelogChunk, 'utf8'), 0, changelogChunk.length, 0); | ||
fs.writeSync(fd, Buffer.from(data, 'utf8'), 0, data.length, changelogChunk.length); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
var gulp = require('gulp'); | ||
var runSequence = require('run-sequence'); | ||
var paths = require('./paths'); | ||
// var fs = require('fs'); | ||
var bump = require('gulp-bump'); | ||
var args = require('./args'); | ||
var conventionalChangelog = require('gulp-conventional-changelog'); | ||
|
||
gulp.task('changelog', function () { | ||
return gulp | ||
.src(paths.doc + '/CHANGELOG.md', { | ||
buffer: false | ||
}) | ||
.pipe(conventionalChangelog({ | ||
preset: 'angular' | ||
})) | ||
.pipe(gulp.dest(paths.doc)); | ||
}); | ||
|
||
gulp.task('bump-version', function() { | ||
return gulp.src(['./package.json', './bower.json']) | ||
// major|minor|patch|prerelease | ||
// default is patch | ||
.pipe(bump({ type:args.bump })) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
|
||
gulp.task('prepare-release', function(callback) { | ||
return runSequence( | ||
// 'build', | ||
// 'lint', | ||
'bump-version', | ||
// 'doc', | ||
'changelog', | ||
callback | ||
); | ||
}); |
Oops, something went wrong.