Browse Source
Merge branch 'meteor-integration' of https://github.com/MeteorPackaging/Semantic-UI into meteor
pull/1845/merge
Merge branch 'meteor-integration' of https://github.com/MeteorPackaging/Semantic-UI into meteor
pull/1845/merge
jlukic
9 years ago
13 changed files with 288 additions and 21 deletions
Split View
Diff Options
-
1.gitignore
-
9README.md
-
122gulpfile.js
-
38meteor/README.md
-
14meteor/tests/test_fonts.js
-
20meteor/tests/test_images.js
-
37package.js
-
2package.json
-
13tasks/admin/release.js
-
6tasks/admin/templates/README.md
-
15tasks/admin/templates/package-component.js
-
29tasks/admin/templates/package.js
-
3tasks/defaults.js
@ -0,0 +1,38 @@ |
|||
[Semantic-UI](http://semantic-ui.com/) packaged for [Meteor.js](http://meteor.com). |
|||
|
|||
# Usage |
|||
|
|||
```sh |
|||
meteor add semantic:ui |
|||
``` |
|||
|
|||
# Theming |
|||
|
|||
In case you wish to build your own theme you should follow the |
|||
[Recommended Usage (Themed)](https://github.com/Semantic-Org/Semantic-UI#recommended-usage-themed) |
|||
guide. |
|||
|
|||
After having build the project you'll get a ready to use meteor package |
|||
shipping your newly created theme. |
|||
Simply move the whole folder (or otherwise simlink it...) under your Meteor |
|||
app's `packages` folder run |
|||
|
|||
```sh |
|||
meteor add semantic:ui |
|||
``` |
|||
|
|||
from your app's main folder and that's it! |
|||
|
|||
|
|||
# Issues |
|||
|
|||
If you encounter a Meteor-related issue while using this package, |
|||
please CC @Semantic-Org/meteor when you |
|||
[file it](https://github.com/Semantic-Org/Semantic-UI/issues). |
|||
|
|||
|
|||
# Meteor |
|||
|
|||
If you're new to Meteor, here's what the excitement is all about - [watch the first two minutes](https://www.youtube.com/watch?v=fsi0aJ9yr2o); you'll be hooked by 1:28. |
|||
|
|||
That screencast is from 2012. In the meantime, Meteor has become a mature JavaScript-everywhere web development framework with numerous [advantages](http://www.meteorpedia.com/read/Why_Meteor) over all other single-page application frameworks. |
@ -0,0 +1,14 @@ |
|||
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
|
|||
['eot', 'otf', 'svg', 'ttf', 'woff'].forEach(function (ext) { |
|||
Tinytest.addAsync(ext + ' fonts are shipped', function (test, done) { |
|||
HTTP.get('/packages/semantic_ui/dist/themes/default/assets/fonts/icons.' + ext, function callback(error, result) { |
|||
if (error) { |
|||
test.fail({message: 'Font failed to load'}); |
|||
} else { |
|||
test.isTrue(result.content.length > 10000, ext + ' font could not be downloaded'); |
|||
} |
|||
|
|||
done(); |
|||
}); |
|||
}); |
|||
}); |
@ -0,0 +1,20 @@ |
|||
var images = [ |
|||
'dist/themes/default/assets/images/flags.png', |
|||
]; |
|||
|
|||
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
|
|||
images.forEach(function (path) { |
|||
Tinytest.addAsync('image ' + path + ' is shipped', function (test, done) { |
|||
HTTP.get('/packages/semantic_ui/' + path, function callback(error, result) { |
|||
if (error) { |
|||
test.fail({message: 'Image failed to load'}); |
|||
} else { |
|||
test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded'); |
|||
} |
|||
|
|||
done(); |
|||
}); |
|||
}); |
|||
}); |
|||
|
|||
|
@ -0,0 +1,37 @@ |
|||
Package.describe({ |
|||
name: 'semantic:ui', |
|||
summary: 'Semantic (official): a UI component framework based around useful principles from natural language.', |
|||
version: '1.7.0', |
|||
git: 'git://github.com/Semantic-Org/Semantic-UI.git', |
|||
readme: 'https://github.com/Semantic-Org/Semantic-UI/blob/master/meteor/README.md' |
|||
}); |
|||
|
|||
var where = 'client'; // Adds files only to the client
|
|||
|
|||
Package.onUse(function(api) { |
|||
api.versionsFrom('1.0'); |
|||
|
|||
api.addFiles([ |
|||
'dist/semantic.css', |
|||
'dist/semantic.js', |
|||
'dist/themes/default/assets/fonts/icons.eot', |
|||
'dist/themes/default/assets/fonts/icons.otf', |
|||
'dist/themes/default/assets/fonts/icons.svg', |
|||
'dist/themes/default/assets/fonts/icons.ttf', |
|||
'dist/themes/default/assets/fonts/icons.woff', |
|||
'dist/themes/default/assets/images/flags.png', |
|||
], where); |
|||
}); |
|||
|
|||
Package.onTest(function(api) { |
|||
api.use([ |
|||
'tinytest', |
|||
'http', |
|||
'semantic:ui' |
|||
], where); |
|||
|
|||
api.addFiles([ |
|||
'meteor/tests/test_fonts.js', |
|||
'meteor/tests/test_images.js', |
|||
], where); |
|||
}); |
@ -0,0 +1,15 @@ |
|||
Package.describe({ |
|||
name: 'semantic:ui-{component}', |
|||
summary: 'Semantic UI - {Component} (official): Single component release of {component}', |
|||
version: '{package-version}', |
|||
git: 'git://github.com/Semantic-Org/UI-{Component}.git', |
|||
}); |
|||
|
|||
var where = 'client'; // Adds files only to the client
|
|||
|
|||
Package.onUse(function(api) { |
|||
api.versionsFrom('1.0'); |
|||
|
|||
api.addFiles([ |
|||
{package-files} ], where); |
|||
}); |
@ -0,0 +1,29 @@ |
|||
Package.describe({ |
|||
name: 'semantic:ui', |
|||
summary: 'Semantic (official): a UI component framework based around useful principles from natural language.', |
|||
version: '{package-version}', |
|||
git: 'git://github.com/Semantic-Org/Semantic-UI.git', |
|||
readme: 'https://github.com/Semantic-Org/Semantic-UI/blob/master/meteor/README.md' |
|||
}); |
|||
|
|||
var where = 'client'; // Adds files only to the client
|
|||
|
|||
Package.onUse(function(api) { |
|||
api.versionsFrom('1.0'); |
|||
|
|||
api.addFiles([ |
|||
{package-files} ], where); |
|||
}); |
|||
|
|||
Package.onTest(function(api) { |
|||
api.use([ |
|||
'tinytest', |
|||
'http', |
|||
'semantic:ui' |
|||
], where); |
|||
|
|||
api.addFiles([ |
|||
'meteor/tests/test_fonts.js', |
|||
'meteor/tests/test_images.js', |
|||
], where); |
|||
}); |
Write
Preview
Loading…
Cancel
Save