
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
generator-yfiles-app
Advanced tools
A generator that scaffolds a yFiles for HTML powered application. Requires local yFiles package.
Warning
This yeoman generator is deprecated and no longer maintained. For better ways to bootstrap yFiles for HTML applications, please see Alternative ways to scaffold yFiles for HTML applications.
A yeoman generator that scaffolds a yFiles for HTML powered application (up to yFiles for HTML 2.4). Requires a local yFiles for HTML package which can be obtained and evaluated here.
Watch this Youtube screencast to see the generator in action.
Besides this Yeoman generator, there are more ways to scaffold yFiles for HTML applications with different features and frameworks:
The yFiles Dev Suite is a graphical interface that facilitates working with a yFiles for HTML software package:
See how it works, in this video on YouTube.
The App Generator is a tool that lets you interactively create a diagram application prototype to visualize your data with very little programming knowledge. It generates and exports the source code of configurable prototype applications with different frameworks (e.g. React, Vue.js or Angular) with features like editing, context menu, graph search, printing and graph editing capabilities.
First, install Yeoman and generator-yfiles-app using npm or yarn (we assume you have pre-installed node.js). The current version scaffolds yFiles for HTML 2.4 projects.
npm install -g yo
npm install -g generator-yfiles-app
or
yarn global add yo
yarn global add generator-yfiles-app
Then generate your new project:
yo yfiles-app
Simply answer a few questions and everything you need for your yFiles app is at the right place.
To scaffold a yFiles for HTML 1.3 project, please install v0.9.4 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@0.9.4
To scaffold a yFiles for HTML 1.4 project, please install v0.9.5 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@0.9.5
To scaffold a yFiles for HTML 2.0 project, please install v1.2.0 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@1.2.0
To scaffold a yFiles for HTML 2.1 project, please install v2.2.2 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@2.2.2
To scaffold a yFiles for HTML 2.2 project, please install v3.0.6 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@3.0.6
To scaffold a yFiles for HTML 2.3 project, please install v4.0.2 of the generator-yfiles-app, i.e:
npm install -g generator-yfiles-app@4.0.2
This generator scaffolds a yFiles for HTML application. It allows you to choose between different build tools and programming languages (ECMAScript 5, ECMAScript 6 (+Babel) and TypeScript).
Here is a rundown of the options you have:
You can choose between a pre-build starter kit with framework integration (Angular, React, Vue.js), or create a plain project where the generator prompts you for further options.
The name of the app and of the first class. Only valid JavaScript identifiers (consisting of [a-zA-Z$_]) are accepted.
The path to the root of a valid yFiles for HTML package (e.g. "path/to/yFilesPackage"). This package must contain the following folders:
The path to a yFiles for HTML license.json file. The generator tries to guess the location of the license file based on the yFiles for HTML package path. You may however want to specify a custom path here ("path/to/license.json").
Choose whether you want to consume the yFiles library as a local NPM dependency, as ES Modules or as UMD modules.
Decide whether you want to load the library via
Choose which yFiles modules your app will need. For an overview of these take a look at the Developer's Guide's module section. The generator will automatically optimize the set of modules to load.
Depending on your previous choices not all of the following choices for the source language will be available:
class
etc.Decide which package manager you want to use for managing packages and dependencies:
This option will not be available for those variants where no third party software is required for transpiling or loading the app.
MIT © yWorks GmbH
FAQs
A generator that scaffolds a yFiles for HTML powered application. Requires local yFiles package.
The npm package generator-yfiles-app receives a total of 4 weekly downloads. As such, generator-yfiles-app popularity was classified as not popular.
We found that generator-yfiles-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.