Git Product home page Git Product logo

firstfleetinc / hyperapp-one Goto Github PK

View Code? Open in Web Editor NEW

This project forked from selfup/hyperapp-one

0.0 6.0 0.0 819 KB

Hyperapp One is a Parcel boilerplate for quickstarting a web application with Hyperapp, JSX, Prettier, and Airbnb's JavaScript Styleguide via ESLint.

Home Page: https://selfup.github.io/hyperapp-one

License: MIT License

JavaScript 75.03% Shell 7.08% HTML 5.10% CSS 12.79%

hyperapp-one's Introduction

Hyperapp One

Build Status Slack

Hyperapp One is a Parcel boilerplate for quickstarting a web application with Hyperapp, JSX, Prettier, and Airbnb's JavaScript Styleguide via ESLint.

Redux Dev Tools support is included as well ๐Ÿ˜„

Table of Contents

Installing

git clone https://github.com/selfup/hyperapp-one
cd hyperapp-one
npm install
npm start

Testing

npm test

All tests are in the root test directory. ๐ŸŽ‰

Development

Access localhost:1234.

The browser will reload as you save new code. ๐Ÿš€

Now go code something awesome!

Wiping the Commit History

Make sure you are in the boilerplate root and run:

npm run wipe

Add your remote:

git remote add origin <ssh_or_https_url>

Then work as usual.

Or if you prefer to do it yourself from scratch:

rm -rf .git
git init
git add .
git commit -m "initial commit"

Then add your remote and work from there as usual.

git remote add origin <ssh_or_https_url>

Deploying to GitHub Pages

This will be interactive as it merges master into the gh-pages branch ๐Ÿ™

./scripts/gh_pages.sh

Sometimes it will say there is nothing to commit even though you have more commits.

Just do a git push or a git push -f and then check back out to master ๐Ÿ™

Now visit:

  • No custom domain: yourUserName.github.io/yourRepoName
  • With a custom domain: yourCustomDomain/yourRepoName

Stylistic Differences

As you may have noticed I don't use Standard. I prefer ESLint and AirBnb as well as Prettier.

Feel free to change this. You can easily remove .eslintrc.js and code without a linter, as well as remove all eslint packages in the package.json!

I just like how strict AirBnb is, and how it forces you to learn certain ways of doing things manually. It also enforces rules that make it so git diffs are less of a pain to go through. VSCode and Atom have options to have ESLint auto correct (as much as it can) JS strictness. Prettier just makes everything consistent and pretty ๐Ÿ˜„

I also use JSX instead of the built-in h function, because to me it is easier to go through Code Reviews with, and is stylistically more pleasing to me. It also helps with UX teams as they know HTML, and JSX is closer to HTML than pure h calls. See @hyperapp/html for another alternative to JSX.

License

Hyperapp One is MIT licensed. See LICENSE.

hyperapp-one's People

Contributors

selfup avatar lukejacksonn avatar jorgebucaran avatar brycemcwilliams avatar mrozbarry avatar jesspu avatar

Watchers

James Cloos avatar  avatar Brian Beaird avatar Grant Williams avatar  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.