Socket
Socket
Sign inDemoInstall

@enonic/esbuild-server-side-js

Package Overview
Dependencies
1
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @enonic/esbuild-server-side-js

Make it easy to esbuild server side js for Enonic XP


Version published
Maintainers
4
Install size
146 kB
Created

Readme

Source

Esbuild server-side javascript for Enonic XP

Install

yarn add --dev @enonic/esbuild-server-side-js

Usage

Make a file named esbuild.mjs containing:

import {esbuildServerSideJs} from '@enonic/esbuild-server-side-js';

esbuildServerSideJs({
	shims: [
		'src/main/resources/lib/nashorn/global.es'
	]
});

In build.gradle

plugins {
	id 'com.github.node-gradle.node' version '2.2.4'
}

node {
	download = true
	version = '14.10.1'
}

yarn.dependsOn(yarn_install)

task esbuild(type: NodeTask) {
	script file('esbuild.mjs')
}

processResources {
	dependsOn esbuild
	mustRunAfter esbuild
	exclude '**/*.es'
}

Changelog

0.1.0

  • Handle externals

Keywords

FAQs

Last updated on 14 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc