lewisdawson / slinker Goto Github PK
View Code? Open in Web Editor NEWA simple module used to symlink node and Browserify module dependencies together.
License: MIT License
A simple module used to symlink node and Browserify module dependencies together.
License: MIT License
Currently, you can only define a submodule directory that exists within the modulesBasePath
directory. You should be able to define submodule directory that's N levels deep. The submodule link should be based on the deepest directory name. For example:
slinker.link({
modules: ['my/submodule/path'],
modulesBasePath: __dirname,
symlinkPrefix: '@',
nodeModulesPath: path.join(__dirname, 'node_modules')
});
Should result in a symlink in the defined nodeModulesPath
that's named @path
.
Before creating each submodule symlink, the location that the symlink is pointing to should be validated if the user sets the terminateOnInvalidPath
option to true
. If it's invalid, Slinker should invoke onError
and exit.
Slinker should allow defined submodules to be aliased to any valid string. For example:
slinker.link({
modules: [{ module: 'models', alias: 'myModelsAlias' }],
modulesBasePath: __dirname,
symlinkPrefix: '@',
nodeModulesPath: path.join(__dirname, 'node_modules')
});
Should result in a symlink in the nodeModulesPath
named @myModelsAlias
.
Slinker should have the ability to npm link
a defined set of submodules. It should also be able to npm unlink
the defined set of submodules.
Rather than having to create a .js file for each project, there should be a default slinker module included in the build. The dev can than reference the default module from the install and pass in the modules (and other parameters) that they want to customize.
Isn't That What linklocal
Does?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.