All Projects → kennetpostigo → qnd

kennetpostigo / qnd

Licence: other
Quick and Dirty development builds

Programming Languages

C++
36643 projects - #6 most used programming language
CSS
56736 projects
ocaml
1615 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to qnd

Rescript Relay
Use Relay with ReasonML.
Stars: ✭ 214 (+1026.32%)
Mutual labels:  reasonml, reason-react
re-use
⚛️ 🎣 A collection of hooks for ReasonReact
Stars: ✭ 27 (+42.11%)
Mutual labels:  reasonml, reason-react
Reason Graphql Fullstack
Fullstack Reason + GraphQL Todo List App
Stars: ✭ 246 (+1194.74%)
Mutual labels:  reasonml, reason-react
Pure
React in pure Reason that targets native platforms.
Stars: ✭ 135 (+610.53%)
Mutual labels:  reasonml, reason-react
Reason-react-hooks
🧶 Some hooks in ReasonML for reason-react that can be useful
Stars: ✭ 14 (-26.32%)
Mutual labels:  reasonml, reason-react
Fullstack Reason
A demo project that shows a fullstack ReasonML/OCaml app–native binary + webapp
Stars: ✭ 164 (+763.16%)
Mutual labels:  reasonml, reason-react
bs-rsuite-ui-react
Reason bindings for React Suite UI library
Stars: ✭ 26 (+36.84%)
Mutual labels:  reasonml, reason-react
Reason Calculator
A calculator built with Reason and reason-react.
Stars: ✭ 110 (+478.95%)
Mutual labels:  reasonml, reason-react
re-cite
Manage citations from your colleagues , friends, movies, your cat or even yourself.
Stars: ✭ 20 (+5.26%)
Mutual labels:  reasonml, reason-react
reason-hooks-testing-library
ReasonML bindings for react-hooks-testing-library
Stars: ✭ 24 (+26.32%)
Mutual labels:  reasonml, reason-react
Brisk Reconciler
React.js-like reconciler implemented in OCaml/Reason
Stars: ✭ 124 (+552.63%)
Mutual labels:  reasonml, reason-react
LifeTime
LifeTime app
Stars: ✭ 35 (+84.21%)
Mutual labels:  reasonml, reason-react
Reroute
a fast, declarative microrouter for reason-react
Stars: ✭ 120 (+531.58%)
Mutual labels:  reasonml, reason-react
Bs Material Ui
ReScript bindings for material-ui
Stars: ✭ 185 (+873.68%)
Mutual labels:  reasonml, reason-react
Rescript Recoil
Zero-cost bindings to Facebook's Recoil library
Stars: ✭ 115 (+505.26%)
Mutual labels:  reasonml, reason-react
app-template-rescript-react
Adding ReScript with rescript-react on top of @snowpack/app-template-react
Stars: ✭ 44 (+131.58%)
Mutual labels:  reasonml, reason-react
Timerlab
⏰ A simple and customizable timer
Stars: ✭ 84 (+342.11%)
Mutual labels:  reasonml, reason-react
Verified React
Automated reasoning for React/ReasonML
Stars: ✭ 104 (+447.37%)
Mutual labels:  reasonml, reason-react
re-typescript
An opinionated attempt at finally solving typescript interop for ReasonML / OCaml.
Stars: ✭ 68 (+257.89%)
Mutual labels:  reasonml, reason-react
reason-react-lazy-loading
Example project to show how to use components lazy loading in ReasonReact
Stars: ✭ 41 (+115.79%)
Mutual labels:  reasonml, reason-react

qnd

Quick and Dirty development builds for reason

qnd provides some additional functionality while developing on the web with reason. qnd includes hot reloading, devserver, runtime error overlay and fancy console errors out of the box. qnd utilizes webpack under the hood in order to provide this functionality but imposes no knowledge of webpack.

Install

yarn add qnd -D

# OR

npm install qnd --save-dev

Usage

To get started with qnd all you need to do is create a file and pass your app entry and the project __dirname. Then it will start a server at port 8000:

// qnd.js
const qnd = require('qnd');

qnd({
  dirname: __dirname,
  entry: {
    myApp: './path/to/app/root.re'
  },
  output: 'path/to/output',
  assets: 'path/to/assets',
  html: 'path/to/html/index.html'
});

In your index.html add the following:

<script src="myApp.js"></script>

Then in your package.json add a script to your npm scripts section:

"scripts": {
  ...
  "start": "node qnd.js"
}

Options

The qnd function takes your application entry settings as a config object.

qnd({
  dirname: __dirname,
  entry: string | Object,
  output: string,
  assets: string,
  html: string,
  mode?: 'production' | 'development',,
  sourcemaps?: boolean,
  overlay?: boolean
});

dirname: root direcroty name of the current application.

entry: the entry file(s) to your application source.

output: the location you want to place the output from qnd.

assets: the location of your assets.

html: the location of your index.html.

mode: whether you want to run qnd in production or development.

port[optional]: the port you want the development server to run on. Defaults to 8000. Example value: 3000.

sourceMaps[optional]: application source maps to original code. Defaults to false.

overlay[optional]: development overlay that propogates errors on screen. Defaults to true.

License

MIT

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