Skip to content

Commit

Permalink
Remove bower (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 20, 2020
1 parent 3297000 commit df7f2ef
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
.vscode/
bower.json
cc-test-reporter
coverage/
dist/
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ script:
- gulp lint
- gulp build
- gulp test-unit
- gulp bower

# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
Expand Down
16 changes: 0 additions & 16 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

var gulp = require('gulp');
var eslint = require('gulp-eslint');
var file = require('gulp-file');
var { exec } = require('child_process');
var pkg = require('./package.json');
var karma = require('karma');
var path = require('path');

Expand Down Expand Up @@ -58,18 +56,4 @@ gulp.task('lint', function() {

gulp.task('check', gulp.parallel('lint', 'test-unit'));

gulp.task('bower', function() {
var json = JSON.stringify({
name: pkg.name,
description: pkg.description,
homepage: pkg.homepage,
license: pkg.license,
version: pkg.version,
main: argv.output + '/' + pkg.name + '.js'
}, null, 2);

return file('bower.json', json, { src: true })
.pipe(gulp.dest('./'));
});

gulp.task('default', gulp.parallel('build'));
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"time"
],
"files": [
"bower.json",
"dist/*.js"
],
"devDependencies": {
Expand All @@ -29,7 +28,6 @@
"eslint-config-chartjs": "^0.1.0",
"gulp": "^4.0.0",
"gulp-eslint": "^5.0.0",
"gulp-file": "^0.4.0",
"karma": "^4.0.1",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ git remote add auth-origin https://$GITHUB_AUTH_TOKEN@github.com/$TRAVIS_REPO_SL
git config --global user.email "$GITHUB_AUTH_EMAIL"
git config --global user.name "Chart.js"
git checkout --detach --quiet
git add -f dist/*.js bower.json
git add -f dist/*.js
git commit -m "Release $VERSION"
git tag -a "v$VERSION" -m "Version $VERSION"
git push -q auth-origin refs/tags/v$VERSION 2>/dev/null
Expand Down

0 comments on commit df7f2ef

Please sign in to comment.