Registry / devops / metapak-motionbank

metapak-motionbank

JSON →
library2.0.1jsnpmunverified

Skeleton generator plugin for Metapak, adding Motion Bank presets for JS module development. Version 2.0.1 is current. It extends Metapak with configs for ESLint, Babel, JSDoc, Codacy, CodeClimate, Tidelift, Travis, as well as mutually exclusive presets for Feathers, Quasar, and Vue.js apps. Must be paired with metapak@1.0.3. Differentiators: opinionated defaults for Motion Bank projects; automates boilerplate generation; integrates multiple CI and documentation tools. No recent updates since 2021.

npm install metapak-motionbank
INSTALL
IMPORT
SIG · METAPAK-MOTIONBANK
M
metapak-motionbank
devopsjavascriptv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import metapakMotionbank from 'metapak-motionbank'
const metapakMotionbank = require('metapak-motionbank')
Package is ESM-only from v2.0.0; no CommonJS export.
getConfig
import { getConfig } from 'metapak-motionbank'
import getConfig from 'metapak-motionbank'
getConfig is a named export, not default.
MotionbankConfig
import type { MotionbankConfig } from 'metapak-motionbank'
import { MotionbankConfig } from 'metapak-motionbank'
MotionbankConfig is a TypeScript type, use type import to avoid runtime issues.

Install metapak and metapak-motionbank, configure presets in package.json, and generate skeleton.

npm install --save-dev metapak@1.0.3 metapak-motionbank@2.0.1 # In package.json, add: { "metapak": { "configs": ["eslint", "babel"] } } # Then run: npm run metapak
Debug
Known issues
breakingPackage is ESM-only since v2.0.0; require() will throw ERR_REQUIRE_ESM.
fix
Use import or dynamic import() instead of require().
affects: >=2.0.0
breakingPeer dependency metapak@1.0.3 required; incompatible with metapak >=2.0.0.
fix
Ensure metapak version is exactly 1.0.3.
affects: >=2.0.0
deprecatedGreenkeeper badge in README; Greenkeeper is deprecated in favor of Renovate or Dependabot.
fix
Replace Greenkeeper badge with Dependabot or Renovate badge.
affects: >=1.0.0
gotchaMultiple configs are mutually exclusive: feathers, quasar, vue cannot be combined.
fix
Choose only one of feathers, quasar, or vue if using any.
affects: *
gotchaConfig name 'codacy' and 'codeclimate' are case-sensitive; must be lowercase exactly.
fix
Use exactly 'codacy' or 'codeclimate' not 'Codacy' or 'CodeClimate'.
affects: *
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/metapak-motionbank/index.js from /path/to/project not supported.
Using require() on ESM-only package v2.0.0+.
fix
Change to import or use dynamic import().
npm ERR! ERESOLVE unable to resolve dependency tree: Found: metapak@2.0.0 but peer dep requires 'metapak@1.0.3'.
Incompatible metapak version installed.
fix
Install metapak@1.0.3 explicitly: npm install --save-dev metapak@1.0.3
metapak-motionbank: unknown config 'Eslint'. Available: eslint, babel, ...
Config name is case-sensitive; 'Eslint' not recognized.
fix
Use lowercase 'eslint' in configs array.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
metapakrequiredPeer dependency required at version 1.0.3; metapak provides the core skeleton generation framework.
Agent activity
2 hits · last 30 days
node
2
Resources
metapak-motionbank — npm install metapak-motionbank · libregistry