All Projects → simonh1000 → Elm Webpack Starter

simonh1000 / Elm Webpack Starter

Licence: mit
Elm 0.19.1 + Webpack 4 with hot-reloading! (Includes Babel for port code; CI script)

Programming Languages

javascript
184084 projects - #8 most used programming language
elm
856 projects

Projects that are alternatives of or similar to Elm Webpack Starter

Systemjs Hot Reloader
reloads your modules as needed so that you can have satisfyingly fast feedback loop when developing your app
Stars: ✭ 215 (-35.24%)
Mutual labels:  developer-tools, hot-reload
Awesome Live Reloading
A curated collection of live-reloading / hot-reloading / watch-reloading tools for different languages and frameworks.
Stars: ✭ 396 (+19.28%)
Mutual labels:  developer-tools, hot-reload
Instapack
All-in-one TypeScript and Sass compiler for web applications! 📦 🚀
Stars: ✭ 131 (-60.54%)
Mutual labels:  developer-tools, hot-reload
Easywebpack
A Simple, Powerful Webpack Front-End Development Solution
Stars: ✭ 452 (+36.14%)
Mutual labels:  webpack4, hot-reload
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+452.11%)
Mutual labels:  webpack4, hot-reload
ultimate-hot-boilerplate
🚀 node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
Stars: ✭ 35 (-89.46%)
Mutual labels:  hot-reload, webpack4
React Pwa
An upgradable boilerplate for Progressive web applications (PWA) with server side rendering, build with SEO in mind and achieving max page speed and optimized user experience.
Stars: ✭ 2,433 (+632.83%)
Mutual labels:  webpack4, hot-reload
sp-live-reload
SharePoint pages live reload module for client side development
Stars: ✭ 23 (-93.07%)
Mutual labels:  developer-tools, hot-reload
Pyroscope
Continuous Profiling Platform! Debug performance issues down to a single line of code
Stars: ✭ 4,816 (+1350.6%)
Mutual labels:  developer-tools
React Proto
🎨 React application prototyping tool for developers and designers 🏗️
Stars: ✭ 3,261 (+882.23%)
Mutual labels:  developer-tools
Django Querycount
Middleware that Prints the number of DB queries to the runserver console.
Stars: ✭ 280 (-15.66%)
Mutual labels:  developer-tools
Daily
Building the homepage every developer deserves 👩🏽‍💻 👨‍💻
Stars: ✭ 4,632 (+1295.18%)
Mutual labels:  developer-tools
Particle
A starter kit for using the prototyping tool, Pattern Lab, in tandem with a Drupal theme. Utilizes Webpack for all asset management.
Stars: ✭ 315 (-5.12%)
Mutual labels:  webpack4
Jet Live
c++ hot code reload for linux and macos
Stars: ✭ 283 (-14.76%)
Mutual labels:  hot-reload
Haxor News
Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Stars: ✭ 3,342 (+906.63%)
Mutual labels:  developer-tools
Budibase
Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
Stars: ✭ 8,071 (+2331.02%)
Mutual labels:  developer-tools
Tonzhon Music
将QQ音乐、网易云音乐和酷我音乐上的歌添加到一个列表来播放!
Stars: ✭ 257 (-22.59%)
Mutual labels:  webpack4
Table flipper
(╯°□°)╯︵ ┻━┻ A useless gem for table flipping on exceptions 😒
Stars: ✭ 328 (-1.2%)
Mutual labels:  developer-tools
Appstat
Get AppStore apps stats
Stars: ✭ 322 (-3.01%)
Mutual labels:  developer-tools
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (-7.53%)
Mutual labels:  webpack4

Elm 0.19.1 with Webpack 4, Hot Reloading & Babel 7

CircleCI

Elm dev environment with hot-loading (i.e. state is retained as you edit your code - Hot Module Reloading, HMR)). I use this daily for my professional work. Like elm-community/elm-webpack-starter but using Webpack 4.

Installation

Clone this repo into a new project folder and run install script. (You will probably want to delete the .git/ directory and start version control afresh.)

With npm

$ git clone [email protected]:simonh1000/elm-webpack-starter.git new-project
$ cd new-project
$ npm install

Developing

Start with Elm debug tool with either

$ npm start
or
$ npm start --nodebug

the --nodebug removes the Elm debug tool. This can become valuable when your model becomes very large.

Open http://localhost:3000 and start modifying the code in /src. Note that this starter expects you have installed elm-format globally.

An example using Routing is provided in the navigation branch

Production

Build production assets (js and css together) with:

npm run prod

Static assets

Just add to src/assets/ and the production build copies them to /dist

Testing

Install elm-test globally

elm-test init is run when you install your dependencies. After that all you need to do to run the tests is

npm test

Take a look at the examples in tests/

If you add dependencies to your main app, then run elm-test --add-dependencies

Elm-analyse

Elm-analyse is a "tool that allows you to analyse your Elm code, identify deficiencies and apply best practices." Its built into this starter, just run the following to see how your code is getting on:

$ npm run analyse

Circle CI

$ circleci local execute --job build

ES6

This starter includes Babel so you can directly use ES6 code.

Changelog

  • 3.10.4 - Use better webpack defaults in dev mode
  • 3.10.0 - Css minify
  • 3.9.3 - Update deps
  • 3.9.2 - Update elm/core and other deps
  • 3.9.1 - Version 0.19.1
  • 3.9.0 - Switch the closure compiler for minification in prod
  • 3.8.0 - Update deps
  • 3.7.0 - Add elm-analyse
  • 3.6.0 - Add CI script
  • 3.5.0 - Simpler means to work with/out the debug window
  • 3.4.0 - Add ability to start dev mode without debug window
  • 3.3.0 - Switch to elm/http 2.0.0 (and other deps updates)
  • 3.2.0 - Add elm-minify to prod builds (thanks Asger)
  • 3.1.0 - Revert to webpack-dev-server with example
  • 3.0.2 - bugfixes (mostly for tests)
  • 3.0.1 - use publicPath to ensure compatibility with more complex routes
  • 3.0.0 - Version 0.19
  • 2.1.0 - switch to webpack-serve (from webpack dev server)
  • 2.0.0
    • Remove Bootstrap (use purecss as simple alternative - you don't want me choosing your css framework after all)
    • Compile CSS into separate file
  • 1.2.0 - Webpack 4, Babel 7
  • 1.1.0 - add elm-verify-examples

How it works

npm run dev maps to webpack-dev-server --hot --colors --port 3000 where

  • --hot Enable webpack's Hot Module Replacement feature
  • --port 3000 - use port 3000 instead of default 8000
  • inline (default) a script will be inserted in your bundle to take care of reloading, and build messages will appear in the browser console.
  • --colors should show the colours created in the original Elm errors, but does not (To Fix)

One alternative is to run npx webpack-dev-server --hot --colors --host=0.0.0.0 --port 3000 which will enable your dev server to be reached from other computers on your local network

Credits

A long time ago this code was forked from https://github.com/fluxxu/elm-hot-loader

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].