npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-morphis

v0.2.0

Published

Yeoman Generator for Morphis Technologies

Downloads

16

Readme

generator-morphis

Yeoman generator for the creation and preparation of Morphis projects. This tool's aim is to facilitate the process of starting a new project, through the automation of the creation and configuration of a desired project.

Getting Started

Dependencies

  • Git: installed and associated to your PATH environment variable
  • Node.js: installed and associated to your PATH environment variable
  • Yeoman: to install the yeoman client, run 'npm install -g yo'

Installation

After installing Node.js, run 'npm install -g generator-morphis' in order to install the generator.

Usage

In order to run the generator and create a new project, type the command 'yo morphis'. From there, you'll be prompted to select one of the available projects, along with the needed configurations depending on the project type.

Available command arguments are:

  • Project Type (dotnet, java, automated-tests, frames-plugin, frames-widget or frames-test)
    • To run the generator with a selected project immediately, type the command 'yo morphis [project-type]', e.g: yo morphis automated-tests

To debug the generator, run the command 'node --inspect <path to yo cli.js> morphis' (e.g: 'node --inspect C:\Tools\NodeJS\8.11.3\node_modules\yo\lib\cli.js morphis'), and then attach your IDE debugger to the node process.

Installing and running the projects

After installing a project, the following settings must be configured in order to run it:

  • .Net Web Application:

    • Make sure that the Morphis Nuget Feed is set as a Package Source in the Nuget Package Manager, in Visual Studio.
  • Java Web Application:

    • Import the project folder into Eclipse as an Existing Maven Project (select all of the involved project pom.xml files).
    • To generate the required sources, right-click the [projectname]-blueprint project, select Run As >> Maven Build, specify the goals as clean install -U, and click on Run.
    • To run the project, create a new Server and add the [projectname].service and [projectname].workspace] artifacts as resources, start the Server, and access the localhost:8080/demo/.
  • Ellucian Test Suite (Automated Tests):

    • No extra configurations needed; run 'npm start' in the newly-created project folder.

Generating Frames Tests and Add-Ons

The following conditions are required in order to generate Frames Tests or Add-Ons:

  • Frames Test Creation:

    • For the creation of Frames Tests, make sure you run the yo morphis command inside a Frames Automator directory, such as an Ellucian Test Suite project (e.g: a project generated by the yo morphis automated-tests command).
  • Frames Plugin Creation:

    • In order to create a Frames Plugin, make sure you run the yo morphis command inside a Frames Workspace directory (e.g: /src/main/webapp/app/ folder for Java projects, or /WebApp/app/ folder for .Net projects).
  • Frames Widget Creation:

    • In order to create a Frames Widget, make sure you run the yo morphis command inside a Frames Workspace directory (e.g: /src/main/webapp/app/ folder for Java projects, or /WebApp/app/ folder for .Net projects).
    • For more information about how to add functionality to your widget, check the JQuery Documentation on Widgets.

Functionality

The current available projects are as follows:

  • .Net Web Application: Template for .Net Web Applications
  • Java Web Application: Template for Java Web Applications
  • Ellucian Test Suite: Creation and automation of tests for the Ellucian Application
  • Frames Test Creation: Creation of Frames Automation Tests, given a Frames Automator directory
  • Frames Plugin Creation: Creation of Frames Plugins
  • Frames Widget Creation: Creation of Frames Widgets

The current generator procedure for each project is as follows:

  • .Net Web Application:

    • Set the desired namespace for the application (client prompt)
    • Set dependency versions (Foundations, Frames) (client prompt)
    • Fetch template repository
    • Apply the desired changes
  • Java Web Application:

    • Set the desired groupId and artifactId for the maven project (client prompt)
    • Set dependency versions (Foundations, Frames Compiler, Frames Runtime) (client prompt)
    • Fetch template repository
    • Apply the desired changes
  • Ellucian Test Suite:

    • Set the desired directory name (client prompt)
    • Fetch automated tests repository
    • Install the required dependencies
  • Frames Test Creation:

    • Choose the type of test to create (client prompt)
    • Set the desired filename for the test and the task to be tested (client prompt)
    • Choose the target directory for the test (client prompt)
    • Create the test with the applied settings
  • Frames Plugin Creation:

    • Set the desired plugin name (client prompt)
    • Choose the target directory for the plugin (client prompt)
    • Create the plugin folders and files ([plugin-name].js, widget.json)
    • Update the package.json file with the declaration of the new plugin
  • Frames Widget Creation:

    • Set the desired widget name (client prompt)
    • Choose the target directory for the widget (client prompt)
    • Create the widget folders and files ([widget-name].js, widget.json, [widget-name].scss, [widget-name].html)
    • Update the package.json file with the declaration of the new widget
    • Update the SASS configuration file with the declaration of the new widget's .scss file

License

[TODO: add license]