Presentation made for a WordPress initiation workshop.
- LOCAL: http://web.wordpressinit.lndo.site/
- DEV: ~
- PRE: ~
- PRO: https://jjpeleato.com/courses/initwordpress/
Project built with the framework reveal.js.
More information on GitHub
- You have to install Lando
If Lando's tools does not work for you, there is another way. You must install the environment manually: XAMP, Node.JS, NPM or Yarn and Gulp CLI.
For more information visit:
Notes:
- If you work with Windows < 10. To execute the commands, I recommend installing Cygwin.
- If you work with Windows 10. To execute the commands, I recommend installing WSL 2 with Ubuntu.
- If you work with Windows 10. You need install the following package win-node-env.
- I recommend installing the following IDE for PHP Programming: PHPStorm (recommended) or Visual Studio Code.
├─ .husky/ # Husky directory (git-hooks)
├─ assets/
├─ gulp/
│ ├─ task/
│ └─ config.js # Paths and configuration Gulp system.
├─ public/
├─ .babelrc
├─ .editorconfig
├─ .gitignore
├─ .lando.yml
├─ .stylelintignore
├─ .stylelintrc
├─ commitlint.config.js
├─ gulpfile.babel.js
├─ LICENSE
├─ package.json
└─ README.md
- Run
git clone https://github.com/jjpeleato/slides-starter-boilerplate.git slides-project - Open the
initialize.shfile and edit the GIT variable with the new repository. I recommend SSH connection. Example:git@github.com:jjpeleato/slides-starter-boilerplate.git. - Run
sh initialize.sh. - For security. Open the
initialize.shfile and edit the GIT variable to~. - Open the
README.mdand rename the name of presentation, name of project and description. - Open the
lando.ymland rename the project and proxy name. - Open the
package.jsonand edit the name and description. - Open the
public/.well-known/security.txtand edit the canonical. - Open the
public/humans.txtand edit the last update. - Open your terminal and browse to the root location of your project.
- Run
$lando start.- The project has a
.lando.ymlfile with all the environment settings. - The command starts the installation process when it finishes, you can see all the URLs to access.
- The project has a
- If required. Run:
$lando npm install --save-devor$lando yarn install --dev. - If required. Run:
$lando npm run prepare. - If required. Run:
$lando npm run gulp:prod. - End. Happy developing.
- Open your terminal and browse to the root location of your project.
- To work with and compile your SASS and JS files on the fly start:
$lando gulp,$lando npm run gulp:devor$lando npm run gulp:prod - Gulp actions commands list:
$lando gulp cleanDelete all files.$lando gulp cssCompile SASS to CSS and validate SASS according Stylelint. Not concat.$lando gulp cssAssetsCopy CSS assets to public directory.$lando gulp copyCssFontawesomeCopy Fontawesome CSS assets to public directory.$lando gulp copyWebfontsFontawesomeCopy Fontawesome webfont assets to public directory.$lando gulp fontAssetsCopy fonts assets to public directory.$lando gulp fontawesomeCopy fontawesome assets to public directory.$lando gulp imagesCopy and minify image assets to public directory.$lando gulp imagesAssetsCopy and minify other image assets to public directory.$lando gulp jsValidate the code with JSHint. Minify the JS files.$lando gulp jsAssetsCopy JS assets to public directory.$lando gulp jsCopyCopy another JS assets to public directory.$lando gulp validateValidate JS with JSHint and SCSS according Stylelint.$lando gulp validateJsValidate JS with JSHint.$lando gulp validateScssValidate SCSS according Stylelint.$lando gulp watchCompile SASS to CSS and concat and minify JS files in real-time.
- NPM actions commands list:
$lando npm run prepareEnable Git hooks. Important: Run always after npm install.$lando npm run gulp:devCompile for development environment.$lando npm run gulp:prodCompile for production environment.$lando npm run gulp:validateRun validate JS and SCSS files.
The present project uses several technologies and tools for the automation and development process. For more information and learning visit the following links.
- Reveal.js
- Lando
- Docker
- Git
- Nginx
- Node.js
- NPM
- Yarn
- Gulp
- JSHint
- Stylelint
- Mark Otto's coding standards
- Fontawesome
- EditorConfig
- Husky
- Conventional Commits
- Commitlint
- Commitizen
- Human.txt
- Security.txt
Note: Thanks all people to work on these projects.
- It is very important that if you deploy the project to publish. The DocumentRoot on the VirtualHost has to point to the public/ directory.
- At the moment you can not update the
gulp-imageminpackage because it generates an error. I will investigate in the following commitments. - You can not update the
stylelint,stylelint-config-standardandstylelint-scssbecausegulp-stylelintpackage cannot work with them.
- It is possible that on macOS the Gulp tasks do not run the correct form. In this case install NodeJS, NPM and Gulp-cli in your OS and execute the tasks outside the Docker containers.
More information on the following commits. If required.
Grettings @jjpeleato.