9 changed files with 133 additions and 16 deletions
Split View
Diff Options
-
2tasks/admin/components/create.js
-
24tasks/admin/distributions/create.js
-
2tasks/admin/release.js
-
16tasks/config/admin/release.js
-
0tasks/config/admin/templates/component-package.js
-
47tasks/config/admin/templates/css-package.js
-
47tasks/config/admin/templates/less-package.js
-
7tasks/docs/serve.js
-
4tasks/watch.js
@ -0,0 +1,47 @@ |
|||
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) { |
|||
|
|||
var |
|||
fs = require('fs'), |
|||
path = require('path'), |
|||
files, |
|||
walk |
|||
; |
|||
|
|||
// recursive sync walk
|
|||
walk = function(dir) { |
|||
var |
|||
dir = dir || __dirname, |
|||
list = fs.readdirSync(dir), |
|||
files = [] |
|||
; |
|||
list.forEach(function(file) { |
|||
var |
|||
filePath = path.join(dir, file), |
|||
stat = fs.statSync(filePath) |
|||
; |
|||
if(stat && stat.isDirectory() && file !== 'node_modules') { |
|||
files = files.concat(walk(filePath)); |
|||
} |
|||
else { |
|||
files.push(filePath); |
|||
} |
|||
}) |
|||
return files |
|||
} |
|||
files = walk(); |
|||
|
|||
api.versionsFrom('1.0'); |
|||
api.addFiles(files, 'clent'); |
|||
|
|||
}); |
@ -0,0 +1,47 @@ |
|||
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) { |
|||
|
|||
var |
|||
fs = require('fs'), |
|||
path = require('path'), |
|||
files, |
|||
walk |
|||
; |
|||
|
|||
// recursive sync walk
|
|||
walk = function(dir) { |
|||
var |
|||
dir = dir || __dirname, |
|||
list = fs.readdirSync(dir), |
|||
files = [] |
|||
; |
|||
list.forEach(function(file) { |
|||
var |
|||
filePath = path.join(dir, file), |
|||
stat = fs.statSync(filePath) |
|||
; |
|||
if(stat && stat.isDirectory() && file !== 'node_modules') { |
|||
files = files.concat(walk(filePath)); |
|||
} |
|||
else { |
|||
files.push(filePath); |
|||
} |
|||
}) |
|||
return files |
|||
} |
|||
files = walk(); |
|||
|
|||
api.versionsFrom('1.0'); |
|||
api.addFiles(files, 'clent'); |
|||
|
|||
}); |
Write
Preview
Loading…
Cancel
Save