Update Semantic
Fixes #40,#24
This commit is contained in:
parent
1715f27f44
commit
2027b94179
621 changed files with 172488 additions and 15939 deletions
38
web/semantic/tasks/config/admin/github.js
Normal file
38
web/semantic/tasks/config/admin/github.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*******************************
|
||||
GitHub Login
|
||||
*******************************/
|
||||
/*
|
||||
Logs into GitHub using OAuth
|
||||
*/
|
||||
|
||||
var
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
githubAPI = require('github'),
|
||||
|
||||
// stores oauth info for GitHub API
|
||||
oAuthConfig = path.join(__dirname, 'oauth.js'),
|
||||
oAuth = fs.existsSync(oAuthConfig)
|
||||
? require(oAuthConfig)
|
||||
: false,
|
||||
github
|
||||
;
|
||||
|
||||
if(!oAuth) {
|
||||
console.log('here');
|
||||
console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js');
|
||||
}
|
||||
|
||||
github = new githubAPI({
|
||||
version : '3.0.0',
|
||||
debug : true,
|
||||
protocol : 'https',
|
||||
timeout : 5000
|
||||
});
|
||||
|
||||
github.authenticate({
|
||||
type: 'oauth',
|
||||
token: oAuth.token
|
||||
});
|
||||
|
||||
module.exports = github;
|
10
web/semantic/tasks/config/admin/oauth.example.js
Normal file
10
web/semantic/tasks/config/admin/oauth.example.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
Used to import GitHub Auth Token
|
||||
To Automate GitHub Updates
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
token : 'AN-OAUTH2-TOKEN',
|
||||
name : 'Your Name',
|
||||
email : 'user@email.com'
|
||||
};
|
110
web/semantic/tasks/config/admin/release.js
Normal file
110
web/semantic/tasks/config/admin/release.js
Normal file
|
@ -0,0 +1,110 @@
|
|||
/*******************************
|
||||
Release Settings
|
||||
*******************************/
|
||||
|
||||
// release settings
|
||||
module.exports = {
|
||||
|
||||
// path to components for repos
|
||||
source : './dist/components/',
|
||||
|
||||
// modified asset paths for component repos
|
||||
paths: {
|
||||
source : '../themes/default/assets/',
|
||||
output : 'assets/'
|
||||
},
|
||||
|
||||
templates: {
|
||||
bower : './tasks/config/admin/templates/bower.json',
|
||||
composer : './tasks/config/admin/templates/composer.json',
|
||||
package : './tasks/config/admin/templates/package.json',
|
||||
meteor : {
|
||||
css : './tasks/config/admin/templates/css-package.js',
|
||||
component : './tasks/config/admin/templates/component-package.js',
|
||||
less : './tasks/config/admin/templates/less-package.js',
|
||||
},
|
||||
readme : './tasks/config/admin/templates/README.md',
|
||||
notes : './RELEASE-NOTES.md'
|
||||
},
|
||||
|
||||
org : 'Semantic-Org',
|
||||
repo : 'Semantic-UI',
|
||||
|
||||
// files created for package managers
|
||||
files: {
|
||||
composer : 'composer.json',
|
||||
config : 'semantic.json',
|
||||
npm : 'package.json',
|
||||
meteor : 'package.js'
|
||||
},
|
||||
|
||||
// root name for distribution repos
|
||||
distRepoRoot : 'Semantic-UI-',
|
||||
|
||||
// root name for single component repos
|
||||
componentRepoRoot : 'UI-',
|
||||
|
||||
// root name for package managers
|
||||
packageRoot : 'semantic-ui-',
|
||||
|
||||
// root path to repos
|
||||
outputRoot : '../repos/',
|
||||
|
||||
homepage : 'http://www.semantic-ui.com',
|
||||
|
||||
// distributions that get separate repos
|
||||
distributions: [
|
||||
'LESS',
|
||||
'CSS'
|
||||
],
|
||||
|
||||
// components that get separate repositories for bower/npm
|
||||
components : [
|
||||
'accordion',
|
||||
'ad',
|
||||
'api',
|
||||
'breadcrumb',
|
||||
'button',
|
||||
'card',
|
||||
'checkbox',
|
||||
'comment',
|
||||
'dimmer',
|
||||
'divider',
|
||||
'dropdown',
|
||||
'feed',
|
||||
'flag',
|
||||
'form',
|
||||
'grid',
|
||||
'header',
|
||||
'icon',
|
||||
'image',
|
||||
'input',
|
||||
'item',
|
||||
'label',
|
||||
'list',
|
||||
'loader',
|
||||
'menu',
|
||||
'message',
|
||||
'modal',
|
||||
'nag',
|
||||
'popup',
|
||||
'progress',
|
||||
'rail',
|
||||
'rating',
|
||||
'reset',
|
||||
'reveal',
|
||||
'search',
|
||||
'segment',
|
||||
'shape',
|
||||
'sidebar',
|
||||
'site',
|
||||
'statistic',
|
||||
'step',
|
||||
'sticky',
|
||||
'tab',
|
||||
'table',
|
||||
'transition',
|
||||
'video',
|
||||
'visibility'
|
||||
]
|
||||
};
|
29
web/semantic/tasks/config/admin/templates/README.md
Normal file
29
web/semantic/tasks/config/admin/templates/README.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Semantic {Component}
|
||||
|
||||
This repository contains pre-compiled {component} files using the default themes. This is intended for use in projects that do not need all the bells and whistles of Semantic UI, and want to keep file size to a minimum.
|
||||
|
||||
For the latest changes please see the [Release Notes](https://github.com/Semantic-Org/UI-{Component}/blob/master/RELEASE-NOTES.md)
|
||||
|
||||
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}
|
||||
```
|
||||
|
||||
#### To install with NPM
|
||||
```
|
||||
npm install semantic-ui-{component}
|
||||
```
|
||||
|
||||
#### To install with Meteor
|
||||
```
|
||||
meteor add semantic:ui-{component}
|
||||
```
|
||||
|
||||
|
||||
## Addendum
|
||||
|
||||
This element's definitions (required class names, html structures) are available in the [UI Docs](http://www.semantic-ui.com)
|
||||
|
||||
Please consider checking out [all the benefits to theming](http://www.learnsemantic.com/guide/expert.html) before using these stand-alone releases.
|
29
web/semantic/tasks/config/admin/templates/bower.json
Normal file
29
web/semantic/tasks/config/admin/templates/bower.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name" : "Component",
|
||||
"description" : "Component distribution",
|
||||
"homepage" : "http://www.semantic-ui.com",
|
||||
"author": {
|
||||
"name" : "Jack Lukic",
|
||||
"web" : "http://www.jacklukic.com"
|
||||
},
|
||||
"ignore": [
|
||||
"./index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"semantic",
|
||||
"ui",
|
||||
"css3",
|
||||
"framework"
|
||||
],
|
||||
"license" : [
|
||||
"http://semantic-ui.mit-license.org/"
|
||||
],
|
||||
"ignore": [
|
||||
"docs",
|
||||
"node",
|
||||
"server",
|
||||
"spec",
|
||||
"src",
|
||||
"test"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
Package.describe({
|
||||
name : 'semantic:ui-{component}',
|
||||
summary : 'Semantic UI - {Component}: Single component release',
|
||||
version : '{version}',
|
||||
git : 'git://github.com/Semantic-Org/UI-{Component}.git',
|
||||
});
|
||||
|
||||
Package.onUse(function(api) {
|
||||
api.versionsFrom('1.0');
|
||||
api.addFiles([
|
||||
{files}
|
||||
], 'client');
|
||||
});
|
20
web/semantic/tasks/config/admin/templates/composer.json
Normal file
20
web/semantic/tasks/config/admin/templates/composer.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name" : "semantic/ui",
|
||||
"description" : "Semantic empowers designers and developers by creating a shared vocabulary for UI.",
|
||||
"homepage" : "http://www.semantic-ui.com",
|
||||
"authors": [
|
||||
{
|
||||
"name" : "Jack Lukic",
|
||||
"email": "jacklukic@gmail.com",
|
||||
"web" : "http://www.jacklukic.com",
|
||||
"role" : "Creator"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"semantic",
|
||||
"ui",
|
||||
"css",
|
||||
"framework"
|
||||
],
|
||||
"license" : "MIT"
|
||||
}
|
33
web/semantic/tasks/config/admin/templates/css-package.js
Normal file
33
web/semantic/tasks/config/admin/templates/css-package.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
var
|
||||
where = 'client' // Adds files only to the client
|
||||
;
|
||||
|
||||
Package.describe({
|
||||
name : 'semantic:ui-css',
|
||||
summary : 'Semantic UI - CSS Release of Semantic UI',
|
||||
version : '{version}',
|
||||
git : 'git://github.com/Semantic-Org/Semantic-UI-CSS.git',
|
||||
});
|
||||
|
||||
Package.onUse(function(api) {
|
||||
|
||||
api.versionsFrom('1.0');
|
||||
|
||||
api.addFiles([
|
||||
// icons
|
||||
'themes/default/assets/fonts/icons.eot',
|
||||
'themes/default/assets/fonts/icons.otf',
|
||||
'themes/default/assets/fonts/icons.svg',
|
||||
'themes/default/assets/fonts/icons.ttf',
|
||||
'themes/default/assets/fonts/icons.woff',
|
||||
'themes/default/assets/fonts/icons.woff2',
|
||||
|
||||
// flags
|
||||
'themes/default/assets/images/flags.png',
|
||||
|
||||
// release
|
||||
'semantic.css',
|
||||
'semantic.js'
|
||||
], 'client');
|
||||
|
||||
});
|
21
web/semantic/tasks/config/admin/templates/less-package.js
Normal file
21
web/semantic/tasks/config/admin/templates/less-package.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
var
|
||||
where = 'client' // Adds files only to the client
|
||||
;
|
||||
|
||||
Package.describe({
|
||||
name : 'semantic:ui',
|
||||
summary : 'Semantic UI - LESS Release of Semantic UI',
|
||||
version : '{version}',
|
||||
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
|
||||
});
|
||||
|
||||
Package.onUse(function(api) {
|
||||
|
||||
api.versionsFrom('1.0');
|
||||
api.use('less', 'client');
|
||||
|
||||
api.addFiles([
|
||||
{files}
|
||||
], 'client');
|
||||
|
||||
});
|
17
web/semantic/tasks/config/admin/templates/package.json
Normal file
17
web/semantic/tasks/config/admin/templates/package.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "semantic",
|
||||
"version": "1.0.0",
|
||||
"title": "Semantic UI",
|
||||
"description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.",
|
||||
"homepage": "http://www.semantic-ui.com",
|
||||
"author": "Jack Lukic <jack@semantic-ui.com>",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Semantic-Org/Semantic-UI.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Semantic-Org/Semantic-UI/issues"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
Reference in a new issue