timeback 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -26
- package/dist/cli.js +766 -695
- package/package.json +3 -11
- package/schema.json +523 -133
- package/dist/cli/src/config.d.ts +0 -8
- package/dist/types/src/config.d.ts +0 -186
- package/dist/types/src/index.d.ts +0 -5
- package/dist/types/src/primitives.d.ts +0 -53
package/README.md
CHANGED
|
@@ -52,38 +52,36 @@ export ONEROSTER_CLIENT_ID="your-client-id"
|
|
|
52
52
|
export ONEROSTER_CLIENT_SECRET="your-client-secret"
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
### `timeback.config.
|
|
55
|
+
### `timeback.config.json`
|
|
56
56
|
|
|
57
|
-
Many CLI commands (notably `timeback init`, `timeback import`, `timeback edit`, `timeback sync`) read/write a `timeback.config.
|
|
57
|
+
Many CLI commands (notably `timeback init`, `timeback import`, `timeback edit`, `timeback sync`) read/write a `timeback.config.json` file.
|
|
58
58
|
|
|
59
59
|
For fields that can differ per environment (staging vs production), use `course.overrides`:
|
|
60
60
|
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
sensor:
|
|
66
|
-
courses: [
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"$schema": "https://timeback.dev/schema.json",
|
|
64
|
+
"name": "My App",
|
|
65
|
+
"sensor": "https://my-app.example.com/sensors/default",
|
|
66
|
+
"courses": [
|
|
67
67
|
{
|
|
68
|
-
subject:
|
|
69
|
-
grade: 3,
|
|
70
|
-
courseCode:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
sensor: 'https://staging.my-app.example.com/sensors/math',
|
|
79
|
-
metadata: { publishStatus: 'draft' },
|
|
68
|
+
"subject": "Math",
|
|
69
|
+
"grade": 3,
|
|
70
|
+
"courseCode": "MATH-3",
|
|
71
|
+
"level": "Elementary",
|
|
72
|
+
"metadata": { "publishStatus": "testing" },
|
|
73
|
+
"overrides": {
|
|
74
|
+
"staging": {
|
|
75
|
+
"level": "Staging Level",
|
|
76
|
+
"sensor": "https://staging.my-app.example.com/sensors/math",
|
|
77
|
+
"metadata": { "publishStatus": "draft" }
|
|
80
78
|
},
|
|
81
|
-
production: {
|
|
82
|
-
metadata: { publishStatus:
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
]
|
|
79
|
+
"production": {
|
|
80
|
+
"metadata": { "publishStatus": "published" }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
87
85
|
}
|
|
88
86
|
```
|
|
89
87
|
|