Skip to content

Commit 05f1e34

Browse files
committed
Create lib folder under appscript
Scripts in the root `appscript` folder are now only those that handle menu actions. Code common to these scripts (but still specific to the AppScript environment) was moved to a new `lib` subfolder.
1 parent a5a5c4b commit 05f1e34

14 files changed

+28
-26
lines changed

tools/appscript/export-event-data.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getProject } from './project.mjs';
1+
import { getProject } from './lib/project.mjs';
22

33
/**
44
* Export the event data as JSON

tools/appscript/export-grid.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getProject } from './project.mjs';
2-
import reportError from './report-error.mjs';
1+
import { getProject } from './lib/project.mjs';
2+
import reportError from './lib/report-error.mjs';
33
import {
44
fetchProjectFromGitHub,
55
saveSessionMeetings,

tools/appscript/export-metadata.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import reportError from './report-error.mjs';
1+
import reportError from './lib/report-error.mjs';
22

33
/**
44
* Trigger a GitHub workflow that refreshes the data from GitHub

tools/appscript/generate-grid.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { getProject } from './project.mjs';
2-
import { fillGridSheet } from './schedule.mjs';
3-
import reportError from './report-error.mjs';
1+
import { getProject } from './lib/project.mjs';
2+
import { fillGridSheet } from './lib/schedule.mjs';
3+
import reportError from './lib/report-error.mjs';
44
import { validateGrid } from '../common/validate.mjs';
55

66
/**

tools/appscript/import-grid.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import reportError from './report-error.mjs';
2-
import importFromGitHub from './import-from-github.mjs';
1+
import reportError from './lib/report-error.mjs';
2+
import importFromGitHub from './lib/import-from-github.mjs';
33

44
/**
55
* Trigger a GitHub workflow that refreshes the data from GitHub

tools/appscript/import-metadata.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import reportError from './report-error.mjs';
2-
import importFromGitHub from './import-from-github.mjs';
1+
import reportError from './lib/report-error.mjs';
2+
import importFromGitHub from './lib/import-from-github.mjs';
33

44
/**
55
* Trigger a GitHub workflow that refreshes the data from GitHub

tools/appscript/import-sessions.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import reportError from './report-error.mjs';
2-
import importFromGitHub from './import-from-github.mjs';
1+
import reportError from './lib/report-error.mjs';
2+
import importFromGitHub from './lib/import-from-github.mjs';
33

44
/**
55
* Trigger a GitHub workflow that refreshes the data from GitHub

tools/appscript/import-from-github.mjs renamed to tools/appscript/lib/import-from-github.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getProject } from './project.mjs';
22
import reportError from './report-error.mjs';
3-
import { fetchProjectFromGitHub } from '../common/project.mjs';
3+
import { fetchProjectFromGitHub } from '../../common/project.mjs';
44
import { refreshProject } from './project.mjs';
5-
import * as YAML from '../../node_modules/yaml/browser/index.js';
5+
import * as YAML from '../../../node_modules/yaml/browser/index.js';
66

77
/**
88
* Trigger a GitHub workflow that refreshes the data from GitHub
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSessionSections } from '../common/session-sections.mjs';
1+
import { getSessionSections } from '../../common/session-sections.mjs';
22

33
/**
44
* Retrieve an indexed object that contains the list of sheets associated with

0 commit comments

Comments
 (0)