fomantic-ui 2.9.1-beta.17 → 2.9.1-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/.eslintrc.js +109 -0
  2. package/.github/workflows/ci.yml +13 -3
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +569 -598
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +2 -2
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1161 -1184
  10. package/dist/components/api.min.js +2 -2
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +1895 -1818
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +842 -841
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +3 -1
  28. package/dist/components/container.min.css +2 -2
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +708 -737
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +2 -2
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +11 -8
  36. package/dist/components/dropdown.js +4161 -4238
  37. package/dist/components/dropdown.min.css +2 -2
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +651 -675
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +2 -2
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +6 -3
  48. package/dist/components/flyout.js +1464 -1467
  49. package/dist/components/flyout.min.css +2 -2
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1979 -2004
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +2 -2
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/message.css +1 -1
  74. package/dist/components/message.min.css +1 -1
  75. package/dist/components/modal.css +7 -1
  76. package/dist/components/modal.js +1491 -1487
  77. package/dist/components/modal.min.css +2 -2
  78. package/dist/components/modal.min.js +2 -2
  79. package/dist/components/nag.css +1 -1
  80. package/dist/components/nag.js +518 -529
  81. package/dist/components/nag.min.css +1 -1
  82. package/dist/components/nag.min.js +2 -2
  83. package/dist/components/placeholder.css +1 -1
  84. package/dist/components/placeholder.min.css +1 -1
  85. package/dist/components/popup.css +1 -1
  86. package/dist/components/popup.js +1437 -1456
  87. package/dist/components/popup.min.css +1 -1
  88. package/dist/components/popup.min.js +2 -2
  89. package/dist/components/progress.css +1 -1
  90. package/dist/components/progress.js +969 -997
  91. package/dist/components/progress.min.css +1 -1
  92. package/dist/components/progress.min.js +2 -2
  93. package/dist/components/rail.css +1 -1
  94. package/dist/components/rail.min.css +1 -1
  95. package/dist/components/rating.css +1 -1
  96. package/dist/components/rating.js +505 -523
  97. package/dist/components/rating.min.css +1 -1
  98. package/dist/components/rating.min.js +2 -2
  99. package/dist/components/reset.css +1 -1
  100. package/dist/components/reset.min.css +1 -1
  101. package/dist/components/reveal.css +1 -1
  102. package/dist/components/reveal.min.css +1 -1
  103. package/dist/components/search.css +3 -1
  104. package/dist/components/search.js +1498 -1534
  105. package/dist/components/search.min.css +2 -2
  106. package/dist/components/search.min.js +2 -2
  107. package/dist/components/segment.css +3 -1
  108. package/dist/components/segment.min.css +2 -2
  109. package/dist/components/shape.css +1 -1
  110. package/dist/components/shape.js +792 -809
  111. package/dist/components/shape.min.css +1 -1
  112. package/dist/components/shape.min.js +2 -2
  113. package/dist/components/sidebar.css +3 -1
  114. package/dist/components/sidebar.js +1071 -1098
  115. package/dist/components/sidebar.min.css +2 -2
  116. package/dist/components/sidebar.min.js +2 -2
  117. package/dist/components/site.css +1 -1
  118. package/dist/components/site.js +462 -471
  119. package/dist/components/site.min.css +1 -1
  120. package/dist/components/site.min.js +2 -2
  121. package/dist/components/slider.js +1287 -1311
  122. package/dist/components/slider.min.js +2 -2
  123. package/dist/components/state.js +639 -657
  124. package/dist/components/state.min.js +2 -2
  125. package/dist/components/statistic.css +1 -1
  126. package/dist/components/statistic.min.css +1 -1
  127. package/dist/components/step.css +1 -1
  128. package/dist/components/step.min.css +1 -1
  129. package/dist/components/sticky.css +1 -1
  130. package/dist/components/sticky.js +857 -903
  131. package/dist/components/sticky.min.css +1 -1
  132. package/dist/components/sticky.min.js +2 -2
  133. package/dist/components/tab.css +1 -1
  134. package/dist/components/tab.js +922 -963
  135. package/dist/components/tab.min.css +1 -1
  136. package/dist/components/tab.min.js +2 -2
  137. package/dist/components/table.css +5 -1
  138. package/dist/components/table.min.css +2 -2
  139. package/dist/components/text.css +1 -1
  140. package/dist/components/text.min.css +1 -1
  141. package/dist/components/toast.css +1 -1
  142. package/dist/components/toast.js +886 -890
  143. package/dist/components/toast.min.css +1 -1
  144. package/dist/components/toast.min.js +2 -2
  145. package/dist/components/transition.css +1 -1
  146. package/dist/components/transition.js +1041 -1077
  147. package/dist/components/transition.min.css +1 -1
  148. package/dist/components/transition.min.js +2 -2
  149. package/dist/components/visibility.js +1220 -1244
  150. package/dist/components/visibility.min.js +2 -2
  151. package/dist/semantic.css +84 -60
  152. package/dist/semantic.js +28949 -29435
  153. package/dist/semantic.min.css +2 -2
  154. package/dist/semantic.min.js +2 -2
  155. package/examples/assets/show-examples.js +13 -13
  156. package/gulpfile.js +9 -10
  157. package/package.json +5 -2
  158. package/scripts/nightly-version.js +81 -75
  159. package/src/definitions/behaviors/api.js +1162 -1185
  160. package/src/definitions/behaviors/form.js +1978 -2003
  161. package/src/definitions/behaviors/state.js +645 -663
  162. package/src/definitions/behaviors/visibility.js +1219 -1243
  163. package/src/definitions/collections/table.less +2 -0
  164. package/src/definitions/elements/container.less +1 -0
  165. package/src/definitions/elements/segment.less +1 -0
  166. package/src/definitions/globals/site.js +461 -470
  167. package/src/definitions/modules/accordion.js +568 -597
  168. package/src/definitions/modules/calendar.js +1894 -1817
  169. package/src/definitions/modules/checkbox.js +841 -840
  170. package/src/definitions/modules/dimmer.js +707 -736
  171. package/src/definitions/modules/dropdown.js +4160 -4237
  172. package/src/definitions/modules/dropdown.less +5 -8
  173. package/src/definitions/modules/embed.js +650 -674
  174. package/src/definitions/modules/flyout.js +1463 -1466
  175. package/src/definitions/modules/flyout.less +15 -12
  176. package/src/definitions/modules/modal.js +1490 -1486
  177. package/src/definitions/modules/modal.less +3 -0
  178. package/src/definitions/modules/nag.js +517 -528
  179. package/src/definitions/modules/popup.js +1436 -1455
  180. package/src/definitions/modules/progress.js +968 -996
  181. package/src/definitions/modules/rating.js +504 -522
  182. package/src/definitions/modules/search.js +1497 -1533
  183. package/src/definitions/modules/search.less +1 -0
  184. package/src/definitions/modules/shape.js +791 -808
  185. package/src/definitions/modules/sidebar.js +1070 -1097
  186. package/src/definitions/modules/sidebar.less +1 -0
  187. package/src/definitions/modules/slider.js +1286 -1310
  188. package/src/definitions/modules/sticky.js +873 -919
  189. package/src/definitions/modules/tab.js +921 -962
  190. package/src/definitions/modules/toast.js +885 -889
  191. package/src/definitions/modules/transition.js +1040 -1076
  192. package/src/themes/default/elements/container.variables +0 -7
  193. package/src/themes/default/elements/segment.variables +0 -7
  194. package/src/themes/default/globals/site.variables +7 -0
  195. package/src/themes/default/globals/variation.variables +1 -0
  196. package/tasks/admin/components/create.js +274 -276
  197. package/tasks/admin/components/init.js +123 -130
  198. package/tasks/admin/components/update.js +149 -157
  199. package/tasks/admin/distributions/create.js +184 -187
  200. package/tasks/admin/distributions/init.js +123 -130
  201. package/tasks/admin/distributions/update.js +145 -152
  202. package/tasks/admin/publish.js +5 -7
  203. package/tasks/admin/register.js +36 -38
  204. package/tasks/admin/release.js +8 -10
  205. package/tasks/build/assets.js +42 -39
  206. package/tasks/build/css.js +225 -216
  207. package/tasks/build/javascript.js +118 -113
  208. package/tasks/build.js +10 -10
  209. package/tasks/check-install.js +14 -16
  210. package/tasks/clean.js +5 -5
  211. package/tasks/collections/admin.js +34 -36
  212. package/tasks/collections/build.js +18 -20
  213. package/tasks/collections/docs.js +9 -11
  214. package/tasks/collections/install.js +9 -11
  215. package/tasks/collections/rtl.js +9 -11
  216. package/tasks/collections/various.js +8 -10
  217. package/tasks/config/admin/github.js +17 -17
  218. package/tasks/config/admin/oauth.example.js +4 -4
  219. package/tasks/config/admin/release.js +98 -98
  220. package/tasks/config/admin/templates/component-package.js +9 -10
  221. package/tasks/config/admin/templates/css-package.js +18 -20
  222. package/tasks/config/admin/templates/less-package.js +11 -13
  223. package/tasks/config/defaults.js +116 -116
  224. package/tasks/config/docs.js +23 -23
  225. package/tasks/config/npm/gulpfile.js +8 -9
  226. package/tasks/config/project/config.js +127 -134
  227. package/tasks/config/project/install.js +715 -713
  228. package/tasks/config/project/release.js +32 -38
  229. package/tasks/config/tasks.js +163 -164
  230. package/tasks/config/user.js +23 -29
  231. package/tasks/docs/build.js +97 -95
  232. package/tasks/docs/metadata.js +90 -96
  233. package/tasks/docs/serve.js +80 -81
  234. package/tasks/install.js +370 -378
  235. package/tasks/rtl/build.js +2 -2
  236. package/tasks/rtl/watch.js +2 -2
  237. package/tasks/version.js +4 -4
  238. package/tasks/watch.js +28 -30
  239. package/test/meteor/assets.js +10 -13
  240. package/test/meteor/fonts.js +12 -13
  241. package/test/modules/accordion.spec.js +6 -8
  242. package/test/modules/checkbox.spec.js +5 -7
  243. package/test/modules/dropdown.spec.js +5 -7
  244. package/test/modules/modal.spec.js +6 -8
  245. package/test/modules/module.spec.js +158 -178
  246. package/test/modules/popup.spec.js +5 -7
  247. package/test/modules/search.spec.js +5 -7
  248. package/test/modules/shape.spec.js +5 -7
  249. package/test/modules/sidebar.spec.js +5 -7
  250. package/test/modules/tab.spec.js +6 -8
  251. package/test/modules/transition.spec.js +5 -7
  252. package/test/modules/video.spec.js +5 -7
@@ -3,40 +3,40 @@
3
3
  *******************************/
4
4
 
5
5
  const
6
- gulp = require('gulp'),
7
-
8
- // node dependencies
9
- console = require('better-console'),
10
-
11
- // gulp dependencies
12
- chmod = require('gulp-chmod'),
13
- concat = require('gulp-concat'),
14
- dedupe = require('gulp-dedupe'),
15
- flatten = require('gulp-flatten'),
16
- gulpif = require('gulp-if'),
17
- header = require('gulp-header'),
18
- normalize = require('normalize-path'),
19
- plumber = require('gulp-plumber'),
20
- print = require('gulp-print').default,
21
- rename = require('gulp-rename'),
22
- replace = require('gulp-replace'),
23
- uglify = require('gulp-uglify'),
24
-
25
- // config
26
- config = require('./../config/user'),
27
- docsConfig = require('./../config/docs'),
28
- tasks = require('../config/tasks'),
29
- install = require('../config/project/install'),
30
-
31
- // shorthand
32
- globs = config.globs,
33
- assets = config.paths.assets,
34
-
35
- banner = tasks.banner,
36
- filenames = tasks.filenames,
37
- comments = tasks.regExp.comments,
38
- log = tasks.log,
39
- settings = tasks.settings
6
+ gulp = require('gulp'),
7
+
8
+ // node dependencies
9
+ console = require('better-console'),
10
+
11
+ // gulp dependencies
12
+ chmod = require('gulp-chmod'),
13
+ concat = require('gulp-concat'),
14
+ dedupe = require('gulp-dedupe'),
15
+ flatten = require('gulp-flatten'),
16
+ gulpif = require('gulp-if'),
17
+ header = require('gulp-header'),
18
+ normalize = require('normalize-path'),
19
+ plumber = require('gulp-plumber'),
20
+ print = require('gulp-print').default,
21
+ rename = require('gulp-rename'),
22
+ replace = require('gulp-replace'),
23
+ uglify = require('gulp-uglify'),
24
+
25
+ // config
26
+ config = require('../config/user'),
27
+ docsConfig = require('../config/docs'),
28
+ tasks = require('../config/tasks'),
29
+ install = require('../config/project/install'),
30
+
31
+ // shorthand
32
+ globs = config.globs,
33
+ assets = config.paths.assets,
34
+
35
+ banner = tasks.banner,
36
+ filenames = tasks.filenames,
37
+ comments = tasks.regExp.comments,
38
+ log = tasks.log,
39
+ settings = tasks.settings
40
40
  ;
41
41
 
42
42
  /**
@@ -47,19 +47,19 @@ const
47
47
  * @return {*}
48
48
  */
49
49
  function build(src, type, config) {
50
- return gulp.src(src)
51
- .pipe(plumber())
52
- .pipe(flatten())
53
- .pipe(replace(comments.license.in, comments.license.out))
54
- .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
55
- .pipe(gulp.dest(config.paths.output.uncompressed))
56
- .pipe(print(log.created))
57
- .pipe(uglify(settings.uglify))
58
- .pipe(rename(settings.rename.minJS))
59
- .pipe(header(banner, settings.header))
60
- .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
61
- .pipe(gulp.dest(config.paths.output.compressed))
62
- .pipe(print(log.created))
50
+ return gulp.src(src)
51
+ .pipe(plumber())
52
+ .pipe(flatten())
53
+ .pipe(replace(comments.license.in, comments.license.out))
54
+ .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
55
+ .pipe(gulp.dest(config.paths.output.uncompressed))
56
+ .pipe(print(log.created))
57
+ .pipe(uglify(settings.uglify))
58
+ .pipe(rename(settings.rename.minJS))
59
+ .pipe(header(banner, settings.header))
60
+ .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
61
+ .pipe(gulp.dest(config.paths.output.compressed))
62
+ .pipe(print(log.created))
63
63
  ;
64
64
  }
65
65
 
@@ -69,91 +69,96 @@ function build(src, type, config) {
69
69
  * @param {boolean} compress - should the output be compressed
70
70
  */
71
71
  function pack(type, compress) {
72
- const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
73
- const concatenatedJS = compress ? filenames.concatenatedMinifiedJS : filenames.concatenatedJS;
74
-
75
- return gulp.src(output.uncompressed + '/**/' + globs.components + globs.ignored + '.js')
76
- .pipe(plumber())
77
- .pipe(dedupe())
78
- .pipe(replace(assets.uncompressed, assets.packaged))
79
- .pipe(concat(concatenatedJS))
80
- .pipe(gulpif(config.stripHeaders, replace(comments.header.in, comments.header.out)))
81
- .pipe(gulpif(compress, uglify(settings.concatUglify)))
82
- .pipe(header(banner, settings.header))
83
- .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
84
- .pipe(gulp.dest(output.packaged))
85
- .pipe(print(log.created))
72
+ const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
73
+ const concatenatedJS = compress ? filenames.concatenatedMinifiedJS : filenames.concatenatedJS;
74
+
75
+ return gulp.src(output.uncompressed + '/**/' + globs.components + globs.ignored + '.js')
76
+ .pipe(plumber())
77
+ .pipe(dedupe())
78
+ .pipe(replace(assets.uncompressed, assets.packaged))
79
+ .pipe(concat(concatenatedJS))
80
+ .pipe(gulpif(config.stripHeaders, replace(comments.header.in, comments.header.out)))
81
+ .pipe(gulpif(compress, uglify(settings.concatUglify)))
82
+ .pipe(header(banner, settings.header))
83
+ .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
84
+ .pipe(gulp.dest(output.packaged))
85
+ .pipe(print(log.created))
86
86
  ;
87
87
  }
88
88
 
89
89
  function buildJS(src, type, config, callback) {
90
- if (!install.isSetup()) {
91
- console.error('Cannot build Javascript. Run "gulp install" to set-up Semantic');
92
- callback();
93
- return;
94
- }
90
+ if (!install.isSetup()) {
91
+ console.error('Cannot build Javascript. Run "gulp install" to set-up Semantic');
92
+ callback();
95
93
 
96
- if (callback === undefined) {
97
- callback = config;
98
- config = type;
99
- type = src;
100
- src = config.paths.source.definitions + '/**/' + config.globs.components + (config.globs.ignored || '') + '.js';
101
- }
94
+ return;
95
+ }
96
+
97
+ if (callback === undefined) {
98
+ callback = config;
99
+ config = type;
100
+ type = src;
101
+ src = config.paths.source.definitions + '/**/' + config.globs.components + (config.globs.ignored || '') + '.js';
102
+ }
102
103
 
103
- if (globs.individuals !== undefined && typeof src === 'string') {
104
- const components = config.globs.components.replace(/[{}]/g,'') + ',' + config.globs.individuals.replace(/[{}]/g,'');
104
+ if (globs.individuals !== undefined && typeof src === 'string') {
105
+ const components = config.globs.components.replace(/[{}]/g, '') + ',' + config.globs.individuals.replace(/[{}]/g, '');
105
106
 
106
- src = config.paths.source.definitions + '/**/{' + components + '}' + (config.globs.ignored || '') + '.js';
107
- }
107
+ src = config.paths.source.definitions + '/**/{' + components + '}' + (config.globs.ignored || '') + '.js';
108
+ }
108
109
 
109
- // copy source javascript
110
- const js = () => build(src, type, config);
111
- js.displayName = "Building un/compressed Javascript";
110
+ // copy source javascript
111
+ const js = () => build(src, type, config);
112
+ js.displayName = 'Building un/compressed Javascript';
112
113
 
113
- const packUncompressed = () => pack(type, false);
114
- packUncompressed.displayName = 'Packing uncompressed Javascript';
114
+ const packUncompressed = () => pack(type, false);
115
+ packUncompressed.displayName = 'Packing uncompressed Javascript';
115
116
 
116
- const packCompressed = () => pack(type, true);
117
- packCompressed.displayName = 'Packing compressed Javascript';
117
+ const packCompressed = () => pack(type, true);
118
+ packCompressed.displayName = 'Packing compressed Javascript';
118
119
 
119
- gulp.series(js, gulp.parallel(packUncompressed, packCompressed))(callback);
120
+ gulp.series(js, gulp.parallel(packUncompressed, packCompressed))(callback);
120
121
  }
121
122
 
122
123
  module.exports = function (callback) {
123
- buildJS(false, config, callback);
124
+ buildJS(false, config, callback);
124
125
  };
125
126
 
126
127
  // We keep the changed files in an array to call build with all of them at the same time
127
- let timeout, files = [];
128
+ let
129
+ timeout,
130
+ files = []
131
+ ;
128
132
 
129
133
  module.exports.watch = function (type, config) {
130
- gulp
131
- .watch([normalize(config.paths.source.definitions + '/**/*.js')])
132
- .on('all', function (event, path) {
133
- // We don't handle deleted files yet
134
- if (event === 'unlink' || event === 'unlinkDir') {
135
- return;
136
- }
137
-
138
- // Clear timeout
139
- timeout && clearTimeout(timeout);
140
-
141
- // Add file to internal changed files array
142
- if (!files.includes(path)) {
143
- files.push(path);
144
- }
145
-
146
- // Update timeout
147
- timeout = setTimeout(() => {
148
- console.log('Change in javascript detected');
149
- // Copy files to build in another array
150
- const buildFiles = [...files];
151
- // Call method
152
- gulp.series((callback) => buildJS(buildFiles, type, config, callback))();
153
- // Reset internal changed files array
154
- files = [];
155
- }, 1000);
156
- });
134
+ gulp
135
+ .watch([normalize(config.paths.source.definitions + '/**/*.js')])
136
+ .on('all', function (event, path) {
137
+ // We don't handle deleted files yet
138
+ if (event === 'unlink' || event === 'unlinkDir') {
139
+ return;
140
+ }
141
+
142
+ // Clear timeout
143
+ timeout && clearTimeout(timeout);
144
+
145
+ // Add file to internal changed files array
146
+ if (!files.includes(path)) {
147
+ files.push(path);
148
+ }
149
+
150
+ // Update timeout
151
+ timeout = setTimeout(() => {
152
+ console.log('Change in javascript detected');
153
+ // Copy files to build in another array
154
+ const buildFiles = [...files];
155
+ // Call method
156
+ gulp.series((callback) => buildJS(buildFiles, type, config, callback))();
157
+ // Reset internal changed files array
158
+ files = [];
159
+ }, 1000);
160
+ })
161
+ ;
157
162
  };
158
163
 
159
164
  module.exports.buildJS = buildJS;
package/tasks/build.js CHANGED
@@ -3,21 +3,21 @@
3
3
  *******************************/
4
4
 
5
5
  var
6
- // dependencies
7
- gulp = require('gulp'),
6
+ // dependencies
7
+ gulp = require('gulp'),
8
8
 
9
- // config
10
- install = require('./config/project/install')
9
+ // config
10
+ install = require('./config/project/install')
11
11
  ;
12
12
 
13
13
  module.exports = function (callback) {
14
+ console.info('Building Semantic');
14
15
 
15
- console.info('Building Semantic');
16
+ if (!install.isSetup()) {
17
+ console.error('Cannot find semantic.json. Run "gulp install" to set-up Semantic');
16
18
 
17
- if (!install.isSetup()) {
18
- console.error('Cannot find semantic.json. Run "gulp install" to set-up Semantic');
19
- return 1;
20
- }
19
+ return 1;
20
+ }
21
21
 
22
- gulp.series('build-css', 'build-javascript', 'build-assets')(callback);
22
+ gulp.series('build-css', 'build-javascript', 'build-assets')(callback);
23
23
  };
@@ -3,25 +3,23 @@
3
3
  *******************************/
4
4
 
5
5
  var
6
- // node dependencies
7
- gulp = require('gulp'),
8
- console = require('better-console'),
9
- isSetup = require('./config/project/install').isSetup,
6
+ // node dependencies
7
+ gulp = require('gulp'),
8
+ console = require('better-console'),
9
+ isSetup = require('./config/project/install').isSetup,
10
10
 
11
- install = require('./install'),
12
- watch = require('./watch')
11
+ install = require('./install'),
12
+ watch = require('./watch')
13
13
  ;
14
14
 
15
15
  // export task
16
16
  module.exports = function (callback) {
17
-
18
- setTimeout(function () {
19
- if (!isSetup()) {
20
- console.log('Starting install...');
21
- install(callback);
22
- } else {
23
- watch(callback);
24
- }
25
- }, 50); // Delay to allow console.clear to remove messages from check event
26
-
17
+ setTimeout(function () {
18
+ if (!isSetup()) {
19
+ console.log('Starting install...');
20
+ install(callback);
21
+ } else {
22
+ watch(callback);
23
+ }
24
+ }, 50); // Delay to allow console.clear to remove messages from check event
27
25
  };
package/tasks/clean.js CHANGED
@@ -3,12 +3,12 @@
3
3
  *******************************/
4
4
 
5
5
  var
6
- del = require('del'),
7
- config = require('./config/user'),
8
- tasks = require('./config/tasks')
6
+ del = require('del'),
7
+ config = require('./config/user'),
8
+ tasks = require('./config/tasks')
9
9
  ;
10
10
 
11
11
  // cleans distribution files
12
- module.exports = function() {
13
- return del([config.paths.clean], tasks.settings.del);
12
+ module.exports = function () {
13
+ return del([config.paths.clean], tasks.settings.del);
14
14
  };
@@ -13,52 +13,50 @@
13
13
  * Tasks
14
14
  *******************************/
15
15
 
16
-
17
16
  module.exports = function (gulp) {
18
- var
19
- // less/css distributions
20
- initComponents = require('../admin/components/init'),
21
- createComponents = require('../admin/components/create'),
22
- updateComponents = require('../admin/components/update'),
23
-
24
- // single component releases
25
- initDistributions = require('../admin/distributions/init'),
26
- createDistributions = require('../admin/distributions/create'),
27
- updateDistributions = require('../admin/distributions/update'),
17
+ var
18
+ // less/css distributions
19
+ initComponents = require('../admin/components/init'),
20
+ createComponents = require('../admin/components/create'),
21
+ updateComponents = require('../admin/components/update'),
28
22
 
29
- release = require('../admin/release'),
30
- publish = require('../admin/publish'),
31
- register = require('../admin/register')
32
- ;
23
+ // single component releases
24
+ initDistributions = require('../admin/distributions/init'),
25
+ createDistributions = require('../admin/distributions/create'),
26
+ updateDistributions = require('../admin/distributions/update'),
33
27
 
34
- /* Release */
35
- gulp.task('init distributions', initDistributions);
36
- gulp.task('init distributions').description = 'Grabs each component from GitHub';
28
+ release = require('../admin/release'),
29
+ publish = require('../admin/publish'),
30
+ register = require('../admin/register')
31
+ ;
37
32
 
38
- gulp.task('create distributions', createDistributions);
39
- gulp.task('create distributions').description = 'Updates files in each repo';
33
+ /* Release */
34
+ gulp.task('init distributions', initDistributions);
35
+ gulp.task('init distributions').description = 'Grabs each component from GitHub';
40
36
 
41
- gulp.task('init components', initComponents);
42
- gulp.task('init components').description = 'Grabs each component from GitHub';
37
+ gulp.task('create distributions', createDistributions);
38
+ gulp.task('create distributions').description = 'Updates files in each repo';
43
39
 
44
- gulp.task('create components', createComponents);
45
- gulp.task('create components').description = 'Updates files in each repo';
40
+ gulp.task('init components', initComponents);
41
+ gulp.task('init components').description = 'Grabs each component from GitHub';
46
42
 
47
- /* Publish */
48
- gulp.task('update distributions', updateDistributions);
49
- gulp.task('update distributions').description = 'Commits component updates from create to GitHub';
43
+ gulp.task('create components', createComponents);
44
+ gulp.task('create components').description = 'Updates files in each repo';
50
45
 
51
- gulp.task('update components', updateComponents);
52
- gulp.task('update components').description = 'Commits component updates from create to GitHub';
46
+ /* Publish */
47
+ gulp.task('update distributions', updateDistributions);
48
+ gulp.task('update distributions').description = 'Commits component updates from create to GitHub';
53
49
 
54
- /* Tasks */
55
- gulp.task('release', release);
56
- gulp.task('release').description = 'Stages changes in GitHub repos for all distributions';
50
+ gulp.task('update components', updateComponents);
51
+ gulp.task('update components').description = 'Commits component updates from create to GitHub';
57
52
 
58
- gulp.task('publish', publish);
59
- gulp.task('publish').description = 'Publishes all releases (components, package)';
53
+ /* Tasks */
54
+ gulp.task('release', release);
55
+ gulp.task('release').description = 'Stages changes in GitHub repos for all distributions';
60
56
 
61
- gulp.task('register', register);
62
- gulp.task('register').description = 'Registers all packages with NPM';
57
+ gulp.task('publish', publish);
58
+ gulp.task('publish').description = 'Publishes all releases (components, package)';
63
59
 
60
+ gulp.task('register', register);
61
+ gulp.task('register').description = 'Registers all packages with NPM';
64
62
  };
@@ -3,30 +3,28 @@
3
3
  *******************************/
4
4
 
5
5
  module.exports = function (gulp) {
6
+ // build sub-tasks
7
+ const
8
+ watch = require('../watch'),
6
9
 
7
- // build sub-tasks
8
- const
9
- watch = require('./../watch'),
10
+ build = require('../build'),
11
+ buildJS = require('../build/javascript'),
12
+ buildCSS = require('../build/css'),
13
+ buildAssets = require('../build/assets')
14
+ ;
10
15
 
11
- build = require('./../build'),
12
- buildJS = require('./../build/javascript'),
13
- buildCSS = require('./../build/css'),
14
- buildAssets = require('./../build/assets')
15
- ;
16
+ gulp.task('watch', watch);
17
+ gulp.task('watch').description = 'Watch for site/theme changes';
16
18
 
17
- gulp.task('watch', watch);
18
- gulp.task('watch').description = 'Watch for site/theme changes';
19
+ gulp.task('build', build);
20
+ gulp.task('build').description = 'Builds all files from source';
19
21
 
20
- gulp.task('build', build);
21
- gulp.task('build').description = 'Builds all files from source';
22
+ gulp.task('build-javascript', buildJS);
23
+ gulp.task('build-javascript').description = 'Builds all javascript from source';
22
24
 
23
- gulp.task('build-javascript', buildJS);
24
- gulp.task('build-javascript').description = 'Builds all javascript from source';
25
-
26
- gulp.task('build-css', buildCSS);
27
- gulp.task('build-css').description = 'Builds all css from source';
28
-
29
- gulp.task('build-assets', buildAssets);
30
- gulp.task('build-assets').description = 'Copies all assets from source';
25
+ gulp.task('build-css', buildCSS);
26
+ gulp.task('build-css').description = 'Builds all css from source';
31
27
 
28
+ gulp.task('build-assets', buildAssets);
29
+ gulp.task('build-assets').description = 'Copies all assets from source';
32
30
  };
@@ -7,17 +7,15 @@
7
7
  https://github.com/Semantic-Org/Semantic-UI-Docs/
8
8
  */
9
9
  module.exports = function (gulp) {
10
+ var
11
+ // docs tasks
12
+ serveDocs = require('../docs/serve'),
13
+ buildDocs = require('../docs/build')
14
+ ;
10
15
 
11
- var
12
- // docs tasks
13
- serveDocs = require('./../docs/serve'),
14
- buildDocs = require('./../docs/build')
15
- ;
16
-
17
- gulp.task('serve-docs', serveDocs);
18
- gulp.task('serve-docs').description = 'Serve file changes to SUI Docs';
19
-
20
- gulp.task('build-docs', buildDocs);
21
- gulp.task('build-docs').description = 'Build all files and add to SUI Docs';
16
+ gulp.task('serve-docs', serveDocs);
17
+ gulp.task('serve-docs').description = 'Serve file changes to SUI Docs';
22
18
 
19
+ gulp.task('build-docs', buildDocs);
20
+ gulp.task('build-docs').description = 'Build all files and add to SUI Docs';
23
21
  };
@@ -7,17 +7,15 @@
7
7
  https://github.com/Semantic-Org/Semantic-UI-Docs/
8
8
  */
9
9
  module.exports = function (gulp) {
10
+ var
11
+ // docs tasks
12
+ install = require('../install'),
13
+ checkInstall = require('../check-install')
14
+ ;
10
15
 
11
- var
12
- // docs tasks
13
- install = require('./../install'),
14
- checkInstall = require('./../check-install')
15
- ;
16
-
17
- gulp.task('install', install);
18
- gulp.task('install').description = 'Runs set-up';
19
-
20
- gulp.task('check-install', checkInstall);
21
- gulp.task('check-install').description = 'Displays current version of Semantic';
16
+ gulp.task('install', install);
17
+ gulp.task('install').description = 'Runs set-up';
22
18
 
19
+ gulp.task('check-install', checkInstall);
20
+ gulp.task('check-install').description = 'Displays current version of Semantic';
23
21
  };
@@ -3,17 +3,15 @@
3
3
  *******************************/
4
4
 
5
5
  module.exports = function (gulp) {
6
+ // rtl
7
+ var
8
+ buildRTL = require('../rtl/build'),
9
+ watchRTL = require('../rtl/watch')
10
+ ;
6
11
 
7
- // rtl
8
- var
9
- buildRTL = require('./../rtl/build'),
10
- watchRTL = require('./../rtl/watch')
11
- ;
12
-
13
- gulp.task('watch-rtl', watchRTL);
14
- gulp.task('watch-rtl').description = 'DEPRECATED - use \'watch\' instead - Watch files as RTL';
15
-
16
- gulp.task('build-rtl', buildRTL);
17
- gulp.task('build-rtl').description = 'DEPRECATED - use \'build\' instead - Build all files as RTL';
12
+ gulp.task('watch-rtl', watchRTL);
13
+ gulp.task('watch-rtl').description = 'DEPRECATED - use \'watch\' instead - Watch files as RTL';
18
14
 
15
+ gulp.task('build-rtl', buildRTL);
16
+ gulp.task('build-rtl').description = 'DEPRECATED - use \'build\' instead - Build all files as RTL';
19
17
  };
@@ -7,16 +7,14 @@
7
7
  https://github.com/Semantic-Org/Semantic-UI-Docs/
8
8
  */
9
9
  module.exports = function (gulp) {
10
+ var
11
+ clean = require('../clean'),
12
+ version = require('../version')
13
+ ;
10
14
 
11
- var
12
- clean = require('./../clean'),
13
- version = require('./../version')
14
- ;
15
-
16
- gulp.task('clean', clean);
17
- gulp.task('clean').description = 'Clean dist folder';
18
-
19
- gulp.task('version', version);
20
- gulp.task('version').description = 'Clean dist folder';
15
+ gulp.task('clean', clean);
16
+ gulp.task('clean').description = 'Clean dist folder';
21
17
 
18
+ gulp.task('version', version);
19
+ gulp.task('version').description = 'Clean dist folder';
22
20
  };