Permalink
Browse files

Added files from Umbrella JS to inherit the build system

  • Loading branch information...
1 parent b5cd069 commit 4d301dd51f5e2de2f74059067dd5641e1703181b @franciscop franciscop committed Jan 18, 2016
Showing with 3,126 additions and 465 deletions.
  1. +2 −3 .gitignore
  2. +0 −5 .scss-lint.yml
  3. +1 −0 CNAME
  4. +98 −0 Gruntfile.js
  5. +1 −1 LICENSE
  6. +0 −1 Procfile
  7. +532 −0 documentation.html
  8. +832 −110 documentation.md
  9. +0 −71 gulpfile.js
  10. +55 −0 index.html
  11. +66 −0 src/plugins/button/_class.scss
  12. 0 { → src}/plugins/button/_plugin.scss
  13. 0 { → src}/plugins/button/description.html
  14. +159 −0 src/plugins/button/documentation.md
  15. 0 { → src}/plugins/button/info.json
  16. 0 { → src}/plugins/button/test.html
  17. 0 { → src}/plugins/card/_class.scss
  18. 0 { → src}/plugins/card/_plugin.scss
  19. 0 { → src}/plugins/card/description.html
  20. 0 { → src}/plugins/card/documentation.md
  21. 0 { → src}/plugins/card/info.json
  22. 0 { → src}/plugins/card/test.html
  23. 0 { → src}/plugins/checkbox/_class.scss
  24. 0 { → src}/plugins/checkbox/_plugin.scss
  25. 0 { → src}/plugins/checkbox/description.html
  26. 0 { → src}/plugins/checkbox/documentation.md
  27. 0 { → src}/plugins/checkbox/info.json
  28. 0 { → src}/plugins/checkbox/test.html
  29. 0 { → src}/plugins/dropimage/_class.scss
  30. 0 { → src}/plugins/dropimage/_plugin.scss
  31. 0 { → src}/plugins/dropimage/camera.svg
  32. 0 { → src}/plugins/dropimage/camera_original.svg
  33. 0 { → src}/plugins/dropimage/description.html
  34. 0 { → src}/plugins/dropimage/documentation.md
  35. 0 { → src}/plugins/dropimage/info.json
  36. 0 { → src}/plugins/dropimage/test.html
  37. 0 { → src}/plugins/fontello/_plugin.scss
  38. 0 { → src}/plugins/fontello/info.json
  39. +68 −0 src/plugins/generic/_plugin.scss
  40. 0 { → src}/plugins/generic/info.json
  41. 0 { → src}/plugins/grids/_plugin.scss
  42. 0 { → src}/plugins/grids/description.html
  43. 0 { → src}/plugins/grids/documentation.md
  44. 0 { → src}/plugins/grids/info.json
  45. 0 { → src}/plugins/grids/test.html
  46. 0 { → src}/plugins/input/_plugin.scss
  47. 0 { → src}/plugins/input/description.html
  48. 0 { → src}/plugins/input/documentation.md
  49. 0 { → src}/plugins/input/info.json
  50. 0 { → src}/plugins/input/test.html
  51. 0 { → src}/plugins/label/_plugin.scss
  52. 0 { → src}/plugins/label/description.html
  53. 0 { → src}/plugins/label/documentation.md
  54. 0 { → src}/plugins/label/info.json
  55. 0 { → src}/plugins/label/test.html
  56. 0 { → src}/plugins/modal/_plugin.scss
  57. 0 { → src}/plugins/modal/description.html
  58. 0 { → src}/plugins/modal/documentation.md
  59. 0 { → src}/plugins/modal/info.json
  60. 0 { → src}/plugins/modal/test.html
  61. +76 −0 src/plugins/nav/_class.scss
  62. +138 −0 src/plugins/nav/_plugin.scss
  63. 0 { → src}/plugins/nav/description.html
  64. 0 { → src}/plugins/nav/documentation.md
  65. 0 { → src}/plugins/nav/info.json
  66. 0 { → src}/plugins/nav/test.html
  67. 0 { → src}/plugins/normalize/_plugin.scss
  68. 0 { → src}/plugins/normalize/info.json
  69. 0 { → src}/plugins/radio/_class.scss
  70. 0 { → src}/plugins/radio/_plugin.scss
  71. 0 { → src}/plugins/radio/description.html
  72. 0 { → src}/plugins/radio/documentation.md
  73. 0 { → src}/plugins/radio/info.json
  74. 0 { → src}/plugins/radio/test.html
  75. 0 { → src}/plugins/select/_class.scss
  76. 0 { → src}/plugins/select/_plugin.scss
  77. 0 { → src}/plugins/select/arrow.svg
  78. 0 { → src}/plugins/select/arrow_original.svg
  79. 0 { → src}/plugins/select/description.html
  80. 0 { → src}/plugins/select/info.json
  81. 0 { → src}/plugins/select/test.html
  82. 0 { → src}/plugins/stack/_plugin.scss
  83. 0 { → src}/plugins/stack/description.html
  84. 0 { → src}/plugins/stack/documentation.md
  85. 0 { → src}/plugins/stack/info.json
  86. 0 { → src}/plugins/stack/test.html
  87. 0 { → src}/plugins/table/_plugin.scss
  88. 0 { → src}/plugins/table/description.html
  89. 0 { → src}/plugins/table/info.json
  90. 0 { → src}/plugins/table/test.html
  91. +98 −0 src/plugins/tabs/_plugin.scss
  92. 0 { → src}/plugins/tabs/description.html
  93. 0 { → src}/plugins/tabs/documentation.md
  94. 0 { → src}/plugins/tabs/info.json
  95. 0 { → src}/plugins/tabs/test.html
  96. 0 { → src}/plugins/tooltip/_plugin.scss
  97. 0 { → src}/plugins/tooltip/description.html
  98. 0 { → src}/plugins/tooltip/documentation.md
  99. 0 { → src}/plugins/tooltip/info.json
  100. 0 { → src}/plugins/tooltip/test.html
  101. +44 −0 tests.html
  102. +0 −29 themes/default/_colors.scss
  103. +0 −30 themes/default/_theme.scss
  104. +0 −29 themes/squared/_colors.scss
  105. +0 −10 themes/squared/_plugins.scss
  106. +0 −38 themes/squared/_theme.scss
  107. +629 −0 umbrella.js
  108. +2 −0 umbrella.min.js
  109. +0 −88 web/controller.js
  110. 0 web/{views/documentation.jade → documentation.html.jade}
  111. BIN web/favicon.ico
  112. +273 −0 web/index.html.jade
  113. +52 −0 web/layout.jade
  114. 0 web/{views/test.jade → tests.html.jade}
  115. +0 −8 web/views/404.jade
  116. +0 −9 web/views/plugin.jade
  117. +0 −33 web/views/pluginindex.jade
View
@@ -1,3 +1,2 @@
-node_modules
-web/nut/*.scss
-web/nut/*.css
+.git
+node_modules
View
@@ -1,5 +0,0 @@
-linters:
- PropertySortOrder:
- enabled: false
- PlaceholderInExtend:
- enabled: false
View
@@ -0,0 +1 @@
+picnicss.com
View
@@ -0,0 +1,98 @@
+fs = require('fs');
+
+// This builds the library itself
+module.exports = function (grunt) {
+
+ // Configuration
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ uglify: {
+ options: { banner: '/* Umbrella JS ' + require('./package').version + ' umbrellajs.com */\n'},
+ build: { src: 'umbrella.js', dest: 'umbrella.min.js' }
+ },
+
+ watch: {
+ scripts: {
+ files: [
+ 'package.js', // To bump versions
+ 'Gruntfile.js',
+ 'src/*.js',
+ 'src/*.md',
+ 'src/plugins/*.js',
+ 'src/plugins/*.md',
+ 'src/plugins/*/*.js',
+ 'src/plugins/*/*.md',
+ 'web/*.jade',
+ 'web/*'
+ ],
+ tasks: ['default'],
+ options: { spawn: false, },
+ }
+ },
+
+ jade: {
+ compile: {
+ options: {
+ client: false
+ },
+ files: [ {
+ cwd: "web",
+ src: "**/*.html.jade",
+ dest: ".",
+ expand: true,
+ ext: ".html"
+ } ]
+ }
+ },
+
+ mocha_phantomjs: {
+ all: './tests.html'
+ }
+ });
+
+ // Dynamically add plugins to the concat
+ // Order of include is irrelevant http://stackoverflow.com/q/7609276
+ grunt.registerTask("parse", "Join and concatenate", function(){
+
+ // get the current concat config
+ var concat = {
+ main: { src: [ 'src/umbrella.js' ], dest: 'umbrella.js' },
+ test: { src: [ 'src/test.js' ], dest: 'test/test.js' },
+ docs: { src: [ 'src/documentation.md' ], dest: 'documentation.md' }
+ };
+
+ fs.readdirSync(__dirname + "/src/plugins").forEach(function(name, i){
+ var file = 'src/plugins/' + name + '/' + name + '.js';
+ var test = 'src/plugins/' + name + '/test.js';
+ var doc = 'src/plugins/' + name + '/documentation.md';
+
+ if (!fs.existsSync(file)) throw new Error("File '" + file + "' doesn't exist");
+
+ concat.main.src.push(file);
+ concat.test.src.push(test);
+ concat.docs.src.push(doc);
+ });
+
+ // save the new concat configuration
+ grunt.config.set('concat', concat);
+ });
+
+ // Concatenate
+ grunt.loadNpmTasks('grunt-contrib-concat');
+
+ // Minify
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+
+ // Watch
+ grunt.loadNpmTasks('grunt-contrib-watch');
+
+ // Jade
+ grunt.loadNpmTasks('grunt-contrib-jade');
+
+ // Testing
+ grunt.loadNpmTasks('grunt-mocha-phantomjs');
+
+ // 4. Where we tell Grunt what to do when we type "grunt" into the terminal
+ grunt.registerTask('default', ['parse', 'concat', 'uglify', 'jade', 'mocha_phantomjs']);
+};
View
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2014 picnicss
+Copyright (c) 2014 Francisco Presencia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
@@ -1 +0,0 @@
-web: node app.js
Oops, something went wrong.

0 comments on commit 4d301dd

Please sign in to comment.