File hierarchy based global package module system in node.js
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.
- 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.
- 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 typenode collect
, So simply maded header.js in the project folder. - If you want to automatic collect, use the command
node collect repeat
.
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