Webpack for Moonwalkers.
Install:
$ npm install -g @moonwalker/jetpack
Create a new project:
$ jetpack create projectname
Working on the project:
$ cd projectname
Run dev server:
$ npm start
Build for production:
$ npm run build
The 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');
yarn
yarn bump