grumbler-scripts
Javascript module template.
Last updated a month ago by bluepnume .
Apache 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grumbler-scripts 
SYNC missed versions from official npm registry.

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",
    "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"
}

ESLint

.eslintrc.js

Node

/* @flow */

module.exports = {
    'extends': './node_modules/grumbler-scripts/config/.eslintrc-node.js'
};

Browser

/* @flow */

module.exports = {
    'extends': './node_modules/grumbler-scripts/config/.eslintrc-browser.js'
};

Babel

.babelrc

Node

{
    "extends": "grumbler-scripts/config/.babelrc-node"
}

Browser

{
    "extends": "grumbler-scripts/config/.babelrc-browser"
}

Webpack

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

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()
    }));

Current Tags

  • 3.0.50                                ...           latest (a month ago)

148 Versions

  • 3.0.50                                ...           a month ago
  • 3.0.49                                ...           2 months ago
  • 3.0.48                                ...           3 months ago
  • 3.0.47                                ...           3 months ago
  • 3.0.46                                ...           4 months ago
  • 3.0.45                                ...           5 months ago
  • 3.0.44                                ...           5 months ago
  • 3.0.43                                ...           5 months ago
  • 3.0.42                                ...           5 months ago
  • 3.0.41                                ...           6 months ago
  • 3.0.40                                ...           7 months ago
  • 3.0.39                                ...           7 months ago
  • 3.0.38                                ...           7 months ago
  • 3.0.37                                ...           7 months ago
  • 3.0.36                                ...           7 months ago
  • 3.0.35                                ...           7 months ago
  • 3.0.34                                ...           7 months ago
  • 3.0.33                                ...           7 months ago
  • 3.0.32                                ...           7 months ago
  • 3.0.31                                ...           7 months ago
  • 3.0.30                                ...           7 months ago
  • 3.0.29                                ...           7 months ago
  • 3.0.28                                ...           8 months ago
  • 3.0.27                                ...           8 months ago
  • 3.0.26                                ...           8 months ago
  • 3.0.25                                ...           9 months ago
  • 3.0.24                                ...           9 months ago
  • 3.0.23                                ...           10 months ago
  • 3.0.22                                ...           10 months ago
  • 3.0.21                                ...           10 months ago
  • 2.0.77                                ...           10 months ago
  • 2.0.76                                ...           10 months ago
  • 3.0.20                                ...           10 months ago
  • 3.0.19                                ...           10 months ago
  • 3.0.18                                ...           10 months ago
  • 3.0.17                                ...           10 months ago
  • 3.0.16                                ...           10 months ago
  • 3.0.15                                ...           a year ago
  • 3.0.14                                ...           a year ago
  • 3.0.13                                ...           a year ago
  • 3.0.12                                ...           a year ago
  • 3.0.11                                ...           a year ago
  • 3.0.10                                ...           a year ago
  • 3.0.9                                ...           a year ago
  • 3.0.8                                ...           a year ago
  • 3.0.7                                ...           a year ago
  • 3.0.6                                ...           a year ago
  • 3.0.5                                ...           a year ago
  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.75                                ...           a year ago
  • 2.0.74                                ...           a year ago
  • 2.0.73                                ...           a year ago
  • 2.0.72                                ...           a year ago
  • 2.0.71                                ...           a year ago
  • 2.0.70                                ...           a year ago
  • 2.0.69                                ...           a year ago
  • 2.0.68                                ...           a year ago
  • 2.0.67                                ...           a year ago
  • 2.0.66                                ...           a year ago
  • 2.0.65                                ...           a year ago
  • 2.0.64                                ...           a year ago
  • 2.0.63                                ...           a year ago
  • 2.0.62                                ...           a year ago
  • 2.0.61                                ...           a year ago
  • 2.0.60                                ...           a year ago
  • 2.0.59                                ...           a year ago
  • 2.0.58                                ...           a year ago
  • 2.0.57                                ...           a year ago
  • 2.0.56                                ...           a year ago
  • 2.0.55                                ...           a year ago
  • 2.0.54                                ...           a year ago
  • 2.0.53                                ...           a year ago
  • 2.0.52                                ...           a year ago
  • 2.0.51                                ...           a year ago
  • 2.0.50                                ...           a year ago
  • 2.0.49                                ...           a year ago
  • 2.0.48                                ...           a year ago
  • 2.0.47                                ...           a year ago
  • 2.0.46                                ...           a year ago
  • 2.0.45                                ...           a year ago
  • 2.0.44                                ...           a year ago
  • 2.0.43                                ...           a year ago
  • 2.0.42                                ...           a year ago
  • 2.0.41                                ...           a year ago
  • 2.0.40                                ...           a year ago
  • 2.0.39                                ...           a year ago
  • 2.0.38                                ...           a year ago
  • 2.0.37                                ...           a year ago
  • 2.0.36                                ...           a year ago
  • 2.0.35                                ...           a year ago
  • 2.0.34                                ...           a year ago
  • 2.0.33                                ...           a year ago
  • 2.0.32                                ...           a year ago
  • 2.0.31                                ...           a year ago
  • 2.0.30                                ...           a year ago
  • 2.0.29                                ...           a year ago
  • 2.0.28                                ...           a year ago
  • 2.0.27                                ...           a year ago
  • 2.0.26                                ...           a year ago
  • 2.0.25                                ...           a year ago
  • 2.0.24                                ...           a year ago
  • 2.0.23                                ...           a year ago
  • 2.0.22                                ...           a year ago
  • 2.0.21                                ...           a year ago
  • 2.0.20                                ...           a year ago
  • 2.0.19                                ...           a year ago
  • 2.0.18                                ...           a year ago
  • 2.0.17                                ...           a year ago
  • 2.0.16                                ...           a year ago
  • 2.0.15                                ...           a year ago
  • 2.0.14                                ...           a year ago
  • 2.0.13                                ...           a year ago
  • 2.0.12                                ...           a year ago
  • 2.0.11                                ...           a year ago
  • 2.0.10                                ...           a year ago
  • 2.0.9                                ...           a year ago
  • 2.0.8                                ...           a year ago
  • 2.0.7                                ...           a year ago
  • 2.0.6                                ...           a year ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 150
This Month 153
Last Day 0
Last Week 3
Last Month 323
Dependencies (80)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |