forked from Doenet/DoenetTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate-components-json.js
33 lines (25 loc) · 1000 Bytes
/
generate-components-json.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// import * as testimport from './src/Doenet/utils/serializedStateProcessing';
import * as ComponentTypes from './src/Doenet/ComponentTypes';
// // json output target path
// const componentJsonPath = "./docs/Doenet/components.json";
// const componentDataArray = [];
// function pushComponent(component) {
// componentDataArray.push(component);
// }
// function createComponentFile() {
// let standardComponentTypes = ComponentTypes.createComponentTypes();
// let allComponentClasses = ComponentTypes.allComponentClasses();
// for (ComponentClass in allComponentClasses) {
// console.log(ComponentClass);
// }
// console.log("test");
// // const componentJsonArray = JSON.stringify(componentDataArray, null, 2);
// // fs.writeFile(componentJsonPath, componentJsonArray, "utf8", (err, data) => {
// // if (err) {
// // throw err;
// // }
// // console.log("Created component JSON file.");
// // });
// }
// createComponentFile();
console.log('test');