Skip to content

Commit

Permalink
Move files to src/ folder (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel authored Nov 14, 2024
1 parent 5411735 commit be998a3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions task/processAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion task/convert.js → task/src/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
convertToGeoJSON,
makeStaticLocationsGeoJSON,
getPropertiesFromPath,
} = require('./src/process');
} = require('./process');

const convert = (filename) => {
let geojson;
Expand Down
6 changes: 3 additions & 3 deletions task/makeCSV.js → task/src/makeCSV.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
6 changes: 3 additions & 3 deletions task/processPlatform.js → task/src/processPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be998a3

Please sign in to comment.