Webpack for Moonwalkers.
Install:
$ npm install -g @moonwalker/jetpackCreate a new project:
$ jetpack create projectnameWorking on the project:
$ cd projectnameRun dev server:
$ npm startBuild for production:
$ npm run buildThe idea is to automate the code formatting, while relying on Eslint to report code errors (undefined variables, not found modules, etc.).
Read more about code formatting and linting
// .eslintrc.js
module.exports = {
extends: './node_modules/@moonwalker/jetpack/src/eslintrc.js',
// PROJECT CUSTOM OPTIONS
};// prettier.config.js
module.exports = require('./node_modules/@moonwalker/jetpack/src/prettier.config.js');// lint-staged.config.js
module.exports = require('./node_modules/@moonwalker/jetpack/src/lint-staged.config.js');yarnyarn bump