Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-systemjs-builder

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-systemjs-builder

grunt task for building project based on systemjs

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-23.33%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-systemjs-builder

Getting started

To Install

npm install --save-dev grunt-systemjs-builder

To register for grunt:

grunt.loadNpmTasks("grunt-systemjs-builder");

To run with grunt use the following command:

grunt systemjs

This is a MultiTask therefore it can run using different configuration using targets in the grunt configuration. see grunt docs for more info

Options

In essence, this grunt task simply passes along configuration to the SystemJS Builder. You should familiarize yourself with its configuration documentation.

baseURL: string

"The baseURL provides a special mechanism for loading modules relative to a standard reference URL."

[systemjs docs](The baseURL provides a special mechanism for loading modules relative to a standard reference URL.)

if baseURL is provided through the configuration, it will be the one used and any baseURL configuration from a configuration file will be ignored as systemjs only allows to configure baseURL once.

configFile: String

path to an external configuration file (one with System.config calls).

sfx: Boolean

default: false

Create a self-executing bundle

minify: Boolean

default: false

shortcut for passing the build object with a minify property

sourceMaps: Boolean

default: true

shortcut for passing the build object with a sourceMapsproperty

builder: Object

The configuration that is allowed when creating the builder instance. Basically systemjs configuration. see builder documentation.

### build: Object

the configuration that is allowed when running build or buildSFX see builder documentation.

Example


systemjs: {
            options: {
                sfx: true,
                baseURL: "./target/widget",
                configFile: targetWidget + "/config.js"
                //minify: true
            },
            dist: {
                files: [{
                    "src": targetWidget + "/src/init.js",
                    "dest": "./target/bundles/widget.sfx.js" //add version to file
                }]
            }
        }


Keywords

FAQs

Package last updated on 14 Jul 2015

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