Skip to content

File hierarchy based global package module OOP system in node.js

License

Notifications You must be signed in to change notification settings

HmHmmHm/deploy-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

File hierarchy based global package module OOP system in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published