Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
⬆️🎨 Update dependencies, improve code base with scss styles, switch t…
Browse files Browse the repository at this point in the history
…o yarn for better dependency resolution.

Generate lockfiles

Update _app.js

The `Container` in `_app` has been deprecated and should be removed. https://err.sh/vercel/next.js/app-container-deprecated

Remove deprecated studioHintsConfig

:bug: Fix travis.yml to use yarn rather than npm.

:fire: Drop nodejs 8 compatibility.
  • Loading branch information
Daniel Kaminski de Souza committed Feb 7, 2021
1 parent a593e3e commit 2a1819d
Show file tree
Hide file tree
Showing 54 changed files with 24,225 additions and 21,303 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/build
/node_modules
build
node_modules
.vscode
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- '8'
- '10'
- '12'

Expand All @@ -9,7 +8,7 @@ cache:
- '$HOME/.npm'

install:
- npm ci
- yarn install

script:
- npm test
- yarn test
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Want to make a template for Sanity and your favourite front-end framework? We’

You develop the templates in `/template`, and review your changes in `/build`.

1. **Install dependencies with `npm install` in the root folder.** This will install the template development tool that watches changes in the `/template` folder and output the template to `/build`.
1. **Install dependencies with `yarn install` in the root folder.** This will install the template development tool that watches changes in the `/template` folder and output the template to `/build`.

2. **Run `npm run dev` in root folder.** This will build the template files to `/build`. This is how the code will look for those who install the project later.
2. **Run `yarn dev` in root folder.** This will build the template files to `/build`. This is how the code will look for those who install the project later.

3. **Run `npm install` in `./build/web` and `sanity install` in `/build/studio`** This will install the necessary dependencies for the Next.js frontend and the Studio.
3. **Run `yarn install` in `./build/web` and `sanity install` in `/build/studio`** This will install the necessary dependencies for the Next.js frontend and the Studio.

4. **Run `npm run dev` in `./build/web` and `sanity start` in `/build/studio`**. This will start the development servers for the Next.js frontend and Sanity Studio.
4. **Run `yarn dev` in `./build/web` and `sanity start` in `/build/studio`**. This will start the development servers for the Next.js frontend and Sanity Studio.

## Notes

Expand Down
Loading

0 comments on commit 2a1819d

Please sign in to comment.