An initiative of Pipoca Digital to help those people who want to create Static or WordPress websites easily.
- Simple
- Free
- Fast
- Easy for begginers
- Uses cool stuff such as JS, Sass and Gulp
First of all, make sure you have installed the main dependencies:
# Clone it:
$ git clone git@github.com:pipocadigital/grao-de-milho.git my-project-folder
# Then, go to the project's folder:
$ cd my-project-folder
# Install your dependencies and Init a new project by running:
$ npm start --name "My cool project name"
We can create two types of projects. A Front-end (front
) and a WordPress (wp
) project.
$ npm run front:dev
- Set the project format;
- Generate your compiled files inside a folder called
www
and start your development server; - Open a new tab on your browser running a development server.
$ npm run front:build
- Set the project format;
- Generate your compiled files inside a folder called
www
.
$ npm run wp:dev
- Set the project format;
- Download WordPress inside a folder called
wordpress/
- Copy your style.css, plugins, wp-configs.php files to the correct place.
- Generate your theme based on your compiled files.
- After all it will open a new tab on your browser running a development server.
To keep working on your WordPress project whithout donwload it everytime, just run:
$ npm run serve
$ npm run wp:build
- Set the project format;
- Download WordPress inside a folder called
wordpress/
- Copy your style.css, plugins, wp-configs.php files to the correct place.
- Generate your theme based on your compiled files.
- NodeJS
- Gulp
- JS (ES2015)
- Sass
- HTML5
- WordPress
If everything from the Getting Started section goes well, you should have this:
├── gulpfile.js
├── bower.json
├── package.json
├── README.md
├── www
├── wordpress
└── src
├── js
│ ├── *.js
├── images
│ └── {.jpg, .png, .svg, .gif, .ico}
├── css
│ ├── components
│ │ └── _component-name.sass
│ ├── elements
│ │ └── _element-name.sass
│ ├── pages
│ │ └── page-name
│ │ └── *.sass
│ ├── settings
│ │ ├── _base.sass
│ │ ├── _colors.sass
│ │ ├── _measures.sass
│ │ └── _typography.sass
│ ├── tools
│ │ └── _mixins.sass
│ └── main.sass
├── 404.php
├── footer.php
├── functions.php
├── header.php
├── index.php
├── page.php
├── search.php
└── style.css
If you're running gulp globally, so you can use all the tasks below:
gulp
:- Runs
gulp build
; - Creates a watcher;
- Creates a webserver and open your brower;
- Runs
gulp init --name "Your project name"
: Renames the project;gulp wp
: Alias forgulp wp-install
gulp build
: Run all the tasks below, exceptwp-install and wp-build
.
-
gulp clean
: Remove all the files from generated directory; -
gulp fonts
: Copyfonts/
from source to generated directory; -
gulp images
: Copyimages/
from source to generated directory; -
gulp libs
: Get dependencies from brower, concat inside a only file and paste into the generatedscripts
directory; -
gulp pages
: Copy all.php
files from source to generated directory; -
gulp scripts
: Check the quality of all.js
files, apply babel2015 presets and copy thejs/
files from source to generated directory; -
gulp styles
: Copystyles/
from source to generated directory; -
gulp set-format --name "Project type"
: Set the project format -
gulp wp-install
:- Checks if the project has a name;
- It also checks if WordPress is already installed;
- If you confirm, it installs the latest version of WordPress;
- Runs
gulp wp-build
;
-
gulp wp-build
:- Updates the DB configurations;
- Updates the authentication unique keys;
- Removes default themes from
wp-content/
; - Copy files from
plugins/
towp-content/plugins/
;
Generated directory could be: www/
or wordpress/
Grão de Milho is distributed under the MIT License