Coder Social home page Coder Social logo

svenjungnickel.com

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# generate static project and launch server
$ npm run generate
$ npm run start

💫 Deploy

To deploy on Netlify just hit following button: Deploy to Netlify

You can also test the Netlify build before you deploy.

  1. Link Netlify Project.

    Run following command to link the project.

    netlify link

    Select a way to link the project.

  2. Run test build.

    To test the build run following command:

    netlify build

    This will run the build on your local dev environment. The logs will show if the build will be successful or has any errors.

🚨 Linting

We are using EsLint for Javascript linting. Simply run following command to lint your code:

npm run lint

To fix any issues simply run the fix command:

npm run lintfix

✅ Unit tests

We are using Jest for unit tests. You can find more details in the gatsby docs.

To run all unit tests simply use following command:

npm run test

You can also watch unit tests while developing:

npx jest --watch

To watch all unit tests run following:

npx jest --watchAll

All unit tests generate also code coverage. You can find the generated code coverage under <rootDir>/coverage/index.html.

🎉 Lighthouse audits

We are running lighthouse audits via lighthouse CI CLI.

To start mobile Lighthouse audits use following command:

npm run lhci:mobile

To start desktop Lighthouse audits use following command:

npm run lhci:desktop

🎬 Run GitHub actions locally

To test GitHub actions locally before pushing to GitHub we are using nektos/act. You have to install it first via brew brew install act. Then you can run actions via following command:

act -j <workflow-name>

Visit the docs for more example commands.

Sven Jungnickel's Projects

hayahaycafe icon hayahaycafe

A static site build with Gatsby for hayahaycafe.com

plugins icon plugins

The master list of Craft 3-compatible plugins

postie icon postie

A Craft Commerce shipping calculator plugin.

rome icon rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!

vuecommunity icon vuecommunity

Vue.js community and ecosystem guide, written and maintained by the community itself

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.