8.1.8 • Published 2 days ago
@krakenjs/grumbler-scripts v8.1.8
Grumbler Scripts
npm install @krakenjs/grumbler-scripts
Shared scripts for grumbler based modules.
Package.json scripts
"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",
"clean": "rimraf dist coverage",
"reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install"
}
ESLint
.eslintrc.js
Node
/* @flow */
module.exports = {
'extends': './node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-node.js'
};
Browser
/* @flow */
module.exports = {
'extends': './node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-browser.js'
};
Babel
.babelrc
Node
{
"extends": "@krakenjs/grumbler-scripts/config/.babelrc-node"
}
Browser
{
"extends": "@krakenjs/grumbler-scripts/config/.babelrc-browser"
}
Webpack
webpack.config.js
/* @flow */
import { getWebpackConfig } from '@krakenjs/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
karma.conf.js
/* @flow */
import { getKarmaConfig } from '@krakenjs/grumbler-scripts/config/karma.conf';
import { getWebpackConfig } from '@krakenjs/grumbler-scripts/config/webpack.config';
export default (karma : Object) =>
karma.set(getKarmaConfig(karma, {
basePath: __dirname,
webpack: getWebpackConfig()
}));
8.1.8
2 days ago
8.1.7
2 days ago
8.1.6-next.16
3 months ago
8.1.6-next.14
3 months ago
8.1.6-next.15
3 months ago
8.1.6-next.12
3 months ago
8.1.6-next.9
3 months ago
8.1.6-next.5
3 months ago
8.1.6-next.6
3 months ago
8.1.6-next.7
3 months ago
8.1.6-next.8
3 months ago
8.1.6-next.1
3 months ago
8.1.6-next.2
3 months ago
8.1.6-next.3
3 months ago
8.1.6-next.4
3 months ago
8.1.6-next.10
3 months ago
8.1.6-next.11
3 months ago
8.1.6-next.0
11 months ago
8.1.5
1 year ago
8.1.4
1 year ago
8.0.5
1 year ago
8.1.3
1 year ago
8.0.4
1 year ago
8.0.7
1 year ago
8.0.6
1 year ago
8.1.0
1 year ago
8.0.1
2 years ago
8.1.2
1 year ago
8.0.4-next.0
1 year ago
8.0.3
1 year ago
8.1.1
1 year ago
8.0.2
2 years ago
8.0.0-next.6
2 years ago
8.0.0-next.5
2 years ago
8.0.0-next.4
2 years ago
8.0.0
2 years ago
7.0.0-next.1
2 years ago
7.1.0
2 years ago
8.0.0-next.3
2 years ago
8.0.0-next.2
2 years ago
8.0.0-next.1
2 years ago
8.0.0-next.0
2 years ago
7.0.4
2 years ago
7.0.3
2 years ago
7.0.2
2 years ago
7.0.1-alpha.1
2 years ago
7.0.0-alpha.2
2 years ago
7.0.1
2 years ago
7.0.0-alpha.1
2 years ago
6.0.2-alpha.1
2 years ago
7.0.0
2 years ago
6.0.2
2 years ago
6.0.1
2 years ago
4.0.0-beta.1
2 years ago