Skip to content

Commit b778fbd

Browse files
authored
Remove Bower (#416)
1 parent bc0a656 commit b778fbd

File tree

5 files changed

+4
-27
lines changed

5 files changed

+4
-27
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ custom/*
55

66
docs/index.md
77

8-
bower.json
9-
bower_components/
10-
118
coverage/*
129

1310
nbproject/*

MAINTAINING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [
1818
Merging into the `release` branch kicks off the automated release process:
1919

2020
* build of the `dist/*.js` files
21-
* `dist/*.js` are copied to the root directory
22-
* `bower.json` is generated from `package.json`
23-
* `dist/*.js` and `bower.json` are added to a detached branch
21+
* `dist/*.js` is copied to the root directory
22+
* `dist/*.js` is added to a detached branch
2423
* a tag is created from the `package.json` version
2524
* tag (with dist files) is pushed to GitHub
2625

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Programmatically resets the zoom to the default state. See [samples/zoom-time.ht
130130

131131
To download a zip, go to the chartjs-plugin-zoom.js on Github
132132

133-
To install via npm / bower:
133+
To install via npm:
134134

135135
```bash
136136
npm install chartjs-plugin-zoom --save

gulpfile.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function run(bin, args, done) {
3434
ps.on('close', () => done());
3535
}
3636

37-
gulp.task('bower', bowerTask);
3837
gulp.task('build', gulp.series(rollupTask, copyDistFilesTask));
3938
gulp.task('package', packageTask);
4039
gulp.task('bump', bumpTask);
@@ -46,24 +45,6 @@ gulp.task('test', gulp.parallel('lint', 'unittest'));
4645
gulp.task('watch', watchTask);
4746
gulp.task('default', gulp.parallel('lint', 'build', 'watch'));
4847

49-
/**
50-
* Generates the bower.json manifest file which will be pushed along release tags.
51-
* Specs: https://github.com/bower/spec/blob/master/json.md
52-
*/
53-
function bowerTask() {
54-
var json = JSON.stringify({
55-
name: pkg.name,
56-
description: pkg.description,
57-
homepage: pkg.homepage,
58-
license: pkg.license,
59-
version: pkg.version,
60-
main: outDir + pkg.name + '.js'
61-
}, null, 2);
62-
63-
return file('bower.json', json, {src: true})
64-
.pipe(gulp.dest('./'));
65-
}
66-
6748
function rollupTask(done) {
6849
run('rollup/dist/bin/rollup', ['-c'], done);
6950
}

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ git remote add auth-origin https://[email protected]/$TRAVIS_REPO_SL
2121
git config --global user.email "$GITHUB_AUTH_EMAIL"
2222
git config --global user.name "Chart.js"
2323
git checkout --detach --quiet
24-
git add -f dist/*.js bower.json
24+
git add -f dist/*.js
2525
git commit -m "Release $VERSION"
2626
git tag -a "v$VERSION" -m "Version $VERSION"
2727
git push -q auth-origin refs/tags/v$VERSION 2>/dev/null

0 commit comments

Comments
 (0)