Skip to content

Commit

Permalink
Add convert step for Collect forms
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jul 26, 2017
1 parent 16a457c commit 5e8c44f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ This tool expects a project to be sctructured as follows:
# TODO

* support Google Sheets forms
* support Collect forms
* make form upload sequential
* add PNGout as somehow part of the form conversion step. But make sure it's cleanly separated from XML processing step
* define configure-all as separate action; convert argument order to <action>-first? How to allow multiple actions (if at all?)?
Expand Down
1 change: 1 addition & 0 deletions bin/medic-conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if(!actions.length) {
'backup-app-settings',
'upload-app-settings',
'convert-app-forms',
'convert-collect-forms',
'convert-contact-forms',
'backup-all-forms',
'delete-all-forms',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.1.6",
"version": "1.1.7",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/cli/supported-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = [
'compile-app-settings',
'compress-images',
'convert-app-forms',
'convert-collect-forms',
'convert-contact-forms',
'delete-all-forms',
'initialise-project-layout',
Expand Down
5 changes: 5 additions & 0 deletions src/fn/convert-collect-forms.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const convertForms = require('../lib/convert-forms');

module.exports = (projectDir, couchUrl, extras) => convertForms(projectDir, 'collect', {
forms: extras,
});

0 comments on commit 5e8c44f

Please sign in to comment.