All Projects → Mateiadrielrafael → esbuild-plugin-purescript

Mateiadrielrafael / esbuild-plugin-purescript

Licence: MIT license
esbuild integration for PureScript

Programming Languages

javascript
184084 projects - #8 most used programming language
Dhall
116 projects
purescript
368 projects

Projects that are alternatives of or similar to esbuild-plugin-purescript

electron-vue-next
A starter template for using vue-next with the electron.
Stars: ✭ 189 (+600%)
Mutual labels:  esbuild
docker-flask-example
A production ready example Flask app that's using Docker and Docker Compose.
Stars: ✭ 311 (+1051.85%)
Mutual labels:  esbuild
gulp-esbuild
gulp plugin for esbuild bundler
Stars: ✭ 39 (+44.44%)
Mutual labels:  esbuild
electron-esbuild
Create Electron apps using esbuild and your favorite frontend tool
Stars: ✭ 60 (+122.22%)
Mutual labels:  esbuild
cdk-esbuild
CDK constructs for esbuild, an extremely fast JavaScript bundler
Stars: ✭ 44 (+62.96%)
Mutual labels:  esbuild
unconfig
A universal solution for loading configurations.
Stars: ✭ 415 (+1437.04%)
Mutual labels:  esbuild
charpente
Seamlessly design robust 'shiny' extensions
Stars: ✭ 36 (+33.33%)
Mutual labels:  esbuild
sunder-worker-template
Template for Sunder in Cloudflare worker with Typescript, ESBuild and Jest
Stars: ✭ 44 (+62.96%)
Mutual labels:  esbuild
hammer
Build Tool for Browser and Node Applications
Stars: ✭ 226 (+737.04%)
Mutual labels:  esbuild
esbuild-css-modules-plugin
A esbuild plugin to bundle css modules into js(x)/ts(x)
Stars: ✭ 64 (+137.04%)
Mutual labels:  esbuild
awesome-esbuild
A curated list of awesome esbuild resources
Stars: ✭ 195 (+622.22%)
Mutual labels:  esbuild
tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (+96.3%)
Mutual labels:  esbuild
esbuild-loader-examples
esbuild-loader examples
Stars: ✭ 76 (+181.48%)
Mutual labels:  esbuild
vite-electron-esbuild-starter
⚡️The electron starter using Vite and esbuild to fast development.
Stars: ✭ 52 (+92.59%)
Mutual labels:  esbuild
esbuild-vue
An esbuild plugin for loading and compiling Vue 2 single-file components.
Stars: ✭ 43 (+59.26%)
Mutual labels:  esbuild
fast-vite-nestjs-electron
Vite + Electron + Nestjs with esbuild, crazy fast! ⚡
Stars: ✭ 128 (+374.07%)
Mutual labels:  esbuild
bundle
An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
Stars: ✭ 475 (+1659.26%)
Mutual labels:  esbuild
codetree
⚡️ Lightning fast online code playground, built on top of webAssembly 🔥.
Stars: ✭ 55 (+103.7%)
Mutual labels:  esbuild
electron-vite-boilerplate
📚 A Electron + Vite boilerplate of the nature of learning(source-code of vite-plugin-electron) / 学习性的样板工程(vite-plugin-electron源码)
Stars: ✭ 157 (+481.48%)
Mutual labels:  esbuild
new-tab
⚡ A high-performance browser new tab page that gets you where you need to go faster.
Stars: ✭ 64 (+137.04%)
Mutual labels:  esbuild

PureScript esbuild plugin

esbuild integration for PureScript

What this plugin does:

  • Allows you to import .purs files directly from your JavaScript

What this plugin does not do:

  • Run spago build or similar commands for you. This plugin will only point esbuild to your existing output directory
  • Tree shake using zephyr for you. If you want to use zephyr, check out this example

Usage

First, install the library from npm:

npm install esbuild-plugin-purescript

Example build.js:

const esbuild = require("esbuild");
const PureScriptPlugin = require("esbuild-plugin-purescript");
const path = require("path");

esbuild
  .build({
    entryPoints: ["src/index.js"],
    bundle: true,
    outdir: "dist",
    plugins: [
      PureScriptPlugin({
        output: path.resolve(
          __dirname,
          "myOutput"
        ) /* set to 'output' by default */,
        sources: [
          "some/**/glob/*.purs",
        ] /* set to `spago sources` by default */,
      }),
    ],
  })
  .catch((_e) => process.exit(1));

Example src/index.js:

import { main } from "./Main.purs";

console.log("Loaded PureScript code 🚀");

main();
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].