replace zxq.co/ripple/hanayo
This commit is contained in:
37
semantic/tasks/config/admin/github.js
Normal file
37
semantic/tasks/config/admin/github.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*******************************
|
||||
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.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;
|
11
semantic/tasks/config/admin/oauth.example.js
Normal file
11
semantic/tasks/config/admin/oauth.example.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Used to import GitHub Auth Token
|
||||
To Automate GitHub Updates
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
token : 'AN-OAUTH2-TOKEN',
|
||||
username : 'github-username',
|
||||
name : 'Your Name',
|
||||
email : 'user@email.com'
|
||||
};
|
111
semantic/tasks/config/admin/release.js
Normal file
111
semantic/tasks/config/admin/release.js
Normal file
@@ -0,0 +1,111 @@
|
||||
/*******************************
|
||||
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',
|
||||
'container',
|
||||
'dimmer',
|
||||
'divider',
|
||||
'dropdown',
|
||||
'embed',
|
||||
'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',
|
||||
'visibility'
|
||||
]
|
||||
};
|
32
semantic/tasks/config/admin/templates/README.md
Normal file
32
semantic/tasks/config/admin/templates/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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)
|
||||
|
||||
**Special Note**
|
||||
An update in `2.0.8` has fixed an issue which may have prevented some single component modules from working correctly. Please see notes in [this pull request](https://github.com/Semantic-Org/Semantic-UI/pull/2816).
|
||||
|
||||
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
semantic/tasks/config/admin/templates/bower.json
Normal file
29
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"
|
||||
]
|
||||
}
|
14
semantic/tasks/config/admin/templates/component-package.js
Normal file
14
semantic/tasks/config/admin/templates/component-package.js
Normal file
@@ -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
semantic/tasks/config/admin/templates/composer.json
Normal file
20
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"
|
||||
}
|
34
semantic/tasks/config/admin/templates/css-package.js
Normal file
34
semantic/tasks/config/admin/templates/css-package.js
Normal file
@@ -0,0 +1,34 @@
|
||||
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.use('jquery', 'client');
|
||||
|
||||
api.addFiles([
|
||||
// icons
|
||||
'themes/default/assets/fonts/icons.eot',
|
||||
'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
semantic/tasks/config/admin/templates/less-package.js
Normal file
21
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
semantic/tasks/config/admin/templates/package.json
Normal file
17
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 New Issue
Block a user