How to use grumbler-scripts - 10 common examples

To help you get started, we’ve selected a few grumbler-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krakenjs / beaver-logger / webpack.config.js View on Github external
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */

import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';

const FILE_NAME = 'beaver-logger';
const MODULE_NAME = 'beaver';

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   FILE_NAME,
    modulename: MODULE_NAME,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   FILE_NAME,
    modulename: MODULE_NAME,
    minify:     true
});

export const WEBPACK_CONFIG_TEST = getWebpackConfig({
    modulename: MODULE_NAME,
    test:       true
});

export default [ WEBPACK_CONFIG, WEBPACK_CONFIG_MIN ];
github krakenjs / jsx-pragmatic / webpack.config.js View on Github external
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */

import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';

const FILE_NAME = 'jsx-pragmatic';
const MODULE_NAME = 'pragmatic';

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   `${ FILE_NAME }.js`,
    modulename: MODULE_NAME,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.min.js`,
    modulename: MODULE_NAME,
    minify:     true,
    vars:       {
        __MIN__: true
    }
});

export const WEBPACK_CONFIG_TEST = getWebpackConfig({
    modulename: MODULE_NAME,
    options:    {
        devtool: 'inline-source-map'
    },
    vars: {
        __TEST__: true
    }
github krakenjs / post-robot / webpack.config.js View on Github external
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off, import/default: off */

import { getWebpackConfig, getNextVersion } from 'grumbler-scripts/config/webpack.config';
import { argv } from 'yargs';

import pkg from './package.json';
import globals from './globals';

export const FILE_NAME = 'post-robot';
export const MODULE_NAME = 'postRobot';

const postRobotGlobals = {
    ...globals.__POST_ROBOT__,
    __GLOBAL_KEY__:  `__post_robot_${ getNextVersion(pkg, argv.level) }__`
};

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   `${ FILE_NAME }.js`,
    modulename: MODULE_NAME,
    minify:     false,
    vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...postRobotGlobals,
            __IE_POPUP_SUPPORT__:       false,
            __GLOBAL_MESSAGE_SUPPORT__: false
        }
    }
});
github krakenjs / zoid / webpack.config.js View on Github external
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */

import { getWebpackConfig, getNextVersion } from 'grumbler-scripts/config/webpack.config';
import { argv } from 'yargs';

import pkg from './package.json';
import globals from './globals';

const zoidGlobals = {
    ...globals.__ZOID__,
    __GLOBAL_KEY__:  `__zoid_${ getNextVersion(pkg, argv.level) }__`
};


export const FILE_NAME = 'zoid';
export const MODULE_NAME = 'zoid';

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   `${ FILE_NAME }.js`,
    modulename: MODULE_NAME,
    vars:       globals,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.min.js`,
    modulename: MODULE_NAME,
github krakenjs / zoid / webpack.config.js View on Github external
vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__: false
        }
    }
});

export const WEBPACK_CONFIG_FRAME_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.frame.min.js`,
    modulename: MODULE_NAME,
    minify:     true,
    vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__: false
        }
    }
github krakenjs / zoid / webpack.config.js View on Github external
...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__:     false,
            __FRAMEWORK_SUPPORT__: true
        }
    }
});

export const WEBPACK_CONFIG_FRAMEWORK_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.frameworks.min.js`,
    modulename: MODULE_NAME,
    minify:     true,
    vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__:     false,
            __FRAMEWORK_SUPPORT__: true
        }
github krakenjs / zoid / webpack.config.js View on Github external
import { getWebpackConfig, getNextVersion } from 'grumbler-scripts/config/webpack.config';
import { argv } from 'yargs';

import pkg from './package.json';
import globals from './globals';

const zoidGlobals = {
    ...globals.__ZOID__,
    __GLOBAL_KEY__:  `__zoid_${ getNextVersion(pkg, argv.level) }__`
};


export const FILE_NAME = 'zoid';
export const MODULE_NAME = 'zoid';

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   `${ FILE_NAME }.js`,
    modulename: MODULE_NAME,
    vars:       globals,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.min.js`,
    modulename: MODULE_NAME,
    minify:     true,
    vars:       globals
});

export const WEBPACK_CONFIG_FRAME = getWebpackConfig({
    filename:   `${ FILE_NAME }.frame.js`,
    modulename: MODULE_NAME,
github krakenjs / beaver-logger / webpack.config.js View on Github external
const FILE_NAME = 'beaver-logger';
const MODULE_NAME = 'beaver';

export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   FILE_NAME,
    modulename: MODULE_NAME,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   FILE_NAME,
    modulename: MODULE_NAME,
    minify:     true
});

export const WEBPACK_CONFIG_TEST = getWebpackConfig({
    modulename: MODULE_NAME,
    test:       true
});

export default [ WEBPACK_CONFIG, WEBPACK_CONFIG_MIN ];
github krakenjs / jsx-pragmatic / webpack.config.js View on Github external
export const WEBPACK_CONFIG = getWebpackConfig({
    filename:   `${ FILE_NAME }.js`,
    modulename: MODULE_NAME,
    minify:     false
});

export const WEBPACK_CONFIG_MIN = getWebpackConfig({
    filename:   `${ FILE_NAME }.min.js`,
    modulename: MODULE_NAME,
    minify:     true,
    vars:       {
        __MIN__: true
    }
});

export const WEBPACK_CONFIG_TEST = getWebpackConfig({
    modulename: MODULE_NAME,
    options:    {
        devtool: 'inline-source-map'
    },
    vars: {
        __TEST__: true
    }
});

export default [ WEBPACK_CONFIG, WEBPACK_CONFIG_MIN ];
github krakenjs / zoid / webpack.config.js View on Github external
vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__: false
        }
    }
});

export const WEBPACK_CONFIG_FRAMEWORK = getWebpackConfig({
    filename:   `${ FILE_NAME }.frameworks.js`,
    modulename: MODULE_NAME,
    minify:     false,
    vars:       {
        ...globals,

        __POST_ROBOT__: {
            ...globals.__POST_ROBOT__,
            __IE_POPUP_SUPPORT__: false
        },

        __ZOID__: {
            ...zoidGlobals,
            __POPUP_SUPPORT__:     false,
            __FRAMEWORK_SUPPORT__: true
        }

grumbler-scripts

Javascript module template.

Apache-2.0
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis