Browse Source

Add file permissions and RTL to setup

pull/1615/head
jlukic 10 years ago
parent
commit
91ab03268c
3 changed files with 30 additions and 0 deletions
  1. 1
      RELEASE-NOTES.md
  2. 6
      gulpfile.js
  3. 23
      tasks/questions.js

1
RELEASE-NOTES.md

@ -4,6 +4,7 @@
**Major Changes** **Major Changes**
- **Project** - Right-to-left (RTL) support added. New gulp tasks for RTL *Thanks @MohammadYounes!* - **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** **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')` - **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')`

6
gulpfile.js

@ -851,6 +851,9 @@ gulp.task('install', 'Set-up project for first time', function () {
if(answers.components) { if(answers.components) {
json.components = answers.components; json.components = answers.components;
} }
if(answers.permission) {
json.permission = +answers.permission;
}
if(answers.dist) { if(answers.dist) {
answers.dist = answers.dist; answers.dist = answers.dist;
json.paths.output = { json.paths.output = {
@ -860,6 +863,9 @@ gulp.task('install', 'Set-up project for first time', function () {
themes : answers.dist + '/themes/' themes : answers.dist + '/themes/'
}; };
} }
if(answers.rtl) {
json.rtl = true;
}
if(answers.site) { if(answers.site) {
json.paths.source.site = answers.site + '/'; json.paths.source.site = answers.site + '/';
} }

23
tasks/questions.js

@ -141,6 +141,29 @@ module.exports = {
], ],
when: when.notAuto 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', type: 'input',
name: 'dist', name: 'dist',

Loading…
Cancel
Save