All Projects → buddyspike → gulp-jspm-build

buddyspike / gulp-jspm-build

Licence: other
Gulp plugin for jspm.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to gulp-jspm-build

generator-sf
Yeoman generator that scaffolds out a Symfony PHP app including Browsersync, various CSS preprocessors, jspm, webpack, browserify and Service Worker
Stars: ✭ 14 (-36.36%)
Mutual labels:  gulp, jspm
sass-starter-pack
Sass starter files using Gulp v4.0.0 🔥
Stars: ✭ 34 (+54.55%)
Mutual labels:  gulp
generator-fountain-react
Yeoman 'fountain' generator to start a webapp with React
Stars: ✭ 36 (+63.64%)
Mutual labels:  gulp
scss-gulp-boilerplate
Very Basic Sass(SCSS) based boilerplate.
Stars: ✭ 16 (-27.27%)
Mutual labels:  gulp
startover
Startover is a boilerplate for developing static websites. With Startover you don't have to start over!
Stars: ✭ 15 (-31.82%)
Mutual labels:  gulp
frontenso-11ty-starter
Production-ready 11ty+Gulp+Webpack Starter that features Nunjucks, SASS, TailwindCSS (with JIT complier), and ESNext.
Stars: ✭ 24 (+9.09%)
Mutual labels:  gulp
adfab-gulp-boilerplate
A boilerplate including Gulp, Less/SASS, BrowserSync.
Stars: ✭ 17 (-22.73%)
Mutual labels:  gulp
cookiecutter-django-gulp
A Cookiecutter template for integrating Gulp in Django projects.
Stars: ✭ 24 (+9.09%)
Mutual labels:  gulp
generator-craftskeleton
Starterkit for Craft CMS 2.x (Multi-Environment Configs with HeartyConfig, Gulp, and Bower for Dependencie-Management)
Stars: ✭ 14 (-36.36%)
Mutual labels:  gulp
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+127.27%)
Mutual labels:  gulp
monsieurpress
A minimal & lightweight WordPress starter theme using gulp
Stars: ✭ 39 (+77.27%)
Mutual labels:  gulp
yak
Yak - REDAXO mit YDeploy, Developer, Gulp, Browserify, PostCSS und Yimmelyam
Stars: ✭ 21 (-4.55%)
Mutual labels:  gulp
microsoft-figma
Produce sass/less variables files from figma
Stars: ✭ 18 (-18.18%)
Mutual labels:  gulp
branch
Branch Starter Theme - A WordPress starter theme based on Timber library and Bootstrap
Stars: ✭ 87 (+295.45%)
Mutual labels:  gulp
gulp-sitemap
Generate a search engine friendly sitemap.xml using a Gulp stream
Stars: ✭ 60 (+172.73%)
Mutual labels:  gulp
gulp-sort
Sort files in stream by path or any custom sort comparator
Stars: ✭ 22 (+0%)
Mutual labels:  gulp
Shangchao-Website
(官网案例) - 上朝科技 - Vue 2.0 - SPA项目
Stars: ✭ 22 (+0%)
Mutual labels:  gulp
systemjs-riot
jspm/systemjs plugin to load RiotJS tags and inline them in the bundle
Stars: ✭ 18 (-18.18%)
Mutual labels:  jspm
gulp-php-minify
Gulp plug-in minifying PHP source code by removing comments and whitespace.
Stars: ✭ 24 (+9.09%)
Mutual labels:  gulp
Frontend-StarterKit
Frontend StarterKit - [Gulp 4, Pug, SCSS, ES6+]
Stars: ✭ 13 (-40.91%)
Mutual labels:  gulp

gulp-jspm-build

Gulp task to run jspm build and produce output as a Vinyl stream.

Build Status

Install

npm install gulp-jspm-build

Usage

var jspm = require('gulp-jspm-build');

gulp.task('jspm', function(){
    jspm({
        bundles: [
            { src: 'app', dst: 'app.js' }
        ]
    })
    .pipe(gulp.dest('.dist'));
});

Options

bundles

An array of bundles to create. Each object in the array specifies the arguments to systemjs-builder in following format.

src

string - Modules to bundle. You can use jspm arithmetic expressions here.

'app'
'core + navigation + app'
'app - react'

dst

string - Bundled file name.

options

object - Arguments to systemjs-builder.

{ minify: true, mangle: true }

bundleOptions

Same as options for individual bundle but specifies common options for all bundles.

config

Optional, the jspm configuration file to use.

configOverride

Override sections of config.js. This could be useful if you want to change things like baseURL.

configOverride: {
    baseURL: '/foo'
}

baseUrl

The jspm base URL, as normally specified in your package.json under config.jspm.directories.baseURL. Defaults to '.'.

bundleSfx

Create a single file executable, including all necessary dependencies and systemjs. Defaults to false.

See the jspm documentation for more information.

Example

var jspm = require('gulp-jspm-build');

gulp.task('jspm', function(){
    jspm({        
        bundleOptions: {
            minify: true,
            mangle: true
        }
        bundles: [
            { src: 'app', dst: 'app.js' }
            {
                src: 'react + react-router',
                dst: 'lib.js',
                options: { mangle: false }
            }
        ],
        configOverride: {
            baseURL: '/foo'
        }
    })
    .pipe(gulp.dest('.dist'));
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].