diff --git a/task/processAll.js b/task/processAll.js index d47414c..3ed78f4 100644 --- a/task/processAll.js +++ b/task/processAll.js @@ -3,9 +3,9 @@ const fs = require('fs'); const { findDirectories, findFiles } = require('./src/find'); const { exportHeaders } = require('./src/headers'); -const { makeCSV } = require('./makeCSV'); -const { makePlatformGeoJSON } = require('./processPlatform'); -const { convert } = require('./convert'); +const { makeCSV } = require('./src/makeCSV'); +const { makePlatformGeoJSON } = require('./src/processPlatform'); +const { convert } = require('./src/convert'); const { mergeGeoJSONCollection } = require('./src/process'); const campaignPath = process.argv[2]; diff --git a/task/convert.js b/task/src/convert.js similarity index 96% rename from task/convert.js rename to task/src/convert.js index a82421f..14a9829 100644 --- a/task/convert.js +++ b/task/src/convert.js @@ -5,7 +5,7 @@ const { convertToGeoJSON, makeStaticLocationsGeoJSON, getPropertiesFromPath, -} = require('./src/process'); +} = require('./process'); const convert = (filename) => { let geojson; diff --git a/task/makeCSV.js b/task/src/makeCSV.js similarity index 85% rename from task/makeCSV.js rename to task/src/makeCSV.js index 94f8d7d..6804a5c 100755 --- a/task/makeCSV.js +++ b/task/src/makeCSV.js @@ -1,9 +1,9 @@ const path = require('path'); const fs = require('fs'); -const { splitICTFile } = require('./src/process'); -const { concatenateFiles, getPlatformConfig } = require('./src/utils'); -const { findFiles } = require('./src/find'); +const { splitICTFile } = require('./process'); +const { concatenateFiles, getPlatformConfig } = require('./utils'); +const { findFiles } = require('./find'); const makeCSV = (platformPath) => { const platformConfig = getPlatformConfig(platformPath); diff --git a/task/processPlatform.js b/task/src/processPlatform.js similarity index 88% rename from task/processPlatform.js rename to task/src/processPlatform.js index 81e3629..940b022 100644 --- a/task/processPlatform.js +++ b/task/src/processPlatform.js @@ -6,9 +6,9 @@ const { convertToGeoJSON, getPropertiesFromPath, mergeGeoJSONCollection, -} = require('./src/process'); -const { getPlatformConfig } = require('./src/utils'); -const { kml2geojson } = require('./src/convert-kml'); +} = require('./process'); +const { getPlatformConfig } = require('./utils'); +const { kml2geojson } = require('./convert-kml'); const makePlatformGeoJSON = (dir) => { const properties = getPropertiesFromPath(dir);