Making components first-class for node.js with symlinks
npm install require-root-symlink
-
In
index.js
on top add next code:require('require-root-symlink')(__dirname);
-
When you will run your nodejs application
require-root-symlink
module will check and create symlink:node_modules/_
to.
-
Now you can use
_
inrequire
string:var Config = require('/Config.js'); var App = require('/engine/App.js'); ..............................
- Refactoring
- Remove todos, console.log, etc.
- first release