deploy-class

1.0.7 • Public • Published

deploy-class

File hierarchy based global package module system in node.js

Introducion

deploy-class is helps to use the Object-Oriented structure in node js.
supported structure is based package system like a Java.
Also, without using the import or export and module.exports.
Simply helps implement a modular structure based on the class.

How to use deploy-class?

  • Create node project using npm init.
  • npm install deploy-class
  • Create sources folder in project folder using mkdir sources command.
  • Go to your js file, and type require('deploy-class').automatic(package root name);
  • Create js file which you want to use in sources folder.
  • Just define the class using file name. It will be saved global variable structure.

Tern JS (Atom, C9.IO) Intellisense Support!

  • Now deploy-class can be support tern.js intellisense!
  • Download(or copy) the .tern-project file in your project folder.
  • Download(or copy) the collect.js in your project folder, and edit let prefix = "projectprefixname"; to your project prefix, and type node collect, So simply maded header.js in the project folder.
  • If you want to automatic collect, use the command node collect repeat.

Showcase

Example

https://github.com/HmHmmHm/deploy-class/blob/master/example/java-like/app.js

https://github.com/HmHmmHm/deploy-class/blob/master/example/vending-machine/app.js

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i deploy-class

      Weekly Downloads

      3

      Version

      1.0.7

      License

      MIT

      Last publish

      Collaborators

      • hmhmmhm