Skip to content

Commit

Permalink
initial commit for showcasing Semantic-Org/Semantic-UI#2653
Browse files Browse the repository at this point in the history
  • Loading branch information
fholzer committed Jul 21, 2015
0 parents commit b08d5e8
Show file tree
Hide file tree
Showing 415 changed files with 64,833 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules
semantic/dist
12 changes: 12 additions & 0 deletions gulpfile.js
@@ -0,0 +1,12 @@
var gulp = require('gulp');
var console = require('better-console');
var watch = require('./semantic/tasks/watch');
var build = require('./semantic/tasks/build');

gulp.task('default', function(done) {
console.log("Run run gulp build and watch tasks to showcase the issue.");
done();
});

gulp.task('build', build);
gulp.task('watch', watch);
42 changes: 42 additions & 0 deletions package.json
@@ -0,0 +1,42 @@
{
"name": "semantic-ui-showcase-2653",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"better-console": "0.2.4",
"del": "1.2.0",
"extend": "3.0.0",
"gulp": "3.9.0",
"gulp-autoprefixer": "2.3.1",
"gulp-chmod": "1.2.0",
"gulp-clone": "1.0.0",
"gulp-concat": "2.6.0",
"gulp-concat-css": "2.2.0",
"gulp-copy": "0.0.2",
"gulp-flatten": "0.1.0",
"gulp-header": "1.2.2",
"gulp-help": "1.6.0",
"gulp-if": "1.2.5",
"gulp-less": "3.0.3",
"gulp-minify-css": "1.2.0",
"gulp-notify": "2.2.0",
"gulp-plumber": "1.0.1",
"gulp-print": "1.1.0",
"gulp-rename": "1.2.2",
"gulp-replace": "0.5.3",
"gulp-rtlcss": "0.1.4",
"gulp-uglify": "1.2.0",
"gulp-util": "3.0.6",
"gulp-watch": "4.3.3",
"map-stream": "0.0.6",
"require-dot-file": "0.4.0",
"semantic-ui": "2.0.5",
"yamljs": "0.2.3"
}
}
21 changes: 21 additions & 0 deletions semantic.json
@@ -0,0 +1,21 @@
{
"base": "semantic\\",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dist/components/",
"themes": "dist/themes/"
},
"clean": "dist/"
},
"permission": false,
"rtl": false,
"version": "2.0.5"
}
72 changes: 72 additions & 0 deletions semantic/gulpfile.js
@@ -0,0 +1,72 @@
/*******************************
Set-up
*******************************/

var
gulp = require('gulp-help')(require('gulp')),

// read user config to know what task to load
config = require('./tasks/config/user'),

// watch changes
watch = require('./tasks/watch'),

// build all files
build = require('./tasks/build'),
buildJS = require('./tasks/build/javascript'),
buildCSS = require('./tasks/build/css'),
buildAssets = require('./tasks/build/assets'),

// utility
clean = require('./tasks/clean'),
version = require('./tasks/version'),

// docs tasks
serveDocs = require('./tasks/docs/serve'),
buildDocs = require('./tasks/docs/build'),

// rtl
buildRTL = require('./tasks/rtl/build'),
watchRTL = require('./tasks/rtl/watch')
;


/*******************************
Tasks
*******************************/

gulp.task('default', false, [
'watch'
]);

gulp.task('watch', 'Watch for site/theme changes', watch);

gulp.task('build', 'Builds all files from source', build);
gulp.task('build-javascript', 'Builds all javascript from source', buildJS);
gulp.task('build-css', 'Builds all css from source', buildCSS);
gulp.task('build-assets', 'Copies all assets from source', buildAssets);

gulp.task('clean', 'Clean dist folder', clean);
gulp.task('version', 'Displays current version of Semantic', version);

/*--------------
Docs
---------------*/

/*
Lets you serve files to a local documentation instance
https://github.com/Semantic-Org/Semantic-UI-Docs/
*/

gulp.task('serve-docs', 'Serve file changes to SUI Docs', serveDocs);
gulp.task('build-docs', 'Build all files and add to SUI Docs', buildDocs);


/*--------------
RTL
---------------*/

if(config.rtl) {
gulp.task('watch-rtl', 'Build all files as RTL', watchRTL);
gulp.task('build-rtl', 'Watch files as RTL ', buildRTL);
}

0 comments on commit b08d5e8

Please sign in to comment.