Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* @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 ];
/* @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
}
/* @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
}
}
});
/* @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,
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
}
}
...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
}
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,
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 ];
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 ];
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
}