From 91ab03268c93c74624005187873dbce501f85be2 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 12 Jan 2015 12:31:46 -0500 Subject: [PATCH] Add file permissions and RTL to setup --- RELEASE-NOTES.md | 1 + gulpfile.js | 6 ++++++ tasks/questions.js | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index d9a05ef47..348ec6fb7 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,6 +4,7 @@ **Major Changes** - **Project** - Right-to-left (RTL) support added. New gulp tasks for RTL *Thanks @MohammadYounes!* +- **Project** - Express/Custom install now let you specify the outputted file permissions and RTL use **Enhancements** - **Sidebar** - Having a sidebar visible on page load is now much simpler. You can include ``ui visible sidebar`` on page load to have a sidebar element appear on page load. To close call `$('.ui.sidebar').sidebar('hide')` diff --git a/gulpfile.js b/gulpfile.js index 6d277e0a2..ba3f33b45 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -851,6 +851,9 @@ gulp.task('install', 'Set-up project for first time', function () { if(answers.components) { json.components = answers.components; } + if(answers.permission) { + json.permission = +answers.permission; + } if(answers.dist) { answers.dist = answers.dist; json.paths.output = { @@ -860,6 +863,9 @@ gulp.task('install', 'Set-up project for first time', function () { themes : answers.dist + '/themes/' }; } + if(answers.rtl) { + json.rtl = true; + } if(answers.site) { json.paths.source.site = answers.site + '/'; } diff --git a/tasks/questions.js b/tasks/questions.js index 687ac4e77..4c9729e30 100644 --- a/tasks/questions.js +++ b/tasks/questions.js @@ -141,6 +141,29 @@ module.exports = { ], when: when.notAuto }, + { + type: 'input', + name: 'permission', + message: 'What octal file permission should outputted files receive?', + default: defaults.permission, + when: when.notAuto + }, + { + type: 'list', + name: 'rtl', + message: 'Do you use a RTL (Right-To-Left) language?', + when: when.notAuto, + choices: [ + { + name: 'No', + value: 'no' + }, + { + name: 'Yes', + value: 'yes' + }, + ] + }, { type: 'input', name: 'dist',