Coder Social home page Coder Social logo

yliaho / suomidev-landing Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 720 KB

Really goddamn simple landing page featuring moomin!

Home Page: https://suomi.dev

HTML 35.44% TypeScript 14.00% CSS 36.68% JavaScript 13.88%
moomin landing finland form email email-sender

suomidev-landing's Introduction

Suomi.dev Landing Page

Really goddamn simple landing page featuring moomin! https://suomi.dev

Development

  • $ yarn to install dependencies
  • $ yarn run dev to start the parcel development server.

Production

  • $ yarn run build to build production code from source.
  • $ yarn run deploy runs the following scripts:
    • clean removes the dist/ directory to trash
    • build builds production code from source using scripts/build.js.
    • push-dir (node module script) pushes the dist/ folder to the gh-pages branch

Why not use parcel's CLI?

as described in scripts/build.js

/**
 * Why use a custom builder script instead of just using the CLI
 * you may ask? Well, turns out that if you want to keep using a
 * custom domain on github pages, you sorta need to have CNAME file
 * included in your gh-pages branch instead of just setting the
 * custom domain from github repo's settings. Each consequent push
 * to the gh-pages branch removes whatever you inputted as your
 * custom domain from the settings page. Bundling the source to
 * a production ready code and _then_ creating the CNAME file is
 * a quick and dirty workaround this.
 */

In a nutshell, I'm still using parcel, but just programmatically. It makes it easier to do whatever tasks I need to do after bunding a production code (In this case, creating a CNAME file for github pages).

suomidev-landing's People

Contributors

dependabot[bot] avatar yliaho avatar

Stargazers

 avatar  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.