Skip to content

Instantly share code, notes, and snippets.

View Moumouls's full-sized avatar

Antoine Cormouls Moumouls

View GitHub Profile
@Moumouls
Moumouls / buildSchema.ts
Last active May 14, 2021 11:02
DREPECATED: Static Schema for Parse Server (TS/JS) (tested, and production ready)
// DEPRECATED: If Defined Schema PR not already merged on parse-server repo, feel free to use my forked build
// add "parse-server": "moumouls/parse-server#beta.26" in your package.json
// Linked comment: https://gist.github.com/Moumouls/e4f0c6470398efc7a6a74567982185fa#gistcomment-3742504
// This function update, migrate and create Classes
export const buildSchemas = async (localSchemas: any[]) => {
try {
const timeout = setTimeout(() => {
if (process.env.NODE_ENV === 'production') process.exit(1)
}, 20000)