Skip to content

Commit

Permalink
Clean up before release of v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Chariyski committed Oct 18, 2015
1 parent f0ed6af commit 45494c1
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ bower_components
app/scripts/bundle.js
app/styles/main.css
dist
TODO.txt
webstore
99 changes: 0 additions & 99 deletions app/elements/jira-agile-helper/jira-agile-helper.html

This file was deleted.

98 changes: 0 additions & 98 deletions app/elements/jira-fix-version-helper/jira-fix-version-helper.html

This file was deleted.

2 changes: 1 addition & 1 deletion app/html/app-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

iron-pages {
padding: 48px 62px;
padding: 48px 62px 0 48px;
}
}

Expand Down
2 changes: 0 additions & 2 deletions app/html/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

<!-- App elements -->
<link rel="import" href="../elements/scrum-cards/scrum-cards.html"/>
<link rel="import" href="../elements/jira-agile-helper/jira-agile-helper.html"/>
<link rel="import" href="../elements/jira-fix-version-helper/jira-fix-version-helper.html"/>
<link rel="import" href="../elements/jira-projects/jira-projects.html"/>

<!--Routes -->
Expand Down
5 changes: 1 addition & 4 deletions app/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

for (var i = 0; i < cards.length; i++) {
cards[i].classList.remove('scrum-card--remove-from-print');

}
};

Expand All @@ -64,6 +63,7 @@
*/
app.onMenuSelect = function () {
let drawerPanel = this.$['paper-drawer-panel'];

if (drawerPanel.narrow) {
drawerPanel.closeDrawer();
}
Expand Down Expand Up @@ -103,7 +103,6 @@

for (var i = 0; i < cards.length; i++) {
cards[i].classList.add('scrum-card--remove-from-print');

}
};

Expand Down Expand Up @@ -200,7 +199,6 @@
that._getProjects();
that._getSprintsForProject();
that._handlerForInsufficientUserSettings();

});
};

Expand Down Expand Up @@ -259,7 +257,6 @@
}
}
}

};

chrome.storage.sync.set(optionsToBeSaved, function () {
Expand Down
2 changes: 1 addition & 1 deletion app/styles/less/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ iron-pages {

// todo add to media queries
.design-options-container {
padding: 48px 62px;
padding: 48px 62px 0 48px;

paper-button[toggles] {
padding: 0;
Expand Down
25 changes: 16 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ var clean = require('gulp-clean'),
plumber = require('gulp-plumber'),
runSequence = require('gulp-run-sequence'),
path = require('path'),
less = require('gulp-less');
less = require('gulp-less'),
zip = require('gulp-zip');

// Delete dist folder
gulp.task('clean', function () {
Expand Down Expand Up @@ -65,13 +66,10 @@ gulp.task('vulcanize', function () {
.pipe(gulp.dest('dist/html'));
});

// Tasks
gulp.task('default', function (callback) {
runSequence(['less', 'concat', 'copy', 'vulcanize'], callback);
});

gulp.task('build', function (callback) {
runSequence('clean', 'default', callback);
gulp.task('zip', function () {
return gulp.src('dist/*')
.pipe(zip('package.zip'))
.pipe(gulp.dest('webstore'));
});

gulp.task('watch', function () {
Expand All @@ -82,4 +80,13 @@ gulp.task('watch', function () {
gulp.watch('app/scripts/main.js', ['default']);
});

gulp.task('serve', ['build', 'watch']);
// Tasks
gulp.task('default', function (callback) {
runSequence('clean', ['less'], ['concat'], ['copy'], ['vulcanize'], callback);
});

gulp.task('dist', function () {
runSequence('default', 'zip');
});

gulp.task('serve', ['default', 'watch']);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"gulp-run-sequence": "^0.3.2",
"gulp-sourcemaps": "^1.5.2",
"gulp-vulcanize": "^6.0.1",
"gulp-watch": "^4.3.5"
"gulp-watch": "^4.3.5",
"gulp-zip": "^3.0.2"
},
"engines": {
"node": ">=0.8.0"
Expand Down

0 comments on commit 45494c1

Please sign in to comment.