Skip to content

chore(package): cleanup package, module and build #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
examples/app/*.js
examples/app/*.d.ts
examples
node_modules
typings

examples/node_modules/*
examples/typings/*
examples/npm-debug.log

node_modules/*
typings/*
_config.yml
npm-debug.log
typings.json

.sass-cache
nbproject/*
nbproject/*
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var inlineNg2Template = require('gulp-inline-ng2-template');
var runSequence = require('run-sequence');

gulp.task('clean', function () {
return del.sync('lib/**/*');
return del.sync(['index.+(js|js.map|d.ts)', 'lib/**/*']);
});

gulp.task('copy:assets', function () {
Expand All @@ -19,7 +19,7 @@ gulp.task('copy:assets', function () {

gulp.task("typings",function(){
var stream = gulp.src("./typings.json")
.pipe(gulpTypings());
.pipe(gulpTypings());
return stream;
});

Expand All @@ -37,7 +37,7 @@ gulp.task('compile', function () {
.pipe(tsc(tscConfig.compilerOptions))
r.dts.pipe(gulp.dest('lib'));
r.js.pipe(gulp.dest('lib'));

return r.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('lib'));
});
Expand All @@ -48,7 +48,7 @@ gulp.task('compile:index', function () {
.pipe(tsc(tscConfig.compilerOptions))
r.dts.pipe(gulp.dest('.'));
r.js.pipe(gulp.dest('.'));

return r.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('.'));
});
Expand All @@ -68,7 +68,7 @@ gulp.task('fake', function (callback) {

gulp.task('copy:fake', function () {
return gulp.src(['lib/**/*'])
.pipe(gulp.dest('examples/node_modules/angular2-color-picker/lib'));
.pipe(gulp.dest('examples/node_modules/angular2-color-picker/lib'));
});

gulp.task('copy:index', function () {
Expand Down
22 changes: 20 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "Angular 2 Color Picker Directive, no dependences required.",
"version": "1.2.0",
"main": "index.js",
"scripts": {
"scripts": {
"build": "gulp"
},
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@angular/common": "2.0.0-rc.6",
"@angular/core": "2.0.0-rc.6",
"@angular/platform-browser": "2.0.0-rc.6",
Expand All @@ -27,5 +27,23 @@
"run-sequence": "^1.2.2",
"typescript": "^1.8.10",
"typings": "^1.0.4"
},
"module": "index.js",
"typings": "./index.d.ts",
"author": "Alberto Pujante <[email protected]>",
"keywords": [
"angular",
"angular2",
"angularjs-color-picker",
"angular2-color-picker",
"color",
"color-picker"
],
"repository": {
"type": "git",
"url": "https://github.com/Alberplz/angular2-color-picker.git"
},
"bugs": {
"url": "https://github.com/Alberplz/angular2-color-picker/issues"
}
}
2 changes: 1 addition & 1 deletion src/color-picker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import {ColorPickerDirective} from './color-picker.directive';
imports: [CommonModule],
providers: [ColorPickerService],
declarations: [ColorPickerDirective],
exports: [CommonModule, ColorPickerDirective]
exports: [ColorPickerDirective]
})
export class ColorPickerModule {}