This file contains hidden or 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
import {readFileSync, writeFileSync} from 'fs'; | |
import path from 'path'; | |
type TsAlias = string; | |
type OriginalFragment = string; | |
type ClosureMap = Map<TsAlias, OriginalFragment>; | |
const main = () => { | |
console.info('Minimizing Sanity types...'); | |
const inputFile = '../sanity/sanity.types.ts'; |
This file contains hidden or 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
import { | |
Article, | |
DocumentGroup, | |
DoorType, | |
GlassFunction, | |
GlassOption, | |
Guide, | |
GuideArticle, | |
GuideStep, | |
InspirationalStory, |
This file contains hidden or 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
'use client'; | |
// imports | |
interface Props { | |
section: ArticleListAllType; | |
articlesQuery: string; | |
isDraft: boolean; | |
} |
This file contains hidden or 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
'use client'; | |
import type {FC} from 'react'; | |
import {usePreview} from 'utils/sanity'; | |
import {PreviewSuspense} from 'next-sanity/preview'; | |
import {ArticleListAllRender} from './render'; | |
import type {ArticleListAllType} from 'schema/page-sections/article-list-all.zod'; | |
interface Props { | |
section: ArticleListAllType; |
This file contains hidden or 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
#!/bin/bash | |
file=$1 | |
if [ ${file: -1} == "t" ]; then | |
jjtree $file | |
file=${file%t} | |
fi | |
javacc $file | |
javac *.java | |
name=${file%.*} | |
echo "________________________________________________________________________________" |