Giter Club home page Giter Club logo

s12y's Introduction

About

  • Eleventy is the static site generator
  • Sanity is the CMS
  • This is a monorepo using NPM workspaces
  • The Sanity CMS configuration is in /studio and the Eleventy frontend code is in /web
  • All commands listed below can be run from the root repo directory

Init

Install NPM dependencies:

npm install

Dev

Start front-end dev server and watch for changes:

npm run web

Run sanity dev server:

npm run studio

Build

Run front end build script (this is used by Netlify to deploy the site):

npm run build --workspace=web

Run the Sanity build process:

npm run build --workspace=studio

Deploy

  • Commits on the master branch automatically deploy the site on Netlify

  • Publishing content in Sanity also causes the site to deploy via a Netlify Webhook.

  • Update the sanity studio in produciton

    cd studio && sanity deploy
    

    This requires @sanity/cli to be installed locally.

s12y's People

Contributors

maxackerman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.