Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-liferay-elm

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-liferay-elm

Yeoman generator for creating Liferay projects with Elm.

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Liferay Elm Generator npm version Build Status Renovate enabled

A Yeoman generator for creating Liferay Elm projects, using the amazing Create Elm App for a fast and easy development with no build configuration. To create a build for Liferay, it uses the liferay-npm-bundler from the very useful Liferay JS Toolkit.

Installation

First, install Yeoman and generator-liferay-elm using npm (assuming you have pre-installed node.js).

npm install -g yo generator-liferay-elm

Then generate your new project:

yo liferay-elm

You can also try it locally by cloning the repo and running npm link inside the project.

Getting started

Once the project generated:

cd my-elm-project
yarn start

Build your app for Liferay:

yarn build:liferay

Deploy your app to Liferay:

yarn deploy:liferay

Run tests:

yarn test
# or in watch mode
yarn test --watch

The first time, you might see this message: INFO: Running elmi-to-json for the first time; downloading the actual binary. Simply run the command again.

Install a new package (e.g. elm/svg):

yarn run install elm/svg

This generator gives you scripts that are aliases to the one provided by Create Elm App (e.g. yarn start for elm-app start). To learn more about the tasks available for your project, directly checkout this guide.

Trying it locally

If you to try this generator on your local machine, feel free to clone this repo and run the following commands:

# install dependencies:
yarn
# make it available for yeoman:
npm link

What is Elm?

As the official site states, Elm is a delightful language for reliable webapps. How? By providing features such as:

  • No Runtime Exceptions
  • Great Performance
  • Enforced Semantic Versioning
  • Small Assets
  • JavaScript Interop

The best way to learn Elm is to follow the official guide. You can try Elm with this online editor.

You can also checkout this non-exhaustive list of nice talks about Elm:

License

LGPL-3.0

Keywords

FAQs

Package last updated on 21 Jul 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc