Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
grumbler-scripts
Advanced tools
Shared scripts for grumbler based modules.
"scripts": {
"lint": "eslint src/ test/ *.js",
"flow-typed": "flow-typed install",
"flow": "flow",
"flow:build": "flow gen-flow-files ./src/index.js --out-dir ./dist/module",
"karma": "cross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start",
"babel": "babel src/ --out-dir dist/module",
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress",
"test": "npm run lint && npm run flow-typed && npm run flow && npm run karma",
"build": "npm run test && npm run babel && npm run webpack && npm run flow:build",
"release": "npm run release:patch",
"release:patch": "./node_modules/grumbler-scripts/publish.sh patch",
"release:minor": "./node_modules/grumbler-scripts/publish.sh minor",
"release:major": "./node_modules/grumbler-scripts/publish.sh major",
"clean": "rimraf dist coverage",
"reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install"
}
.eslintrc.js
/* @flow */
module.exports = {
'extends': './node_modules/grumbler-scripts/config/.eslintrc-node.js'
};
/* @flow */
module.exports = {
'extends': './node_modules/grumbler-scripts/config/.eslintrc-browser.js'
};
.babelrc
{
"extends": "grumbler-scripts/config/.babelrc-node"
}
{
"extends": "grumbler-scripts/config/.babelrc-browser"
}
webpack.config.js
/* @flow */
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';
const FILE_NAME = 'mylibrary';
const MODULE_NAME = 'mylibrary';
export let WEBPACK_CONFIG = getWebpackConfig({
filename: `${ FILE_NAME }.min.js`,
modulename: MODULE_NAME,
minify: true
});
export default [ WEBPACK_CONFIG ];
karma.conf.js
/* @flow */
import { getKarmaConfig } from 'grumbler-scripts/config/karma.conf';
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';
export default (karma : Object) =>
karma.set(getKarmaConfig(karma, {
basePath: __dirname,
webpack: getWebpackConfig()
}));
FAQs
Javascript module template.
We found that grumbler-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.