All Projects → MithrilJS → mopt

MithrilJS / mopt

Licence: MIT license
Babel plugin to optimize Mithril m() calls into simple JS objects for speed

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mopt

next-oss
webpack打包文件上传到OSS
Stars: ✭ 18 (-60%)
Mutual labels:  build
unity-test-runner
Run tests for any Unity project
Stars: ✭ 134 (+197.78%)
Mutual labels:  build
fimfic2epub
📚 Chrome/Firefox extension & npm package for improved EPUB export on fimfiction.net
Stars: ✭ 17 (-62.22%)
Mutual labels:  mithril
ionic4-angular7-example
Ionic 4, Angular 7 and Cordova Tutorial: Build CRUD Mobile Apps
Stars: ✭ 57 (+26.67%)
Mutual labels:  build
vue-js-3-firebase-firestore
Vue 3 Firebase Tutorial: Build Firestore CRUD Web Application
Stars: ✭ 34 (-24.44%)
Mutual labels:  build
Datafus
The Dofus database and socket events in JSON files. Includes the source code and more...
Stars: ✭ 16 (-64.44%)
Mutual labels:  build
android manifest
The beginnings
Stars: ✭ 26 (-42.22%)
Mutual labels:  build
UnityBuildManager
Utility for running builds sequence & pushing them to markets & keeping changelog
Stars: ✭ 53 (+17.78%)
Mutual labels:  build
angular-build-info
🛠 A CLI to generate an easily importable `build.ts` file containing various details about the application build
Stars: ✭ 25 (-44.44%)
Mutual labels:  build
deblibs-gradle-plugin
A Gradle plugin that creates Github issue and Slack message for outdated dependencies so they can easily be tracked and manually upgraded.
Stars: ✭ 73 (+62.22%)
Mutual labels:  build
knative-build-tutorials
A set of tutorials for Knative Build
Stars: ✭ 27 (-40%)
Mutual labels:  build
simple-cpp-setup
Simple C++ setup with CMake and CTest.
Stars: ✭ 19 (-57.78%)
Mutual labels:  build
build-scripts
Utility scripts for building of 3rd-party libraries
Stars: ✭ 33 (-26.67%)
Mutual labels:  build
build
build is like Makefile for single files
Stars: ✭ 17 (-62.22%)
Mutual labels:  build
buildroot
Configure and build dahliaOS Linux-based builds
Stars: ✭ 56 (+24.44%)
Mutual labels:  build
vsSolutionBuildEvent
🎛 Event-Catcher with variety of advanced Actions to service projects, libraries, build processes, runtime environment of the Visual Studio, MSBuild Tools, and …
Stars: ✭ 66 (+46.67%)
Mutual labels:  build
cargo-limit
Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc.
Stars: ✭ 105 (+133.33%)
Mutual labels:  build
xcode-configure
This command can generate makefile to build xcode project in command line just like <configure & make & make install> in C/C++ language world.
Stars: ✭ 34 (-24.44%)
Mutual labels:  build
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+60%)
Mutual labels:  build
Kotsu
✨ Clean, opinionated foundation for new projects — to boldly go where no man has gone before
Stars: ✭ 48 (+6.67%)
Mutual labels:  build

mopt NPM Version NPM License

A babel plugin to statically optimize mithril hyperscript function invocations.

// This hyperscript function invocation
m(".fooga");

// Gets optimized into
m.vnode("div",undefined,{className:"fooga"},undefined,undefined,undefined);

Please file an issue if you come across any cases that this doesn't handle, I'd love to improve the number of structures I can rewrite!

Mithril Version Warning

mopt only works with [email protected].

For optimizing [email protected] see mithril-objectify.

Installation

Install with npm

npm i mopt

Usage with Babel

.babelrc

// .babelrc
{
    "plugins": [ "mopt" ]
}

CLI

$ babel --plugins mopt script.js

API

require("babel-core").transform("<code>", {
  plugins: [ "mopt" ]
});

Usage with a bundler

Rollup - rollup-plugin-babel

Browserify - babelify

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