Skip to content

Commit

Permalink
fix: refacor
Browse files Browse the repository at this point in the history
  • Loading branch information
Chun-Yang committed Aug 4, 2016
1 parent 7fe3e46 commit 5885516
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
19 changes: 8 additions & 11 deletions bin/stanza-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@
const program = require('commander');
const create = require('../lib/create');

const action = (name) => {
if (!name) {
console.error('ERROR: No name given!');
process.exit(1);
}

create(name);
};

program
.arguments('<name>')
.action(action);
.action((name) => {
if (!name) {
console.error('ERROR: No name given!');
process.exit(1);
}

create(name);
});

program.on('--help', () => {
console.log('Create a meteor project with react and redux configured.');
process.exit(0);
});

Expand Down
1 change: 0 additions & 1 deletion bin/stanza-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const update = require('../lib/update');

program.on('--help', () => {
console.log('Update the meteor project using the design.zip from webflow');
process.exit(0);
});

program.parse(process.argv);
Expand Down
4 changes: 3 additions & 1 deletion templates/mobile-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// NOTE: app id can NOT contain "-" (android would break if we have that)
App.info({
id: 'com.poeticsystems.XXX',
name: 'XXX',
Expand Down Expand Up @@ -45,9 +46,10 @@ App.launchScreens({
'android_xxhdpi_portrait': 'resources/launch-screens/android_xxhdpi_portrait.png',
});

App.setPreference('Orientation', 'portrait');
// App.setPreference('Orientation', 'portrait');

App.accessRule('*');
App.accessRule('content://*');
App.accessRule('http://*');
App.accessRule('https://*');
App.accessRule('blob:*');

0 comments on commit 5885516

Please sign in to comment.