fomantic-ui 2.9.1-beta.23 → 2.9.1-beta.24
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.
- package/.eslint/index.js +23 -0
- package/.eslint/no-extra-parens-rule.js +17 -0
- package/.eslint/package.json +11 -0
- package/.eslintrc.js +6 -11
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +22 -22
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +47 -47
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +69 -58
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +9 -9
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +11 -11
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +171 -173
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +16 -16
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +21 -17
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +87 -87
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +30 -26
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +7 -7
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +45 -45
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +30 -32
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +10 -10
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +31 -31
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +34 -34
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +21 -21
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +14 -14
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +33 -25
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +11 -11
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +21 -21
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +23 -23
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +41 -17
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +21 -21
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +21 -21
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +847 -800
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/gulpfile.js +1 -1
- package/package.json +2 -1
- package/scripts/nightly-version.js +3 -1
- package/src/definitions/behaviors/api.js +46 -46
- package/src/definitions/behaviors/form.js +86 -86
- package/src/definitions/behaviors/state.js +10 -10
- package/src/definitions/behaviors/visibility.js +20 -20
- package/src/definitions/globals/site.js +13 -13
- package/src/definitions/modules/accordion.js +21 -21
- package/src/definitions/modules/calendar.js +68 -57
- package/src/definitions/modules/checkbox.js +8 -8
- package/src/definitions/modules/dimmer.js +10 -10
- package/src/definitions/modules/dropdown.js +170 -172
- package/src/definitions/modules/embed.js +15 -15
- package/src/definitions/modules/flyout.js +20 -16
- package/src/definitions/modules/modal.js +29 -25
- package/src/definitions/modules/nag.js +6 -6
- package/src/definitions/modules/popup.js +44 -44
- package/src/definitions/modules/progress.js +29 -31
- package/src/definitions/modules/rating.js +9 -9
- package/src/definitions/modules/search.js +30 -30
- package/src/definitions/modules/shape.js +33 -33
- package/src/definitions/modules/sidebar.js +20 -20
- package/src/definitions/modules/slider.js +32 -24
- package/src/definitions/modules/sticky.js +20 -20
- package/src/definitions/modules/tab.js +22 -22
- package/src/definitions/modules/toast.js +40 -16
- package/src/definitions/modules/transition.js +20 -20
- package/tasks/admin/components/create.js +1 -1
- package/tasks/admin/components/init.js +1 -1
- package/tasks/admin/components/update.js +4 -4
- package/tasks/admin/distributions/create.js +2 -2
- package/tasks/admin/distributions/init.js +1 -1
- package/tasks/admin/distributions/update.js +4 -4
- package/tasks/admin/publish.js +1 -3
- package/tasks/admin/register.js +5 -5
- package/tasks/admin/release.js +1 -3
- package/tasks/build/assets.js +1 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/config/admin/github.js +3 -4
- package/tasks/config/npm/gulpfile.js +1 -1
- package/tasks/config/project/config.js +8 -6
- package/tasks/config/project/install.js +10 -10
- package/tasks/config/project/release.js +3 -2
- package/tasks/config/tasks.js +2 -2
- package/tasks/config/user.js +5 -3
- package/tasks/docs/build.js +1 -1
- package/tasks/docs/metadata.js +1 -1
- package/tasks/docs/serve.js +2 -1
- package/tasks/install.js +2 -2
- package/tasks/rtl/build.js +1 -3
- package/tasks/rtl/watch.js +1 -3
- package/tasks/version.js +1 -3
- package/tasks/watch.js +1 -1
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
moduleArguments = arguments,
|
31
31
|
query = moduleArguments[0],
|
32
32
|
queryArguments = [].slice.call(arguments, 1),
|
33
|
-
methodInvoked =
|
33
|
+
methodInvoked = typeof query === 'string',
|
34
34
|
|
35
35
|
returnedValue
|
36
36
|
;
|
@@ -139,11 +139,11 @@
|
|
139
139
|
? module.get.direction()
|
140
140
|
: 'static';
|
141
141
|
}
|
142
|
-
interval =
|
142
|
+
interval = interval !== undefined
|
143
143
|
? interval
|
144
144
|
: settings.interval;
|
145
|
-
shouldReverse =
|
146
|
-
delay =
|
145
|
+
shouldReverse = settings.reverse == 'auto' && direction == className.outward;
|
146
|
+
delay = shouldReverse || settings.reverse === true
|
147
147
|
? ($allModules.length - index) * interval
|
148
148
|
: index * interval;
|
149
149
|
module.debug('Delaying animation by', delay);
|
@@ -253,7 +253,7 @@
|
|
253
253
|
var
|
254
254
|
style = $module.attr('style'),
|
255
255
|
currentDisplay = $module.css('display'),
|
256
|
-
emptyStyle =
|
256
|
+
emptyStyle = style === undefined || style === ''
|
257
257
|
;
|
258
258
|
if (currentDisplay !== 'none' && !module.is.hidden()) {
|
259
259
|
module.verbose('Overriding default display to hide element');
|
@@ -315,7 +315,7 @@
|
|
315
315
|
},
|
316
316
|
duration: function (animationName, duration) {
|
317
317
|
duration = duration || settings.duration;
|
318
|
-
duration =
|
318
|
+
duration = typeof duration === 'number'
|
319
319
|
? duration + 'ms'
|
320
320
|
: duration;
|
321
321
|
if (duration || duration === 0) {
|
@@ -525,7 +525,7 @@
|
|
525
525
|
animationClass: function (animation) {
|
526
526
|
var
|
527
527
|
animationClass = animation || settings.animation,
|
528
|
-
directionClass =
|
528
|
+
directionClass = module.can.transition() && !module.has.direction()
|
529
529
|
? module.get.direction() + ' '
|
530
530
|
: ''
|
531
531
|
;
|
@@ -536,7 +536,7 @@
|
|
536
536
|
+ animationClass;
|
537
537
|
},
|
538
538
|
currentAnimation: function () {
|
539
|
-
return
|
539
|
+
return module.cache && module.cache.animation !== undefined
|
540
540
|
? module.cache.animation
|
541
541
|
: false;
|
542
542
|
},
|
@@ -579,14 +579,14 @@
|
|
579
579
|
duration = $module.css('animation-duration') || 0;
|
580
580
|
}
|
581
581
|
|
582
|
-
return
|
583
|
-
? (duration.indexOf('ms') > -1
|
582
|
+
return typeof duration === 'string'
|
583
|
+
? (duration.indexOf('ms') > -1
|
584
584
|
? parseFloat(duration)
|
585
|
-
: parseFloat(duration) * 1000
|
585
|
+
: parseFloat(duration) * 1000)
|
586
586
|
: duration;
|
587
587
|
},
|
588
588
|
displayType: function (shouldDetermine) {
|
589
|
-
shouldDetermine =
|
589
|
+
shouldDetermine = shouldDetermine !== undefined
|
590
590
|
? shouldDetermine
|
591
591
|
: true;
|
592
592
|
if (settings.displayType) {
|
@@ -714,13 +714,13 @@
|
|
714
714
|
module.save.transitionExists(animation, directionExists);
|
715
715
|
}
|
716
716
|
|
717
|
-
return
|
717
|
+
return transitionExists !== undefined
|
718
718
|
? transitionExists
|
719
719
|
: directionExists;
|
720
720
|
},
|
721
721
|
animate: function () {
|
722
722
|
// can transition does not return a value if animation does not exist
|
723
|
-
return
|
723
|
+
return module.can.transition() !== undefined;
|
724
724
|
},
|
725
725
|
},
|
726
726
|
|
@@ -741,7 +741,7 @@
|
|
741
741
|
animation = animation || settings.animation;
|
742
742
|
animation = '.' + animation.replace(' ', '.');
|
743
743
|
|
744
|
-
return
|
744
|
+
return $module.filter(animation).length > 0;
|
745
745
|
},
|
746
746
|
visible: function () {
|
747
747
|
return $module.is(':visible');
|
@@ -750,7 +750,7 @@
|
|
750
750
|
return $module.css('visibility') === 'hidden';
|
751
751
|
},
|
752
752
|
supported: function () {
|
753
|
-
return
|
753
|
+
return animationEnd !== false;
|
754
754
|
},
|
755
755
|
},
|
756
756
|
|
@@ -943,7 +943,7 @@
|
|
943
943
|
query = query.split(/[ .]/);
|
944
944
|
maxDepth = query.length - 1;
|
945
945
|
$.each(query, function (depth, value) {
|
946
|
-
var camelCaseValue =
|
946
|
+
var camelCaseValue = depth != maxDepth
|
947
947
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
948
948
|
: query
|
949
949
|
;
|
@@ -978,7 +978,7 @@
|
|
978
978
|
returnedValue = response;
|
979
979
|
}
|
980
980
|
|
981
|
-
return
|
981
|
+
return found !== undefined
|
982
982
|
? found
|
983
983
|
: false;
|
984
984
|
},
|
@@ -986,7 +986,7 @@
|
|
986
986
|
module.initialize();
|
987
987
|
});
|
988
988
|
|
989
|
-
return
|
989
|
+
return returnedValue !== undefined
|
990
990
|
? returnedValue
|
991
991
|
: this;
|
992
992
|
};
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
*/
|
14
14
|
|
15
|
-
|
15
|
+
const
|
16
16
|
gulp = require('gulp'),
|
17
17
|
|
18
18
|
// node dependencies
|
@@ -68,7 +68,7 @@ module.exports = function (callback) {
|
|
68
68
|
gitURL = 'https://github.com/' + release.org + '/' + repoName + '.git',
|
69
69
|
repoURL = 'https://github.com/' + release.org + '/' + repoName + '/',
|
70
70
|
|
71
|
-
commitArgs =
|
71
|
+
commitArgs = oAuth.name !== undefined && oAuth.email !== undefined
|
72
72
|
? '--author "' + oAuth.name + ' <' + oAuth.email + '>"'
|
73
73
|
: '',
|
74
74
|
|
@@ -76,9 +76,9 @@ module.exports = function (callback) {
|
|
76
76
|
? require(outputDirectory + 'package.json') // eslint-disable-line import/no-dynamic-require
|
77
77
|
: false,
|
78
78
|
|
79
|
-
isNewVersion =
|
79
|
+
isNewVersion = version && componentPackage.version != version,
|
80
80
|
|
81
|
-
commitMessage =
|
81
|
+
commitMessage = isNewVersion
|
82
82
|
? 'Updated component to version ' + version
|
83
83
|
: 'Updated files from main repo',
|
84
84
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* update package.json file
|
10
10
|
*/
|
11
11
|
|
12
|
-
|
12
|
+
const
|
13
13
|
gulp = require('gulp'),
|
14
14
|
|
15
15
|
// node dependencies
|
@@ -88,7 +88,7 @@ module.exports = function (callback) {
|
|
88
88
|
;
|
89
89
|
list.forEach(function (file) {
|
90
90
|
let
|
91
|
-
isOmitted =
|
91
|
+
isOmitted = omitted.indexOf(file) > -1,
|
92
92
|
filePath = path.join(dir, file),
|
93
93
|
stat = fs.statSync(filePath)
|
94
94
|
;
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
*/
|
14
14
|
|
15
|
-
|
15
|
+
const
|
16
16
|
gulp = require('gulp'),
|
17
17
|
|
18
18
|
// node dependencies
|
@@ -64,7 +64,7 @@ module.exports = function (callback) {
|
|
64
64
|
outputDirectory = path.resolve(path.join(release.outputRoot, distribution.toLowerCase())),
|
65
65
|
repoName = release.distRepoRoot + distribution,
|
66
66
|
|
67
|
-
commitArgs =
|
67
|
+
commitArgs = oAuth.name !== undefined && oAuth.email !== undefined
|
68
68
|
? '--author "' + oAuth.name + ' <' + oAuth.email + '>"'
|
69
69
|
: '',
|
70
70
|
|
@@ -72,9 +72,9 @@ module.exports = function (callback) {
|
|
72
72
|
? require(outputDirectory + 'package.json') // eslint-disable-line import/no-dynamic-require
|
73
73
|
: false,
|
74
74
|
|
75
|
-
isNewVersion =
|
75
|
+
isNewVersion = version && distributionPackage.version != version,
|
76
76
|
|
77
|
-
commitMessage =
|
77
|
+
commitMessage = isNewVersion
|
78
78
|
? 'Updated distribution to version ' + version
|
79
79
|
: 'Updated files from main repo',
|
80
80
|
|
package/tasks/admin/publish.js
CHANGED
package/tasks/admin/register.js
CHANGED
@@ -8,13 +8,13 @@
|
|
8
8
|
* Registers component with NPM
|
9
9
|
*/
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
process = require('child_process'),
|
11
|
+
// node dependencies
|
12
|
+
const process = require('child_process');
|
14
13
|
|
15
|
-
|
16
|
-
|
14
|
+
// config
|
15
|
+
const release = require('../config/admin/release');
|
17
16
|
|
17
|
+
let
|
18
18
|
// register components and distributions
|
19
19
|
repos = release.distributions.concat(release.components),
|
20
20
|
total = repos.length,
|
package/tasks/admin/release.js
CHANGED
package/tasks/build/assets.js
CHANGED
package/tasks/build.js
CHANGED
package/tasks/check-install.js
CHANGED
package/tasks/clean.js
CHANGED
package/tasks/collections/rtl.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Logs into GitHub using OAuth
|
6
6
|
*/
|
7
7
|
|
8
|
-
|
8
|
+
const
|
9
9
|
fs = require('fs'),
|
10
10
|
path = require('path'),
|
11
11
|
GithubAPI = require('@octokit/rest'),
|
@@ -13,15 +13,14 @@ let
|
|
13
13
|
// stores oauth info for GitHub API
|
14
14
|
oAuth = fs.existsSync(path.join(__dirname, './oauth.js'))
|
15
15
|
? require('./oauth.js') // eslint-disable-line import/extensions
|
16
|
-
: false
|
17
|
-
github
|
16
|
+
: false
|
18
17
|
;
|
19
18
|
|
20
19
|
if (!oAuth) {
|
21
20
|
console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js');
|
22
21
|
}
|
23
22
|
|
24
|
-
github = new GithubAPI({
|
23
|
+
let github = new GithubAPI({
|
25
24
|
version: '3.0.0',
|
26
25
|
debug: true,
|
27
26
|
protocol: 'https',
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Set-up
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
5
|
+
const
|
6
6
|
fs = require('fs'),
|
7
7
|
path = require('path'),
|
8
8
|
|
@@ -120,10 +120,10 @@ module.exports = {
|
|
120
120
|
});
|
121
121
|
}
|
122
122
|
|
123
|
-
const components =
|
123
|
+
const components = Array.isArray(config.components) && config.components.length > 0
|
124
124
|
? config.components
|
125
125
|
: defaults.components;
|
126
|
-
const individuals =
|
126
|
+
const individuals = Array.isArray(config.individuals) && config.individuals.length > 0
|
127
127
|
? config.individuals
|
128
128
|
: [];
|
129
129
|
const componentsExceptIndividuals = components.filter((component) => !individuals.includes(component));
|
@@ -132,9 +132,11 @@ module.exports = {
|
|
132
132
|
config.globs.components = componentsExceptIndividuals.length === 1 ? componentsExceptIndividuals[0] : '{' + componentsExceptIndividuals.join(',') + '}';
|
133
133
|
|
134
134
|
// components that should be built, but excluded from main .css/.js files
|
135
|
-
config.globs.individuals = individuals.length === 1
|
136
|
-
?
|
137
|
-
:
|
135
|
+
config.globs.individuals = individuals.length === 1
|
136
|
+
? individuals[0]
|
137
|
+
: (individuals.length > 1
|
138
|
+
? '{' + individuals.join(',') + '}'
|
139
|
+
: undefined);
|
138
140
|
},
|
139
141
|
|
140
142
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Set-up
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
5
|
+
const
|
6
6
|
fs = require('fs'),
|
7
7
|
path = require('path'),
|
8
8
|
requireDotFile = require('require-dot-file'),
|
@@ -20,7 +20,7 @@ let when = {
|
|
20
20
|
|
21
21
|
// path
|
22
22
|
changeRoot: function (questions) {
|
23
|
-
return
|
23
|
+
return questions.useRoot !== undefined && questions.useRoot !== true;
|
24
24
|
},
|
25
25
|
|
26
26
|
// permissions
|
@@ -34,27 +34,27 @@ let when = {
|
|
34
34
|
},
|
35
35
|
|
36
36
|
allowOverwrite: function (questions) {
|
37
|
-
return
|
37
|
+
return questions.overwrite === undefined || questions.overwrite == 'yes';
|
38
38
|
},
|
39
39
|
notAuto: function (questions) {
|
40
|
-
return
|
40
|
+
return questions.install !== 'auto' && (questions.overwrite === undefined || questions.overwrite == 'yes');
|
41
41
|
},
|
42
42
|
custom: function (questions) {
|
43
|
-
return
|
43
|
+
return questions.install === 'custom' && (questions.overwrite === undefined || questions.overwrite == 'yes');
|
44
44
|
},
|
45
45
|
express: function (questions) {
|
46
|
-
return
|
46
|
+
return questions.install === 'express' && (questions.overwrite === undefined || questions.overwrite == 'yes');
|
47
47
|
},
|
48
48
|
|
49
49
|
// customize
|
50
50
|
customize: function (questions) {
|
51
|
-
return
|
51
|
+
return questions.customize === true;
|
52
52
|
},
|
53
53
|
primaryColor: function (questions) {
|
54
|
-
return
|
54
|
+
return questions.primaryColor;
|
55
55
|
},
|
56
56
|
secondaryColor: function (questions) {
|
57
|
-
return
|
57
|
+
return questions.secondaryColor;
|
58
58
|
},
|
59
59
|
};
|
60
60
|
|
@@ -148,7 +148,7 @@ module.exports = {
|
|
148
148
|
moduleFolders--;
|
149
149
|
}
|
150
150
|
if (path.resolve(directory) === path.resolve(nextDirectory)) {
|
151
|
-
return
|
151
|
+
return moduleFolders > 1;
|
152
152
|
}
|
153
153
|
|
154
154
|
// recurse downward
|
@@ -2,8 +2,9 @@
|
|
2
2
|
Release Config
|
3
3
|
*******************************/
|
4
4
|
|
5
|
+
const requireDotFile = require('require-dot-file');
|
6
|
+
|
5
7
|
let
|
6
|
-
requireDotFile = require('require-dot-file'),
|
7
8
|
config,
|
8
9
|
npmPackage,
|
9
10
|
version
|
@@ -26,7 +27,7 @@ try {
|
|
26
27
|
}
|
27
28
|
|
28
29
|
// looks for version in config or package.json (whichever is available)
|
29
|
-
version =
|
30
|
+
version = npmPackage && npmPackage.version !== undefined && npmPackage.name == 'fomantic-ui'
|
30
31
|
? npmPackage.version
|
31
32
|
: config.version;
|
32
33
|
|
package/tasks/config/tasks.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
const
|
2
2
|
browserslist = require('browserslist'),
|
3
3
|
console = require('better-console'),
|
4
4
|
config = require('./user'),
|
@@ -95,7 +95,7 @@ module.exports = {
|
|
95
95
|
|
96
96
|
/* Comment Banners */
|
97
97
|
header: {
|
98
|
-
year: nullish(config.header.year,
|
98
|
+
year: nullish(config.header.year, new Date().getFullYear()),
|
99
99
|
title: nullish(config.header.title, release.title),
|
100
100
|
version: nullish(config.header.version, release.version),
|
101
101
|
repository: nullish(config.header.repository, release.repository),
|
package/tasks/config/user.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Set-up
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
5
|
+
const
|
6
6
|
// npm dependencies
|
7
7
|
extend = require('extend'),
|
8
8
|
fs = require('fs'),
|
@@ -11,8 +11,10 @@ let
|
|
11
11
|
|
12
12
|
// semantic.json defaults
|
13
13
|
defaults = require('./defaults'),
|
14
|
-
config = require('./project/config')
|
14
|
+
config = require('./project/config')
|
15
|
+
;
|
15
16
|
|
17
|
+
let
|
16
18
|
// Final config object
|
17
19
|
gulpConfig = {},
|
18
20
|
|
@@ -37,7 +39,7 @@ try {
|
|
37
39
|
}
|
38
40
|
|
39
41
|
// extend user config with defaults
|
40
|
-
gulpConfig =
|
42
|
+
gulpConfig = !userConfig
|
41
43
|
? extend(true, {}, defaults)
|
42
44
|
: extend(false, {}, defaults, userConfig);
|
43
45
|
|
package/tasks/docs/build.js
CHANGED
package/tasks/docs/metadata.js
CHANGED
package/tasks/docs/serve.js
CHANGED
package/tasks/install.js
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
* Standard installer runs asking for paths to site files etc
|
14
14
|
*/
|
15
15
|
|
16
|
-
|
16
|
+
const
|
17
17
|
gulp = require('gulp'),
|
18
18
|
|
19
19
|
// node dependencies
|
@@ -270,7 +270,7 @@ module.exports = function (callback) {
|
|
270
270
|
for (let destination in installPaths) {
|
271
271
|
if (Object.prototype.hasOwnProperty.call(installPaths, destination)) {
|
272
272
|
// config goes in project root, rest in install folder
|
273
|
-
installPaths[destination] =
|
273
|
+
installPaths[destination] = destination == 'config' || destination == 'configFolder'
|
274
274
|
? path.normalize(path.join(manager.root, installPaths[destination]))
|
275
275
|
: path.normalize(path.join(installFolder, installPaths[destination]));
|
276
276
|
}
|
package/tasks/rtl/build.js
CHANGED
package/tasks/rtl/watch.js
CHANGED
package/tasks/version.js
CHANGED