🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

springbokjs-base

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

springbokjs-base

Springbok Base, Gulp tasks

latest
Source
npmnpm
Version
0.32.1
Version published
Maintainers
1
Created
Source

springbokjs-base NPM version

A collection of gulp tasks

Installation

npm install --save-dev gulp springbokjs-base

Then create the file gulpfile.js:

var gulp = require('gulp');
var pkg = require('./package.json');

require('springbokjs-base/gulptask.js')(pkg, gulp, {
    src: {
        css: [
            // here put css files from bower or node_modules or other assets,
            // included before the main less file in src/browser/less/main.less.
        ],
        js: [
            // here put js files from bower or node_modules or other assets,
            // included before files from src/browser/js/ folder.
            'node_modules/springbokjs-shim/init.js',
            //'node_modules/ejs/ejs.min.js'
        ]
    },
    jshintBrowserOptions: {
        "predef": [ "S" ]
    },
    jshintServerOptions: {
        "predef": [ "S" ]
    },
});

Configuration

You can configure with the options below, the value displayed is the default:

{
    paths: {
        scripts: "**/*.js",
        'public': 'public/',
        config: 'src/config/',
        stylesIncludePath: ['bower_components/'],
        common: {
            src: false,
            dest: 'lib/common/', // destination for server-side.
        },

        // can be false, a string (the src option)
        server: 'src/server/',

        // or an object
        server: {
            src: 'src/server/',
            common: 'src/common/',
            dist: 'lib/server/',
            startfile: 'server.js',
            templatesEJS: '**/*.ejs',
            templatesJSX: '**/*.jsx',
            configdest: 'lib/'
        }


        browser: {
            src: 'src/browser/',
            dist: 'public/dist/',
            js: 'js/',
            mainscripts: pkg.name + ".js",
            styles: 'style/',
            mainstyle: 'main.less',
            templatesEJS: 'templates/',
            images: "images",
        }
    },

Keywords

springbokjs

FAQs

Package last updated on 28 Mar 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