Browse Source

Updates to allow commit authors in releases

pull/1208/head
jlukic 10 years ago
parent
commit
32ebc6862b
7 changed files with 37 additions and 27 deletions
  1. 16
      dist/components/image.css
  2. 2
      dist/components/image.min.css
  3. 16
      dist/semantic.css
  4. 2
      dist/semantic.min.css
  5. 20
      gulpfile.js
  6. 6
      tasks/admin/oauth.example.js
  7. 2
      tasks/admin/templates/README.md

16
dist/components/image.css

@ -179,49 +179,49 @@ img.ui.bordered.image {
.ui.mini.images img,
.ui.mini.image {
width: 20px;
font-size: 0.7em;
font-size: 0.7142rem;
}
.ui.tiny.images .image,
.ui.tiny.images img,
.ui.tiny.image {
width: 80px;
font-size: 0.8em;
font-size: 0.8571rem;
}
.ui.small.images .image,
.ui.small.images img,
.ui.small.image {
width: 150px;
font-size: 0.875em;
font-size: 0.9285rem;
}
.ui.medium.images .image,
.ui.medium.images img,
.ui.medium.image {
width: 300px;
font-size: 1em;
font-size: 1rem;
}
.ui.large.images .image,
.ui.large.images img,
.ui.large.image {
width: 450px;
font-size: 1.125em;
font-size: 1.1428rem;
}
.ui.big.images .image,
.ui.big.images img,
.ui.big.image {
width: 600px;
font-size: 1.25em;
font-size: 1.2857rem;
}
.ui.huge.images .image,
.ui.huge.images img,
.ui.huge.image {
width: 800px;
font-size: 1.375em;
font-size: 1.4285rem;
}
.ui.massive.images .image,
.ui.massive.images img,
.ui.massive.image {
width: 960px;
font-size: 1.5em;
font-size: 1.7142rem;
}

2
dist/components/image.min.css

@ -8,4 +8,4 @@
* http://opensource.org/licenses/MIT
*
*/
.ui.image{position:relative;display:inline-block;vertical-align:middle;max-width:100%;background-color:transparent}img.ui.image{display:block;background:0 0}.ui.image img{display:block;max-width:100%;height:auto}.ui.disabled.image{cursor:default;opacity:.3}.ui.inline.image,.ui.inline.image img{display:inline-block}.ui.top.aligned.image,.ui.top.aligned.image img,.ui.top.aligned.images .image{display:inline-block;vertical-align:top}.ui.middle.aligned.image,.ui.middle.aligned.image img,.ui.middle.aligned.images .image{display:inline-block;vertical-align:middle}.ui.bottom.aligned.image,.ui.bottom.aligned.image img,.ui.bottom.aligned.images .image{display:inline-block;vertical-align:bottom}.ui.rounded.image,.ui.rounded.image img,.ui.rounded.images .image,.ui.rounded.images img{border-radius:.3125em}.ui.bordered.image img,.ui.bordered.images .image,.ui.bordered.images img,img.ui.bordered.image{border:1px solid rgba(0,0,0,.1)}.ui.circular.image,.ui.circular.images{overflow:hidden}.ui.circular.image,.ui.circular.image img,.ui.circular.images .image,.ui.circular.images img{border-radius:500rem}.ui.fluid.image,.ui.fluid.image img,.ui.fluid.images,.ui.fluid.images img{display:block;width:100%}.ui.avatar.image,.ui.avatar.image img,.ui.avatar.images .image,.ui.avatar.images img{margin-right:.25em;display:inline-block;width:2.5em;height:2.5em;border-radius:500rem}.ui.floated.image,.ui.floated.images{float:left;margin-right:1em;margin-bottom:1em}.ui.right.floated.image,.ui.right.floated.images{float:right;margin-right:0;margin-bottom:1em;margin-left:1em}.ui.floated.image:last-child,.ui.floated.images:last-child{margin-bottom:0}.ui.centered.image,.ui.centered.images{margin-left:auto;margin-right:auto}.ui.mini.image,.ui.mini.images .image,.ui.mini.images img{width:20px;font-size:.7em}.ui.tiny.image,.ui.tiny.images .image,.ui.tiny.images img{width:80px;font-size:.8em}.ui.small.image,.ui.small.images .image,.ui.small.images img{width:150px;font-size:.875em}.ui.medium.image,.ui.medium.images .image,.ui.medium.images img{width:300px;font-size:1em}.ui.large.image,.ui.large.images .image,.ui.large.images img{width:450px;font-size:1.125em}.ui.big.image,.ui.big.images .image,.ui.big.images img{width:600px;font-size:1.25em}.ui.huge.image,.ui.huge.images .image,.ui.huge.images img{width:800px;font-size:1.375em}.ui.massive.image,.ui.massive.images .image,.ui.massive.images img{width:960px;font-size:1.5em}.ui.images{font-size:0;margin:0 -.25rem}.ui.images .image,.ui.images img{display:inline-block;margin:0 .25rem .5rem}
.ui.image{position:relative;display:inline-block;vertical-align:middle;max-width:100%;background-color:transparent}img.ui.image{display:block;background:0 0}.ui.image img{display:block;max-width:100%;height:auto}.ui.disabled.image{cursor:default;opacity:.3}.ui.inline.image,.ui.inline.image img{display:inline-block}.ui.top.aligned.image,.ui.top.aligned.image img,.ui.top.aligned.images .image{display:inline-block;vertical-align:top}.ui.middle.aligned.image,.ui.middle.aligned.image img,.ui.middle.aligned.images .image{display:inline-block;vertical-align:middle}.ui.bottom.aligned.image,.ui.bottom.aligned.image img,.ui.bottom.aligned.images .image{display:inline-block;vertical-align:bottom}.ui.rounded.image,.ui.rounded.image img,.ui.rounded.images .image,.ui.rounded.images img{border-radius:.3125em}.ui.bordered.image img,.ui.bordered.images .image,.ui.bordered.images img,img.ui.bordered.image{border:1px solid rgba(0,0,0,.1)}.ui.circular.image,.ui.circular.images{overflow:hidden}.ui.circular.image,.ui.circular.image img,.ui.circular.images .image,.ui.circular.images img{border-radius:500rem}.ui.fluid.image,.ui.fluid.image img,.ui.fluid.images,.ui.fluid.images img{display:block;width:100%}.ui.avatar.image,.ui.avatar.image img,.ui.avatar.images .image,.ui.avatar.images img{margin-right:.25em;display:inline-block;width:2.5em;height:2.5em;border-radius:500rem}.ui.floated.image,.ui.floated.images{float:left;margin-right:1em;margin-bottom:1em}.ui.right.floated.image,.ui.right.floated.images{float:right;margin-right:0;margin-bottom:1em;margin-left:1em}.ui.floated.image:last-child,.ui.floated.images:last-child{margin-bottom:0}.ui.centered.image,.ui.centered.images{margin-left:auto;margin-right:auto}.ui.mini.image,.ui.mini.images .image,.ui.mini.images img{width:20px;font-size:.7142rem}.ui.tiny.image,.ui.tiny.images .image,.ui.tiny.images img{width:80px;font-size:.8571rem}.ui.small.image,.ui.small.images .image,.ui.small.images img{width:150px;font-size:.9285rem}.ui.medium.image,.ui.medium.images .image,.ui.medium.images img{width:300px;font-size:1rem}.ui.large.image,.ui.large.images .image,.ui.large.images img{width:450px;font-size:1.1428rem}.ui.big.image,.ui.big.images .image,.ui.big.images img{width:600px;font-size:1.2857rem}.ui.huge.image,.ui.huge.images .image,.ui.huge.images img{width:800px;font-size:1.4285rem}.ui.massive.image,.ui.massive.images .image,.ui.massive.images img{width:960px;font-size:1.7142rem}.ui.images{font-size:0;margin:0 -.25rem}.ui.images .image,.ui.images img{display:inline-block;margin:0 .25rem .5rem}

16
dist/semantic.css

@ -13782,56 +13782,56 @@ img.ui.bordered.image {
.ui.mini.images img,
.ui.mini.image {
width: 20px;
font-size: 0.7em;
font-size: 0.7142rem;
}
.ui.tiny.images .image,
.ui.tiny.images img,
.ui.tiny.image {
width: 80px;
font-size: 0.8em;
font-size: 0.8571rem;
}
.ui.small.images .image,
.ui.small.images img,
.ui.small.image {
width: 150px;
font-size: 0.875em;
font-size: 0.9285rem;
}
.ui.medium.images .image,
.ui.medium.images img,
.ui.medium.image {
width: 300px;
font-size: 1em;
font-size: 1rem;
}
.ui.large.images .image,
.ui.large.images img,
.ui.large.image {
width: 450px;
font-size: 1.125em;
font-size: 1.1428rem;
}
.ui.big.images .image,
.ui.big.images img,
.ui.big.image {
width: 600px;
font-size: 1.25em;
font-size: 1.2857rem;
}
.ui.huge.images .image,
.ui.huge.images img,
.ui.huge.image {
width: 800px;
font-size: 1.375em;
font-size: 1.4285rem;
}
.ui.massive.images .image,
.ui.massive.images img,
.ui.massive.image {
width: 960px;
font-size: 1.5em;
font-size: 1.7142rem;
}
/*******************************

2
dist/semantic.min.css
File diff suppressed because it is too large
View File

20
gulpfile.js

@ -57,7 +57,7 @@ var
git = require('gulp-git'),
githubAPI = require('github'),
oAuthToken = fs.existsSync('./tasks/admin/oauth.js')
oAuth = fs.existsSync('./tasks/admin/oauth.js')
? require('./tasks/admin/oauth')
: false,
github,
@ -622,7 +622,7 @@ gulp.task('release', false, function() {
// Ask for release type (minor, major, patch)
// Bump package.json
// Bump composer.json
if(!oAuthToken) {
if(!oAuth) {
console.error('Must add node include tasks/admin/oauth.js with oauth token for GitHub');
return;
}
@ -636,12 +636,12 @@ gulp.task('release', false, function() {
github.authenticate({
type: 'oauth',
token: oAuthToken
token: oAuth.token
});
// gulp build
runSequence('update git');
//runSequence('build', 'create repos', 'update git');
//runSequence('update git');
runSequence('build', 'create repos', 'update git');
// #Create SCSS Version
// #Create RTL Release
@ -911,6 +911,9 @@ gulp.task('update git', false, function() {
componentPackage = fs.existsSync(outputDirectory + 'package.json' )
? require(outputDirectory + 'package.json')
: false,
commitArgs = (oAuth.name !== undefined && oAuth.email !== undefined)
? '--author "' + oAuth.name + ' <' + oAuth.email + '>"'
: '',
isNewVersion = (componentPackage.version != version),
commitMessage = (isNewVersion)
? 'Updated component to version ' + version
@ -926,18 +929,18 @@ gulp.task('update git', false, function() {
createRepo();
}
// standard path
function commitFiles() {
// commit files
console.log('Committing files');
console.log('Committing files', commitArgs);
gulp.src('**/*', gitOptions)
.pipe(git.add(gitOptions))
.pipe(git.commit(commitMessage, gitOptions))
.pipe(git.commit(commitMessage, { args: commitArgs, cwd: outputDirectory }))
.on('error', function(error) {
console.log('Nothing new to commit');
stepRepo();
})
.on('finish', function(callback) {
console.log('here');
if(isNewVersion) {
tagFiles();
}
@ -963,6 +966,7 @@ gulp.task('update git', false, function() {
stepRepo();
});
};
// set-up path
function createRepo() {
console.log('Creating repository ' + repoURL);

6
tasks/admin/oauth.example.js

@ -1 +1,5 @@
module.exports = 'OAUTH-KEY-HERE';
module.exports = {
token : 'AN-OAUTH2-TOKEN',
name : 'Your Name',
email : 'user@email.com'
};

2
tasks/admin/templates/README.md

@ -4,6 +4,8 @@ This repository contains pre-compiled {component} files using the default themes
For the latest changes please see the Release Notes in this repository.
If you're looking for the full version of Semantic including all components and build tools [check out the main project repository](https://github.com/Semantic-Org/Semantic-UI/tree/1.0)
#### To install with Bower
```
bower install semantic-ui-{component}

Loading…
Cancel
Save