Skip to content

Wallaby setup for our standard Meteor project layout

Notifications You must be signed in to change notification settings

mindhivenz/wallaby-meteor-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallaby Meteor config

Install

  1. In the root of the project: yarn add --dev @mindhive/wallaby-meteor-config
  2. Create wallaby.js in the root of the project something like the example below
  3. Setup a IDEA Wallaby run configuration using wallaby.js

Example wallaby.js

module.exports = require('@mindhive/wallaby-meteor-config')({
  meteorPort: 3000,
  mongoUrl: 'mongodb://127.0.0.1:27017/project-wallaby',
})

Additional options can be seen at the top of index.js.

Required project layout

  • src
    • .specs (make sue !.specs is in your .eslintignore)
    • imports
    • .meteor (if you have multiple Meteor projects using this one source dir, symlink one to this to load Meteor packages from)
    • .babelrc

Test files match *.spec.js/jsx and can be under .specs or imports.

Babel

If the project root has a .babelrc file then this is used. Otherwise:

This Wallaby setup uses Meteor's standard Babel setup supplemented with your app's .babelrc file (if it exists in src). This replicates Meteor's standard behaviour.

About

Wallaby setup for our standard Meteor project layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published