MOSNE FrontEnd Framework (FF) is a Front-end WordPress theme friendly boilerplate to help you to build your own WordPress theme with modern tools and a better productivity.
You need a minimum of Node 16. Volta and Yarn pnp.
cd wp-content/themes/git clone git@github.com:mosne/mosne_ff.git your_theme_nameNext, go to your theme folder.
rm .gitThen install node dependencies with Yarn.
volta install node@16volta install yarnyarn set version berryyarn && yarn buildYou can edit Webpack configuration with config/entries.js file and settings by editing webpack.settings.js.
For live editing edit the proxy url in the file config/browsersync.config.jsand the server path to the dist folder.
proxy: `https://projectname.monse.it/`After installing dependencies, you can run some commands which are explained below.
and run a first time the following command to generate required distributions files to run the server properly.
yarn buildThen, you can luch Browser Sync proxy by running :
yarn startTry to auto fix JS using eslint :
yarn fixjsTry to auto fix SCSS using stylelint :
yarn fixcssTry to auto fix PHP using phpcbf :
yarn fixphpRead our wiki page to correctly configure your enviroment
