-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update survey to use new data structure
- Loading branch information
Showing
6 changed files
with
22 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { makeDevConfig } from "../../rollup-dev.mjs"; | ||
import rollupConfig from "./rollup.config.mjs"; | ||
const port = 10004; // this needs to change for each package | ||
const port = 10003; // this needs to change for each package | ||
export default makeDevConfig(rollupConfig, port); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { makeRollupConfig } from "@jspsych/config/rollup"; | ||
// This package name needs to be unique | ||
export default makeRollupConfig("CHSSurvey"); | ||
export default makeRollupConfig("chsSurvey"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
import { Child, PastSession, Study } from "@lookit/data/dist/types"; | ||
import { ExitSurveyPlugin } from "./exit"; | ||
|
||
declare global { | ||
interface Window { | ||
chs: { | ||
study: Study; | ||
child: Child; | ||
pastSessions: PastSession[]; | ||
}; | ||
} | ||
} | ||
|
||
export default { exit: ExitSurveyPlugin }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters