New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amdlc

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amdlc

AMD Library Compiler

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
69
increased by213.64%
Maintainers
1
Weekly downloads
 
Created
Source

amdlc

This is a Node.js AMD Library Compiler. It enables you to write code in an the AMD style and compile the modules into a standalone library file with all public modules exposed into the global namespace this is the opposite to application specific AMD module loaders like RequireJS.

When compiling AMD projects using this compileer you get three files:

  • Inline minified file using Uglify-js
  • Inline source file
  • Development file that loads the modules synchronous (debug)

Installation

npm install -g amdlc

Command line usage

Usage: amdlc [options] <input file/glob pattern> <output file>

Options:
  --quiet              no output
  --include-root-ns    include root namespace from path resolve
  --basedir            basedir to look for modules for example src/js

Example with single file entry point

amdlc --basedir example/src example/src/App.js example/out/App.js

Example with glob pattern

amdlc --basedir example/src example/src/**/*.js example/out/App.js

Example of usage from Node.js

var amdlc = require("amdlc");

amdlc.compile({
    from: "src/**/*.js",
	baseDir: "src",
	compress: true,
	expose: "public",
	excludeRootNamespaceFromPath: true,
	verbose: true,
	outputSource: "out/lib.js",
	outputMinified: "out/lib.min.js",
	outputDev: "out/lib.dev.js"
});

Todo

  • Implement anonymous modules.
  • Implement support for relative modules like ./MyModule

Keywords

FAQs

Package last updated on 07 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc