Skip to content

Commit e37afec

Browse files
committed
RC.6 + webpack support
1 parent 0a7d672 commit e37afec

17 files changed

+1028
-27
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ gulp.task('sass', function () {
3333
gulp.task('compile', function () {
3434
var r = gulp.src(['typings/index.d.ts', 'src/**/*.ts'])
3535
.pipe(inlineNg2Template({base: '/lib'}))
36+
.pipe(gulp.dest('lib'))
3637
.pipe(sourcemaps.init())
3738
.pipe(tsc(tscConfig.compilerOptions))
3839
r.dts.pipe(gulp.dest('lib'));
@@ -78,4 +79,4 @@ gulp.task('copy:index', function () {
7879

7980
gulp.task('clean:fake', function () {
8081
return del.sync('examples/node_modules/angular2-color-picker/**/*');
81-
});
82+
});

index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export * from './lib/index';
1+
export { Hsva, Hsla, Rgba, SliderPosition, SliderDimension } from './lib/classes';
2+
export { ColorPickerDirective } from './lib/color-picker.directive';
3+
export { ColorPickerModule } from './lib/color-picker.module';
4+
export { ColorPickerService } from './lib/color-picker.service';

index.js

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export * from './lib/index';
1+
export {Hsva, Hsla, Rgba, SliderPosition, SliderDimension} from './lib/classes';
2+
export {ColorPickerDirective} from './lib/color-picker.directive';
3+
export {ColorPickerModule} from './lib/color-picker.module';
4+
export {ColorPickerService} from './lib/color-picker.service';
5+

lib/classes.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export class Hsva {
2+
constructor(public h: number, public s: number, public v: number, public a: number) { }
3+
}
4+
export class Hsla {
5+
constructor(public h: number, public s: number, public l: number, public a: number) { }
6+
}
7+
export class Rgba {
8+
constructor(public r: number, public g: number, public b: number, public a: number) { }
9+
}
10+
export class SliderPosition {
11+
constructor(public h: number, public s: number, public v: number, public a: number) { }
12+
}
13+
export class SliderDimension {
14+
constructor(public h: number, public s: number, public v: number, public a: number) { }
15+
}

0 commit comments

Comments
 (0)