Skip to content

Commit ae5c1a2

Browse files
Merge pull request #374 from bigopon/convert-to-TS
chore(all): convert to TS
2 parents 2371267 + 4373bae commit ae5c1a2

File tree

93 files changed

+6041
-6806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+6041
-6806
lines changed

.circleci/config.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,46 @@
11
version: 2.1
22

3+
map-1: &filter_only_develop
4+
filters:
5+
branches:
6+
only: develop
7+
8+
map-2: &filter_only_tag
9+
filters:
10+
branches:
11+
ignore: /.*/
12+
tags:
13+
only: /^v?[0-9]+(\.[0-9]+)*$/
14+
315
orbs:
416
v1: aurelia/v1@volatile
517

618
workflows:
719
main:
820
jobs:
9-
- v1/build_test
21+
- v1/build_test:
22+
use_jspm: false
23+
- v1/build_merge:
24+
<<: *filter_only_develop
25+
use_jspm: false
26+
requires:
27+
- v1/build_test
28+
- v1/npm_publish:
29+
<<: *filter_only_tag
30+
name: npm_publish_dry
31+
args: "--dry-run"
32+
- request_publish_latest:
33+
<<: *filter_only_tag
34+
type: approval
35+
requires:
36+
- npm_publish_dry
37+
- v1/npm_publish:
38+
<<: *filter_only_tag
39+
name: npm_publish
40+
context: Aurelia
41+
requires:
42+
- request_publish_latest
43+
- v1/merge_back:
44+
<<: *filter_only_tag
45+
requires:
46+
- npm_publish

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ jspm_packages
33
bower_components
44
.idea
55
.DS_STORE
6+
.rollupcache
67
build/reports

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"tslint.autoFixOnSave": true
4+
}

README.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# aurelia-templating-resources
22

33
[![npm Version](https://img.shields.io/npm/v/aurelia-templating-resources.svg)](https://www.npmjs.com/package/aurelia-templating-resources)
4-
[![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)
54
[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
65
[![CircleCI](https://circleci.com/gh/aurelia/templating-resources.svg?style=shield)](https://circleci.com/gh/aurelia/templating-resources)
76

87
This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains a standard set of behaviors, converters and other resources for use with the Aurelia templating library.
98

10-
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions look around our [Discourse forums](https://discourse.aurelia.io/), chat in our [community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/docs). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards.
9+
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions look around our [Discourse forums](https://discourse.aurelia.io/), chat in our [community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/docs).
10+
1111
## Platform Support
1212

1313
This library can be used in the **browser** only.
@@ -22,42 +22,31 @@ To build the code, follow these steps.
2222
```shell
2323
npm install
2424
```
25-
3. Ensure that [Gulp](http://gulpjs.com/) is installed. If you need to install it, use the following command:
25+
3. To build the code, you can now run:
2626

2727
```shell
28-
npm install -g gulp
28+
npm run build
2929
```
30-
4. To build the code, you can now run:
31-
32-
```shell
33-
gulp build
34-
```
35-
5. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.
36-
37-
6. See `gulpfile.js` for other tasks related to generating the docs and linting.
30+
4. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.
3831

3932
## Running The Tests
4033

4134
To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
4235

43-
1. Ensure that the [Karma](http://karma-runner.github.io/) CLI is installed. If you need to install it, use the following command:
36+
1. You can now run the tests with this command:
4437

4538
```shell
46-
npm install -g karma-cli
39+
npm run test
4740
```
48-
2. Ensure that [jspm](http://jspm.io/) is installed. If you need to install it, use the following commnand:
4941

50-
```shell
51-
npm install -g jspm
52-
```
53-
3. Install the client-side dependencies with jspm:
42+
2. With watch options to rerun the test (headless):
5443

5544
```shell
56-
jspm install
45+
npm run test:watch
5746
```
5847

59-
4. You can now run the tests with this command:
48+
3. With watch options to rerun the test (with browser):
6049

61-
```shell
62-
karma start
50+
```
51+
npm run test:debugger
6352
```

build/babel-options.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

build/changelog.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const fs = require('fs');
2+
const paths = require('./paths');
3+
const path = require('path');
4+
const conventionalChangelog = require('conventional-changelog');
5+
const dest = path.resolve(process.cwd(), paths.doc, 'CHANGELOG.md');
6+
7+
let changelogChunk = '';
8+
const changelogStream = conventionalChangelog({ preset: 'angular' })
9+
.on('data', chunk => changelogChunk += chunk.toString('utf8'))
10+
.on('end', () => {
11+
changelogStream.removeAllListeners();
12+
const data = fs.readFileSync(dest, 'utf-8');
13+
const fd = fs.openSync(dest, 'w+');
14+
fs.writeSync(fd, Buffer.from(changelogChunk, 'utf8'), 0, changelogChunk.length, 0);
15+
fs.writeSync(fd, Buffer.from(data, 'utf8'), 0, data.length, changelogChunk.length);
16+
});

build/prepare-release.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
var gulp = require('gulp');
2+
var runSequence = require('run-sequence');
3+
var paths = require('./paths');
4+
// var fs = require('fs');
5+
var bump = require('gulp-bump');
6+
var args = require('./args');
7+
var conventionalChangelog = require('gulp-conventional-changelog');
8+
9+
gulp.task('changelog', function () {
10+
return gulp
11+
.src(paths.doc + '/CHANGELOG.md', {
12+
buffer: false
13+
})
14+
.pipe(conventionalChangelog({
15+
preset: 'angular'
16+
}))
17+
.pipe(gulp.dest(paths.doc));
18+
});
19+
20+
gulp.task('bump-version', function() {
21+
return gulp.src(['./package.json', './bower.json'])
22+
// major|minor|patch|prerelease
23+
// default is patch
24+
.pipe(bump({ type:args.bump }))
25+
.pipe(gulp.dest('./'));
26+
});
27+
28+
gulp.task('prepare-release', function(callback) {
29+
return runSequence(
30+
// 'build',
31+
// 'lint',
32+
'bump-version',
33+
// 'doc',
34+
'changelog',
35+
callback
36+
);
37+
});

0 commit comments

Comments
 (0)