generator-esites-fe
v2.0.3
Published
Yeoman generator for E-sites frontend
Downloads
5
Readme
generator-esites-fe
Yeoman generator for E-sites projects
Features
Please see our Gulp tasks for up to date information on what we support.
- Asset management with webpack
- ITCSS CSS architecture
- Compile Sass with libsass
- Enable CSS plugins with PostCSS
- CSS baseline by Supple CSS
- CSS Autoprefixing with Autoprefixer
- ES2015+ features with Babel
- Conditioner.js - Frizz free, context-aware, JavaScript modules
- SVG polyfill to enable external SVG's in IE10/IE11 with svgxuse
Prerequisites
Make sure Node and npm are installed. A great guide can be found here: https://docs.npmjs.com/getting-started/installing-node
First you need to install Yeoman:
npm install -g yo
After that you'll need to install the generator:
npm install -g generator-esites-fe
If you already have these packages installed, you can upgrade them:
npm update -g yo generator-esites-fe
Note: Mac users need to run above commands with sudo
.
Note: If you use this generator in a Kunstmaan project please check the Kunstmaan CMS installation guide.
Usage
Please make sure your system meets the prerequisites.
- Run
npm update -g generator-esites-fe
. - From the terminal, navigate to your projects directory.
- Type
yo esites-fe
, answer a few questions about your project, and wait. - Bask in the glory of your fully scaffolded frontend installation.
Options
--skip-install
Skips the automatic execution ofnpm
after scaffolding has finished.
Kunstmaan CMS installation
At E-sites we’re running a CMS called Kunstmaan bundles for Symfony.
During installation of this front-end setup you’ll get the question "Are you scaffolding for a kunstmaan project?". If you choose yes
we’re assuming you already have installed a clean Kunstmaan project through the installation guide.
By default Kunstmaan installs their own front-end tooling named groundcontrol
.
It is advised to remove all groundcontrol files before running this yeoman generator to ensure you’ll have the most clean start point of your project.
Files & folders which you need to remove:
groundcontrol
package.json
package-lock.json
.babelrc
.eslintrc
.jshintrc
.nvmrc
.stylelintrc
gulpfile.babel.js
src/Esites/WebsiteBundle/Resources/ui
Note: It is recommended that you remove these files but if you don’t, dont worry! The generator will prompt you when there are conflicts on the files.
Files you need to change:
.gitignore
: changeweb/frontend/*/*
toweb/frontend/**/*
& add/_tmp
app/config/config.yml
: add- { resource: config_frontend.yml }
parameter toimports
app/config/config.yml
: remove theframework.assets
parameter
Contribute
See the contributing docs.