Skip to content

Commit c9987d4

Browse files
author
Brad Berger
committed
Removes npm postinstall command intended only for development of package itself
1 parent fbf2a53 commit c9987d4

File tree

4 files changed

+39
-36
lines changed

4 files changed

+39
-36
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ Use gulp to spin up the server and re-compile resources on the fly. The
117117
gulp `default` task does all that for you. Just make sure to Selenium is
118118
up and running:
119119

120+
```bash
121+
./node_modules/protractor/bin/webdriver-manager update
122+
```
123+
120124
```bash
121125
# In one terminal
122126
webdriver-manager start
@@ -154,8 +158,8 @@ appreciated!
154158

155159
## To Do
156160

157-
- Unit tests (the basic setup is there, need to fill them out)
158-
- Verify the correct handling of timezones (tests?)
161+
- [X] Unit tests (the basic setup is there, need to fill them out)
162+
- [X] Verify the correct handling of timezones (tests?)
159163
- Write documentation
160164
- Spread the work
161165
- Add to cdnjs, jsdelivr, etc.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "material-calendar",
3-
"version": "0.2.13",
3+
"version": "0.2.14",
44
"homepage": "https://github.com/bradberger/material-calendar",
55
"keywords": "angular material design calendar ngCalendar mdCalendar calendarMd calendar-md md-calendar ng-calendar",
66
"authors": [

gulpfile.js

+31-31
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@ function p(path) {
2121

2222
gulp.task("js", function() {
2323
return gulp
24-
.src(p("src/angular-material-calendar.js"))
25-
.pipe(eslint())
26-
.pipe(eslint.format())
27-
.pipe(gfi({
28-
"/* angular-material-calendar.html */": p("dist/angular-material-calendar.html"),
29-
"/* angular-material-calendar.css */": p("dist/angular-material-calendar.min.css")
30-
}))
31-
.pipe(gulp.dest("dist"))
32-
.pipe(gulp.dest(""))
33-
.pipe(uglify())
34-
.pipe(size({ gzip: true, prettySize: true }))
35-
.pipe(rename({ suffix: ".min" }))
36-
.pipe(gulp.dest("dist"))
37-
.pipe(gulp.dest(""));
24+
.src(p("src/angular-material-calendar.js"))
25+
.pipe(eslint())
26+
.pipe(eslint.format())
27+
.pipe(gfi({
28+
"/* angular-material-calendar.html */": p("dist/angular-material-calendar.html"),
29+
"/* angular-material-calendar.css */": p("dist/angular-material-calendar.min.css")
30+
}))
31+
.pipe(gulp.dest("dist"))
32+
.pipe(gulp.dest(""))
33+
.pipe(uglify())
34+
.pipe(size({ gzip: true, prettySize: true }))
35+
.pipe(rename({ suffix: ".min" }))
36+
.pipe(gulp.dest("dist"))
37+
.pipe(gulp.dest(""));
3838
});
3939

4040
gulp.task("html", function() {
4141
return gulp
42-
.src(p("src/angular-material-calendar.html"))
43-
.pipe(htmlmin({ collapseWhitespace: true }))
44-
.pipe(replace("\"", "'"))
45-
.pipe(gulp.dest(p("dist")))
46-
.pipe(gulp.dest(""))
47-
.pipe(connect.reload());
42+
.src(p("src/angular-material-calendar.html"))
43+
.pipe(htmlmin({ collapseWhitespace: true }))
44+
.pipe(replace("\"", "'"))
45+
.pipe(gulp.dest(p("dist")))
46+
.pipe(gulp.dest(""))
47+
.pipe(connect.reload());
4848
});
4949

5050
gulp.task("js:lint", function() {
@@ -64,19 +64,19 @@ gulp.task("js:lint-ci", function() {
6464

6565
gulp.task("scss", function() {
6666
return gulp
67-
.src(p("src/**/*.scss"))
68-
.pipe(sass()).on("error", sass.logError)
69-
.pipe(autoprefixer({
70-
browsers: ['last 2 versions'],
67+
.src(p("src/**/*.scss"))
68+
.pipe(sass()).on("error", sass.logError)
69+
.pipe(autoprefixer({
70+
browsers: ["last 2 versions"],
7171
cascade: false
7272
}))
73-
.pipe(gulp.dest("dist"))
74-
.pipe(gulp.dest(""))
75-
.pipe(minifyCSS())
76-
.pipe(rename({ suffix: ".min" }))
77-
.pipe(gulp.dest("dist"))
78-
.pipe(gulp.dest(""))
79-
.pipe(connect.reload());
73+
.pipe(gulp.dest("dist"))
74+
.pipe(gulp.dest(""))
75+
.pipe(minifyCSS())
76+
.pipe(rename({ suffix: ".min" }))
77+
.pipe(gulp.dest("dist"))
78+
.pipe(gulp.dest(""))
79+
.pipe(connect.reload());
8080
});
8181

8282
gulp.task("karma:tdd", function(done) {

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-material-calendar",
3-
"version": "0.2.13",
3+
"version": "0.2.14",
44
"description": "A calendar directive for AngularJS and Angular Material Design",
55
"keywords": [
66
"angular",
@@ -16,7 +16,6 @@
1616
],
1717
"main": "gulpfile.js",
1818
"scripts": {
19-
"postinstall": "./node_modules/protractor/bin/webdriver-manager update",
2019
"test": "karma start --single-run && gulp test"
2120
},
2221
"repository": {

0 commit comments

Comments
 (0)