Open source omnivore
This commit is contained in:
5
apple/scripts/format_and_lint.sh
Executable file
5
apple/scripts/format_and_lint.sh
Executable file
@ -0,0 +1,5 @@
|
||||
cd BuildTools
|
||||
SDKROOT=macosx
|
||||
# swift package update #Uncomment this line temporarily to update the version used to the latest matching your BuildTools/Package.swift file
|
||||
swift run -c release swiftformat "$SRCROOT"
|
||||
swift run swiftlint --path "$SRCROOT"
|
||||
10
apple/scripts/graphql_gen.sh
Executable file
10
apple/scripts/graphql_gen.sh
Executable file
@ -0,0 +1,10 @@
|
||||
cd BuildTools
|
||||
|
||||
SDKROOT=macosx
|
||||
|
||||
swift run swift-graphql \
|
||||
http://localhost:4000/api/graphql \
|
||||
--config "$SRCROOT/../swiftgraphql.yml" \
|
||||
--output "$SRCROOT/../OmnivoreKit/Sources/Services/DataService/GQLSchema.swift"
|
||||
|
||||
sed -i '' '1s/^/\/\/ swiftlint:disable all\n/' './../OmnivoreKit/Sources/Services/DataService/GQLSchema.swift'
|
||||
Reference in New Issue
Block a user