Skip to content

Commit

Permalink
chore(*): repository maintenance
Browse files Browse the repository at this point in the history
Moved lib to src. Fixed up gulp file with version bump. Added a
bower.json file. Added aurelia metadata to package.json. Updated the
readme with Used By libs.
  • Loading branch information
EisenbergEffect committed Dec 17, 2014
1 parent 8835433 commit 74176a5
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ This library is part of the [Aurelia](http://www.aurelia.io/) platform and conta
* [aurelia-event-aggregator](https://github.com/aurelia/event-aggregator)
* [aurelia-logging](https://github.com/aurelia/logging)

## Used By

* [aurelia-bootstrapper](https://github.com/aurelia/bootstrapper)

## Platform Support

This library can be used in the **browser** only.
Expand Down
27 changes: 27 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "aurelia-framework",
"version": "0.2.1",
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
"keywords": [
"aurelia",
"framework",
"spa"
],
"homepage": "http://aurelia.io",
"license": "MIT",
"authors": ["Rob Eisenberg <[email protected]> (http://robeisenberg.com/)"],
"repository": {
"type": "git",
"url": "http://github.com/aurelia/framework"
},
"dependencies": {
"aurelia-binding": "0.1.1",
"aurelia-dependency-injection": "0.1.0",
"aurelia-event-aggregator": "0.1.0",
"aurelia-loader": "0.1.1",
"aurelia-logging": "0.1.0",
"aurelia-metadata": "0.1.0",
"aurelia-task-queue": "0.1.0",
"aurelia-templating": "0.2.1"
}
}
21 changes: 15 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ var stylish = require('jshint-stylish');
var yuidoc = require("gulp-yuidoc");
var changelog = require('conventional-changelog');
var assign = Object.assign || require('object.assign');
var pkg = require('./package.json');
var fs = require('fs');
var bump = require('gulp-bump');

var path = {
source:'lib/**/*.js',
source:'src/**/*.js',
output:'dist/',
doc:'./doc'
};
Expand Down Expand Up @@ -64,13 +64,21 @@ gulp.task('lint', function() {
});

gulp.task('doc', function(){
gulp.src(path.source)
return gulp.src(path.source)
.pipe(yuidoc.parser(null, 'api.json'))
.pipe(gulp.dest(path.doc));
});

gulp.task('bump-version', function(){
return gulp.src(['./bower.json', './package.json'])
.pipe(bump({type:'patch'})) //major|minor|patch|prerelease
.pipe(gulp.dest('./'));
});

gulp.task('changelog', function(callback) {
changelog({
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));

return changelog({
repository: pkg.repository.url,
version: pkg.version,
file: path.doc + '/CHANGELOG.md'
Expand All @@ -80,17 +88,18 @@ gulp.task('changelog', function(callback) {
});

gulp.task('build', function(callback) {
runSequence(
return runSequence(
'clean',
['build-es6', 'build-commonjs', 'build-amd'],
callback
);
});

gulp.task('prepare-release', function(callback){
runSequence(
return runSequence(
'build',
'lint',
'bump-version',
'doc',
'changelog',
callback
Expand Down
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function(config) {

jspm: {
// Edit this to your needs
loadFiles: ['lib/**/*.js', 'test/**/*.js']
loadFiles: ['src/**/*.js', 'test/**/*.js']
},


Expand All @@ -31,7 +31,7 @@ module.exports = function(config) {
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/**/*.js': ['6to5'],
'lib/**/*.js': ['6to5']
'src/**/*.js': ['6to5']
},


Expand Down
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"conventional-changelog": "0.0.11",
"gulp": "^3.8.10",
"gulp-6to5": "^1.0.2",
"gulp-bump": "^0.1.11",
"gulp-clean": "^0.3.1",
"gulp-jshint": "^1.9.0",
"gulp-yuidoc": "^0.1.2",
Expand All @@ -50,5 +51,32 @@
"karma-jspm": "^1.0.1",
"object.assign": "^1.0.3",
"run-sequence": "^1.0.2"
},
"aurelia": {
"usedBy": [
"aurelia-bootstrapper"
],
"documentation": {
"links": [
{
"rel": "license",
"mediaType": "text/plain",
"title": "The MIT License (MIT)",
"href": "LICENSE"
},
{
"rel": "describedby",
"mediaType": "application/yuidoc+json",
"title": "API",
"href": "doc/api.json"
},
{
"rel": "version-history",
"mediaType": "text/markdown",
"title": "Change Log",
"href": "doc/CHANGELOG.md"
}
]
}
}
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/aurelia.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Aurelia} from '../lib/index';
import {Aurelia} from '../src/index';
import {Loader} from 'aurelia-loader';

describe('aurelia', () => {
Expand Down

0 comments on commit 74176a5

Please sign in to comment.