Skip to content

Commit

Permalink
Refactor expected project layout a bit
Browse files Browse the repository at this point in the history
Closes #12
  • Loading branch information
alxndrsn committed Jul 24, 2017
1 parent d2289da commit 2204eab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ This tool expects a project to be sctructured as follows:
resources/
icon-one.png
rules.nools.js
targets.json
tasks/
rules.nools.js
schedules.json
tasks.json
forms/
app/
my_project_form.xlsx
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.2",
"version": "1.1.3",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/fn/compile-app-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module.exports = (projectDir /*, couchUrl */) => {
const files = {
app_settings: fs.readJson(fromProject('app_settings.json')),
contact_summary: readJs(fromProject('contact-summary.js')),
nools: readJs(fromProject('tasks/rules.nools.js')),
nools: readJs(fromProject('rules.nools.js')),
targets: fs.readJson(fromProject('targets.json')),
tasks_schedules: fs.readJson(fromProject('tasks/schedules.json')),
tasks_schedules: fs.readJson(fromProject('tasks.json')),
};

const app_settings = files.app_settings;
Expand Down
6 changes: 2 additions & 4 deletions src/fn/initialise-project-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ const LAYOUT = {
'contact-summary.js': '',
'resources.json': {},
resources: {},
'rules.nools.js': '',
'targets.json': {},
tasks: {
'rules.nools.js': '',
'schedules.json': {},
},
'tasks.json': {},
forms: {
app: {},
contact: {},
Expand Down

0 comments on commit 2204eab

Please sign in to comment.