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

lfr-amd-loader

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lfr-amd-loader - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

gulpfile.js

@@ -25,3 +25,3 @@ 'use strict';

gulp.task('build-config', function(callback) {
exec('node config-generator.js -b src/config/config-base.js -o src/config/config.js dist/demo/modules', function (err, stdout, stderr) {
exec('node node_modules/lfr-module-config-generator/bin/index.js -b src/config/config-base.js -o src/config/config.js dist/demo/modules', function (err, stdout, stderr) {
callback(err);

@@ -28,0 +28,0 @@ });

{
"name": "lfr-amd-loader",
"version": "1.1.1",
"version": "1.1.2",
"description": "AMD Loader with support for combo URL and conditional loading",

@@ -19,13 +19,2 @@ "main": "main.js",

"homepage": "https://github.com/ipeychev/lfr-amd-loader",
"dependencies": {
"bluebird": "^2.9.24",
"commander": "^2.8.0",
"esprima-fb": "^15001.1.0-dev-harmony-fb",
"js-beautify": "^1.5.5",
"jsstana": "^0.1.5",
"minimatch": "^2.0.4",
"recast": "^0.10.12",
"update-notifier": "^0.3.2",
"walk": "^2.3.9"
},
"devDependencies": {

@@ -48,2 +37,3 @@ "combohandler": "^0.4.0",

"jshint-stylish": "^1.0.1",
"lfr-module-config-generator": "^1.0.1",
"merge-stream": "^0.1.7",

@@ -50,0 +40,0 @@ "run-sequence": "^1.0.2",

@@ -145,27 +145,8 @@ AMD Module Loader

In order to generate the configuration, there is a small NodeJS program, called `config-generator`. You may use it to generate the configuration file automatically. Here are the options it supports:
In order to generate the configuration, there is a separate project, called [Liferay AMD modules config generator](https://www.npmjs.com/package/lfr-module-config-generator). You may use it to generate the configuration file automatically.
```bash
Usage: config-generator [options] <file ...>
Here is an example usage:
Options:
-h, --help output usage information
-b, --base [file name] Already existing template to be used as base for the parsed configuration
-c, --config [config object] The configuration object in which the modules should be added
-e, --extension [module extension] Use the provided string as an extension instead to get it automatically from the file name. Default: ""
-f, --format [module format] Regex and value which will be applied to the file name when generating the module name. Example: "/_/g,-". Default: ""
-i, --ignorePath [ignore path] Do not create module path and fullPath properties.
-k, --keepExtension [keep file extension] If true, will keep the file extension when it generates module name. Default: false
-l, --lowerCase [lower case] Convert file name to lower case before to use it as module name. Default: false
-o, --output [file name] Output file to store the generated configuration
-p, --filePattern [file pattern] The pattern to be used in order to find files for processing. Default: "**/*.js"
-r, --moduleRoot [module root] The folder which will be used as starting point from which the module name should be generated. Default: current working directory
-V, --version output the version number
```
Here is an example of its usage:
```bash
$ node config-generator.js -b src/config/config-base.js -o src/config/config.js src/modules
$ lfr-cfgen -b src/config/config-base.js -o src/config/config.js src/modules
```

@@ -172,0 +153,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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