not really known
Go to file
2019-07-22 21:38:58 -07:00
_layout Extract index view to module. 2019-07-22 14:58:26 -07:00
_pages Render posts listing page for articles. 2019-07-22 13:34:26 -07:00
_posts/articles Render posts listing page for articles. 2019-07-22 13:34:26 -07:00
gen Expose correct value from content. 2019-07-22 21:38:58 -07:00
generator Extract function. 2019-07-22 21:36:54 -07:00
src Move function into content module. 2019-07-22 20:15:39 -07:00
tests elm-app-gen 2019-07-22 08:11:26 -07:00
.gitignore elm-app-gen 2019-07-22 08:11:26 -07:00
elm.json Add generator module. 2019-07-22 20:40:38 -07:00
numeric Add boilerplate for generator CLI. 2019-07-22 21:05:31 -07:00
package-lock.json Add boilerplate for generator CLI. 2019-07-22 21:05:31 -07:00
package.json Add boilerplate for generator CLI. 2019-07-22 21:05:31 -07:00
README.md elm-app-gen 2019-07-22 08:11:26 -07:00
tsconfig.json Add boilerplate for generator CLI. 2019-07-22 21:05:31 -07:00

elm-markup-pages

Static site generator for elm-markup.

Getting Started

Install Dependencies

npm install

Running Locally

npm start

Will compile your app and serve it from http://localhost:1234/ Changes to your source code will trigger a hot-reload in the browser, which will also show compiler errors on build failures.

Running Tests

npm test

or

npm run autotest

To re-run tests when files change.

Production build

npm run build

Will generate a production-ready build of your app in the dist folder.

Elm Commands

Elm binaries can be found in node_modules/.bin. They can be run from within your project via npx

To install new Elm packages, run:

npx elm install <packageName>

Libraries & Tools

These are the main libraries and tools used to build elm-markup-pages. If you're not sure how something works, getting more familiar with these might help.

Elm

Elm is a delightful language for creating reliable webapps. It guarantees no runtime exceptions, and provides excellent performance. If you're not familiar with it, the official guide is a great place to get started, and the folks on Slack and Discourse are friendly and helpful if you get stuck.

Elm Test

This is the standard testing library for Elm. In addition to being useful for traditional fixed-input unit tests, it also supports property-based testing where random data is used to validate behavior over a large input space. It's really useful!

Parcel

Parcel build and bundles the application's assets into individual HTML, CSS, and JavaScript files. It also runs the live-server used during development.