tinacms / tina-graphql-gateway

Makes it easier to build TinaCMS websites with a GraphQL Layer.
https://tina.io/cloud
Apache License 2.0
6 stars 2 forks source link

Cli updates #291

Closed logan-anderson closed 3 years ago

logan-anderson commented 3 years ago

New output of init command Fixes https://github.com/tinacms/tina-graphql-gateway/issues/288

Sit back and relax while we set up Tina for you…
Installing dependencies...
✅ Installed Tina Dependencies
Setting up Tina...
Adding a content folder...
✅ Setup your first post in /Users/logananderson-forestry-mac/dev/tinacms/tina-graphql-gateway/apps/tmp/content/posts/HelloWorld.md
✅ Setup a blog page in /Users/logananderson-forestry-mac/dev/tinacms/tina-graphql-gateway/apps/tmp/pages/demo/blog/[filename].tsx

Tina Cloud is now properly setup, just a couple of things before you get started
        1. please add the following scripts to your package.json
"dev": "yarn tina-gql server:start -c \"next dev\"",
"build": "yarn tina-gql server:start -c \"next build\"",
"start": "yarn tina-gql server:start -c \"next start\""

@mitchmac Does anything else need to be removed?

changeset-bot[bot] commented 3 years ago

⚠️ No Changeset found

Latest commit: 4a7cbee33ebab19d69798496f43ab934543fbb8b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

DirtyF commented 3 years ago

An alternative version:

Setting up Tina...
Installing dependencies... ✅
Adding a content folder... ✅
Tina setup  ✅

Before you get started:

1. Add the following scripts to your package.json:
"dev": "yarn tina-gql server:start -c \"next dev\"",
"build": "yarn tina-gql server:start -c \"next build\"",
"start": "yarn tina-gql server:start -c \"next start\"" 

2. Check the page and the post created at:
 /Users/logananderson-forestry-mac/dev/tinacms/tina-graphql-gateway/apps/tmp/pages/demo/blog/[filename].tsx
/Users/logananderson-forestry-mac/dev/tinacms/tina-graphql-gateway/apps/tmp/content/posts/HelloWorld.md

Enjoy Tina!
logan-anderson commented 3 years ago

@jeffsee55 is there anyway we could do a canary release so we can start doing some user testing? or should we just merge this ?

jeffsee55 commented 3 years ago

Feel free to do a canary, I've outline the steps here https://github.com/tinacms/tina-graphql-gateway/blob/main/CONTRIBUTING.md#creating-a-beta-release...

having said that I don't care either way, we haven't announced this feature publicly

logan-anderson commented 3 years ago

I think merging it is fine for now