Everything you ever wanted to know about Netlify Functions ⚡️
-
Fork the repo
-
Clone down your fork
-
Use npm to install dependencies
npm install
-
Create a new markdown,
.md
, file inexamples/
folder using the following template:--- title: Example title # Add an example title code: ...netlify/repo-name # Add the GitHub source path tags: - react # Add optional tags --- Include any reference content you wish
-
Test the site locally
npm run build
-
Push your changes up to your fork
-
Submit a pull request to this repo, making sure to follow the contributing guidelines and explaining the details of your contribution
- Clone the repo using
git clone [email protected]:netlify/functions.git
- Use npm to install dependencies
npm install
- Create a
.env
file with the environment variables listed below - And run the site locally
npm run dev
You'll need to generate a GitHub Access Token to retrieve stars and forks. Add the following to your .env
file:
URL=http://localhost:8080
GITHUB_TOKEN=
SLACK_WEBHOOK_URL=
GREETING="hi smashingconf"
npm run dev
will spin up a development environment and watch for changesnpm run build
builds a production version of the site todist
npm run debug
will the eleventy debugger
All dependencies are development at the moment
@11ty/eleventy
dotenv
@11ty/eleventy-plugin-rss
@11ty/eleventy-plugin-syntaxhighlight
@quasibit/eleventy-plugin-sitemap
eleventy-plugin-sass
eleventy-plugin-seo
- Andy Bell for modern CSS reset
- Yair Even Or for Tagify