How to use the grumbler-scripts/config/webpack.config.getNextVersion function in grumbler-scripts

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 / 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,

grumbler-scripts

Javascript module template.

Apache-2.0
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis