Skip to content

Commit

Permalink
Merge pull request #374 from bigopon/convert-to-TS
Browse files Browse the repository at this point in the history
chore(all): convert to TS
  • Loading branch information
EisenbergEffect authored Apr 28, 2019
2 parents 2371267 + 4373bae commit ae5c1a2
Show file tree
Hide file tree
Showing 93 changed files with 6,041 additions and 6,806 deletions.
39 changes: 38 additions & 1 deletion .circleci/config.yml
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
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ jspm_packages
bower_components
.idea
.DS_STORE
.rollupcache
build/reports
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"tslint.autoFixOnSave": true
}
35 changes: 12 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# aurelia-templating-resources

[![npm Version](https://img.shields.io/npm/v/aurelia-templating-resources.svg)](https://www.npmjs.com/package/aurelia-templating-resources)
[![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)
[![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)
[![CircleCI](https://circleci.com/gh/aurelia/templating-resources.svg?style=shield)](https://circleci.com/gh/aurelia/templating-resources)

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.

> 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.
> 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).
## Platform Support

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

```shell
npm install -g gulp
npm run build
```
4. To build the code, you can now run:

```shell
gulp build
```
5. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.

6. See `gulpfile.js` for other tasks related to generating the docs and linting.
4. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.

## Running The Tests

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:

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

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

```shell
npm install -g jspm
```
3. Install the client-side dependencies with jspm:
2. With watch options to rerun the test (headless):

```shell
jspm install
npm run test:watch
```

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

```shell
karma start
```
npm run test:debugger
```
65 changes: 0 additions & 65 deletions build/babel-options.js

This file was deleted.

16 changes: 16 additions & 0 deletions build/changelog.js
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);
});
37 changes: 37 additions & 0 deletions build/prepare-release.js
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
);
});
Loading

0 comments on commit ae5c1a2

Please sign in to comment.