hyperapp-one

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

Github星跟踪图

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 :smile:

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. :tada:

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 :pray:

./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 :pray:

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 :smile:

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.

主要指标

概览
名称与所有者selfup/hyperapp-one
主编程语言JavaScript
编程语言JavaScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2017-02-02 21:39:30
推送于2023-10-18 21:16:19
最后一次提交2023-07-20 22:36:58
发布数0
用户参与
星数126
关注者数2
派生数20
提交数206
已启用问题?
问题数6
打开的问题数0
拉请求数63
打开的拉请求数1
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?