Skip to content

Commit

Permalink
version(0.42.0): updated ng2 and build process
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Oct 14, 2015
1 parent 6adc412 commit 23d9de8
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 106 deletions.
2 changes: 0 additions & 2 deletions components/accordion/accordion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

import {
Component, View,
Directive, OnInit, OnDestroy,
Expand Down
2 changes: 0 additions & 2 deletions components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
///<reference path="../tsd.d.ts"/>

export * from './accordion/accordion';
export * from './alert/alert';
export * from './buttons/button-radio';
Expand Down
3 changes: 0 additions & 3 deletions components/module.ts

This file was deleted.

2 changes: 0 additions & 2 deletions components/position.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../tsd.d.ts" />

import {
Injectable,
ElementRef
Expand Down
29 changes: 0 additions & 29 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,12 @@ gulp.paths = {

require('require-dir')('./gulp-tasks');

var typescript = require('gulp-tsc');
var options = require('./tsconfig.json').compilerOptions;
options.emitError = false;

var o = {
target: 'es5',
module: 'commonjs',
outDir: 'dist',
sourceRoot: 'dist',
mapRoot: 'dist',
keepTree: true,
declaration: true,
noEmitOnError: true,
emitError: false,
sourceMap: true,
removeComments: true,
noResolve: false,
suppressImplicitAnyIndexErrors: true,
safe: false,
emitDecoratorMetadata: true,
experimentalDecorators: true
};

var clean = require('gulp-clean');
gulp.task('clean', function () {
return gulp.src('dist', {read: false})
.pipe(clean());
});

gulp.task('compile', ['clean'], function () {
gulp.src(['components/**/*.ts'])
.pipe(typescript(o))
.pipe(gulp.dest(options.outDir));
});

gulp.task('default', function () {
gulp.start('lint');
});
61 changes: 27 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
{
"name": "ng2-bootstrap",
"version": "0.40.0",
"version": "0.42.0",
"description": "angular2 bootstrap components",
"scripts": {
"deploy": "NODE_ENV=production webpack -p --progress --color --optimize-minimize --optimize-dedupe --optimize-occurence-order",
"prepublish": "gulp compile",
"prepublish": "gulp clean && tsc",
"prestart": "npm install",
"server": "webpack-dev-server --hot --inline --colors --display-error-details --display-cached",
"start": "npm run server",
"test": "gulp lint"
},
"main": "dist/index.js",
"typescript": {
"definition": [
"dist/module.d.ts",
"typings/es6-object.d.ts"
]
},
"typings": "dist/index.d.ts",
"files": [
"dist",
"components",
"typings",
"tsd.d.ts"
"components"
],
"keywords": [
"angular2",
Expand All @@ -40,35 +33,35 @@
},
"homepage": "https://github.com/valor-software/ng2-bootstrap#readme",
"dependencies": {
"angular2": "^2.0.0-alpha.40",
"angular2": "2.0.0-alpha.42",
"reflect-metadata": "0.1.2",
"ts-loader": "0.5.6",
"zone.js": "0.5.8"
},
"devDependencies": {
"bootstrap": "^3.3.5",
"clean-webpack-plugin": "^0.1.3",
"compression-webpack-plugin": "^0.2.0",
"eslint": "^1.1.0",
"exports-loader": "^0.6.2",
"file-loader": "^0.8.4",
"gulp": "^3.9.0",
"gulp-clean": "^0.3.1",
"gulp-eslint": "^1.0.0",
"gulp-size": "^2.0.0",
"gulp-tsc": "^1.1.1",
"gulp-tslint": "^3.1.2",
"html-loader": "^0.3.0",
"markdown-loader": "^0.1.7",
"marked": "^0.3.5",
"moment": "^2.10.6",
"pre-commit": "^1.1.1",
"bootstrap": "3.3.5",
"clean-webpack-plugin": "0.1.3",
"compression-webpack-plugin": "0.2.0",
"eslint": "1.6.0",
"exports-loader": "0.6.2",
"file-loader": "0.8.4",
"gulp": "3.9.0",
"gulp-clean": "0.3.1",
"gulp-eslint": "1.0.0",
"gulp-size": "2.0.0",
"gulp-tsc": "1.1.1",
"gulp-tslint": "3.3.1",
"html-loader": "0.3.0",
"markdown-loader": "0.1.7",
"marked": "0.3.5",
"moment": "2.10.6",
"pre-commit": "1.1.1",
"prismjs": "valorkin/prism",
"prismjs-loader": "0.0.2",
"raw-loader": "^0.5.1",
"require-dir": "^0.3.0",
"typescript": "^1.6.2",
"webpack": "^1.12.2",
"webpack-dev-server": "^1.12.0"
"raw-loader": "0.5.1",
"require-dir": "0.3.0",
"typescript": "1.6.2",
"webpack": "1.12.2",
"webpack-dev-server": "1.12.0"
}
}
30 changes: 2 additions & 28 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,10 @@
"noEmitOnError": false,
"noImplicitAny": false
},
"filesGlob": [
"!./node_modules/**/*.ts"
"exclude": [
"node_modules"
],
"files": [
"./tsd.d.ts",

"./components/accordion/accordion.ts",
"./components/alert/alert.ts",
"./components/buttons/button-checkbox.ts",
"./components/buttons/button-radio.ts",
"./components/carousel/carousel.ts",
"./components/collapse/collapse.ts",
"./components/dropdown/dropdown-menu.ts",
"./components/dropdown/dropdown-service.ts",
"./components/dropdown/dropdown-toggle.ts",
"./components/dropdown/dropdown.interfaces.ts",
"./components/dropdown/dropdown.ts",
"./components/dropdown/index.ts",
"./components/pagination/pagination.ts",
"./components/progressbar/progressbar.ts",
"./components/rating/rating.ts",
"./components/tabs/tabs.ts",
"./components/timepicker/timepicker.ts",
"./components/typeahead/typeahead.ts",

"./components/common.ts",
"./components/position.ts",

"./components/ng2-bootstrap-config.ts",

"./components/index.ts"
]
}
1 change: 0 additions & 1 deletion tsd.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/// <reference path="typings/es6-object.d.ts"/>
/// <reference path="typings/moment/moment.d.ts"/>
/// <reference path="typings/tsd.d.ts" />
5 changes: 0 additions & 5 deletions typings/tsd.d.ts

This file was deleted.

0 comments on commit 23d9de8

Please sign in to comment.