All Projects → highmountaintea → create-mithril-app

highmountaintea / create-mithril-app

Licence: other
Sets up a mithril.js project with webpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to create-mithril-app

dropEst
Pipeline for initial analysis of droplet-based single-cell RNA-seq data
Stars: ✭ 71 (+255%)
Mutual labels:  pipeline
starbase
⭐ Production-ready website boilerplate made with webpack 5, modern JS (via Babel 7) & Sass
Stars: ✭ 70 (+250%)
Mutual labels:  babel
array-mixer
Powerful, super tiny and easy to use lib to reorder your javascript arrays.
Stars: ✭ 32 (+60%)
Mutual labels:  babel
nuxt-babel
Use normal .babelrc file with your Nuxt app
Stars: ✭ 32 (+60%)
Mutual labels:  babel
snabbdom-pragma
'NotReact.createElement' jsx pragma although for snabbdom
Stars: ✭ 47 (+135%)
Mutual labels:  babel
node-starter-kit
Node.js / GraphQL project template pre-configured with TypeScript, PostgreSQL, login flow, transactional emails, unit tests, CI/CD workflow.
Stars: ✭ 76 (+280%)
Mutual labels:  babel
babel-plugin-transform-replace-expressions
A Babel plugin for replacing expressions with other expressions
Stars: ✭ 23 (+15%)
Mutual labels:  babel
DNAscan
DNAscan is a fast and efficient bioinformatics pipeline that allows for the analysis of DNA Next Generation sequencing data, requiring very little computational effort and memory usage.
Stars: ✭ 36 (+80%)
Mutual labels:  pipeline
react-app-rewire-babel-loader
Rewire babel-loader loader in your create-react-app project using react-app-rewired.
Stars: ✭ 20 (+0%)
Mutual labels:  babel
babel-plugin-remove-test-ids
🐠 Babel plugin to strip `data-test-id` HTML attributes
Stars: ✭ 40 (+100%)
Mutual labels:  babel
ignite-reactjs
Projetos desenvolvidos em ReactJS durante a trilha de ReactJS do Ignite da Rocketseat. 💜🚀
Stars: ✭ 20 (+0%)
Mutual labels:  babel
gitlab-merger-bot
GitLab Merger Bot
Stars: ✭ 23 (+15%)
Mutual labels:  pipeline
concourse-ci-kube
Concoures CI Kube Deploment
Stars: ✭ 16 (-20%)
Mutual labels:  pipeline
coronavirus-stats
Automatically scrape data and statistics on Coronavirus to make them easily accessible in CSV format
Stars: ✭ 47 (+135%)
Mutual labels:  pipeline
jenkins-pipeline-gitflow-maven
Sample Maven project with a Jenkinsfile doing git-flow based release management
Stars: ✭ 47 (+135%)
Mutual labels:  pipeline
rollup-lib-bundler
Simple lib bundler
Stars: ✭ 13 (-35%)
Mutual labels:  babel
pipecolor
A terminal filter to colorize output
Stars: ✭ 17 (-15%)
Mutual labels:  pipeline
pipeline-as-code-with-jenkins
Pipeline as Code with Jenkins
Stars: ✭ 56 (+180%)
Mutual labels:  pipeline
HAR
Recognize one of six human activities such as standing, sitting, and walking using a Softmax Classifier trained on mobile phone sensor data.
Stars: ✭ 18 (-10%)
Mutual labels:  pipeline
RNASeq
RNASeq pipeline
Stars: ✭ 30 (+50%)
Mutual labels:  pipeline

create-mithril-app - Sets up a mithril.js project with webpack

npm package

Creates a mithril.js project for you.

Usage

First install this app with npm i -g create-mithril-app@latest, then type the following:

create-mithril-app <directory>
cd <directory>
npm install
npm run dev

This would create a mithril.js project in the directory specified, install the appopriate modules, and run the skeleton app on port 8020. Open your browser to http://localhost:8020 and you should see a Hello World !! screen.

This mithril.js project is set up with webpack-dev-server, so when you start editing the project with your favorite code editor, your browser would reflect the changes instantly.

Note create-mithril-app can also be run using npx

Purpose

I feel mithril.js can benefit from a battery-included tool to set up a project. This tool creates a project with the following:

  • webpack-dev-server configured with live reload
  • webpack configured with babel
  • build pipeline already set up
  • a sample Hello World app to kick start

Hopefully this can lower the barrier for new developers to try out mithril, and simplify the mundane task of creating a new project for seasoned developers.

Project structure

  • client - the directory for source JS files
  • public - the directory for static files (html, css etc.)
  • webpack.dev.js - used by webpack-dev-server when running in dev mode
  • webpack.build.js - used by webpack to build the production files
  • package.json - modify this file to configure the name and license of your app

Configuration

The created project comes with two webpack files, one for development, one for build. They can be configured further to suit your needs. Please be aware we cannot support all these different configurations

Build

npm run build would create the deployable files in the build directory.

Server-side API

create-mithril-app is designed for developing client side applications that access APIs remotely. It can easily integrate with a backend server too. Please see Server setup for the sample API server that comes with this app.

Release Logs

  • 2.0.1 - now uses mithril v2
  • 1.0.25 - now supports creating a new app into an empty directory
  • 1.0.24 - updated to webpack 4
  • 1.0.21 - fixed path not found issue under Linux
  • 1.0.14 - now can inject environment variables via .env, .env.development, and .env.production
  • 1.0.11 - fixed async/await bug
  • 1.0.9 - Added create-mithril-server
  • 1.0.6 - Added Babel to dev server, and supports spread operator.
  • 1.0.5 - Fixed breakpoint debugging in dev mode
  • 1.0.3 - Build files are now minified by default, and build pipeline is configurable.
  • 1.0.0 - Bumped to 1.0.0 after going through more field testing.
  • 0.2.4 - Fully working and supporting dev and build pipeline.

Special Thanks

To mithril.js team for building such an interesting framework. To create-react-app for the inspiration.

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