🔥 Want to strengthen your core JavaScript skills and master ES6? I would personally recommend this awesome ES6 course by Wes Bos.Usually you would have to load each task one by one, which is unnecessarily cumbersome.
dependencies glob grunt load match matchdep pattern require tasksProxies nodejs's require in order to make overriding dependencies during testing easy while staying totally unobtrusive. If you want to stub dependencies for your client side modules, try proxyquireify, a proxyquire for browserify v2 or proxyquire-universal to test in both Node and the browser.
require dependency injection di inject swap test mock stubIf you've tried working with mocks in Node.js, you've no doubt discovered that it's not so easy to get your mocks hooked up in the face of Node's module loading system. When your source-under-test pulls in its dependencies through require, you want your mocks provided, instead of the original module, to enable true unit testing of your code. This is exactly the problem Mockery is designed to solve. Mockery gives you a simple and easy to use API with which you can hook in your mocks without having to get your hands dirty with the require cache or other Node implementation details.
mock stub require module cache unit test unittest testing tddPlease note: The current version of rewire is only compatible with CommonJS modules. See Limitations. rewire acts exactly like require. With just one difference: Your module will now export a special setter and getter for private variables.
mock testing unit-testing monkey-patching dependency injection shim module unit test leak inspect fake requireMadge is a developer tool for generating a visual graph of your module dependencies, finding circular dependencies, and give you other useful info. Joel Kemp's awesome dependency-tree is used for extracting the dependency tree. Read the changelog for latest changes.
graphviz graph amd commonjs es6 sass stylus less dependencies madge es7 requirejs require module circular dependencyLoads gulp plugins from package dependencies and attaches them to an object of your choice. You can then use the plugins just like you would if you'd manually required them, but referring to them as plugins.name(), rather than just name().
gulpfriendly gulp require load pluginsA Babel plugin to add a new resolver for your modules when compiling your code using Babel. This plugin allows you to add new "root" directories that contain your modules. It also allows you to setup a custom alias for directories, specific files, or even other npm modules. This plugin can simplify the require/import paths in your project. For example, instead of using complex relative paths like ../../../../utils/my-utils, you can write utils/my-utils. It will allow you to work faster since you won't need to calculate how many levels of directory you have to go up before accessing the file.
babel-plugin resolver babel module alias rewrite resolve rename mapping require importHeadJS: Responsive Design, Feature Detections & Asset Loading. The only script in your <HEAD>
loader require polyfill html5 css3 feature responsiveUse a node-style require() to organize your browser code and load modules installed by npm. browserify will recursively analyze all the require() calls in your app in order to build a bundle you can serve up to the browser in a single <script> tag.
bundler browser modules commonjs module-bundler require commonj-esque bundle npmCode generated by the reify compiler relies on a simple runtime API that can be explained through a series of examples. While you do not have to write this API by hand, it is designed to be easily human readable and writable, in part because that makes it easier to explain. I will explain the Module.prototype.watch method first, then the Module.prototype.export method after that. Note that this Module is the constructor of the CommonJS module object, and the import and export methods are custom additions to Module.prototype.
ecmascript modules import export commonjs require exports nodeElegant dependency injection for Node.js.
require dependency dependencies injection di iocIn-browser graphs representing the links between your Node.js code and its dependencies.This will traverse app.js's dependencies and dump the necessary static HTML/CSS/JS files to the ./colony directory, this page being ./colony/index.html. Then it's just a matter of serving it up using something like serve, NGINX or plain old Apache.
code visualisation require recursive structure codebase visualizationCreate browser programs with ES2015's latest features and use modules from NPM directly in your browser.Under the hood it's pure client-side application which is hosted on GitHub pages and is built upon React.js.
esnext es2015 babel jsbin bin requirebin node-browserify require browser npmVisualize your CommonJS, AMD, or ES6 module dependencies in a force directed graph report - powered by D3.js. Let me introduce dependo - A small visualization tool that draws an force directed graph of JavaScript dependencies pulled from a codebase of CommonJS, AMD, or ES6. Behind the scene I’m using a wonderful library named node-madge, to extract the dependencies and combined with the power of D3.js I draw a beautiful zoomable directed graph.
amd requirejs require graph commonjs module circular dependency dependencies visualize d3 es6Note: It recommends a use of the "engines" field of package.json. The "engines" field is used by node/no-unsupported-features/* rules. eslint-plugin-node follows semantic versioning and ESLint's Semantic Versioning Policy.
ecmascript eslint eslint-plugin node nodejs static-code-analysis npm npm-module npm-package coding-style eslintplugin shebang file path import requireThe require hook compiles CSS Modules in runtime. This is similar to Babel's babel/register. See the example: demo. A CSS Module is a CSS file in which all class names and animation names are scoped locally by default. Learn more in the article CSS Modules - Welcome to the Future by Glen Maddern.
css-modules require hookBundle CommonJS/Node.js modules for web browsers. Webmake allows you to organize JavaScript code for the browser the same way as you do for Node.js.
browser browserify build builder bundle cjs commonjs generator deploy make modules package packager require requirejs webGive some source body src, return an array of all the require() calls with string arguments. The options parameter opts is passed along to detective.find().
modules commonjs ast dependencies analyze require source
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.