Miscellaneous front end tools that can run without a server. Uses Github Pages to deploy static content.
This repository contains the following gulp tasks:
clean
: Cleans thedist
folder.coffee
: Compiles*.coffee
files.sass
: Compiles*.scss
and*.sass
files.jade
: Compiles*.jade
files.copy
: Copies everything expect supported extensions.watch
: Watches all the files and runs the supported task.build
: Executesclean
,coffee
,scss
,jade
,copy
tasks.deploy
: Runs thebuild
task and then deploys thedist
folder (commit and push togh-pages
branch`).run
: Serves thedist
folder in the port3000
.
Following the listed steps to push and deploy a front-end tool.
- Create a folder inside
src
. - Add the content of your tool. All the content is going to be compiled with the same structure.
- Test your application by running the following tasks:
- First run the
gulp build
from the command-line. - Then run
gulp run
to serve thedist
folder in the port3000
. - Access your tool using the folder name as a route. For example:
./src/my-tool
becomeslocalhost:3000/my-tool
- Commit and push to your branch or to the
master
branch. - Deploy your tool using
gulp deploy
from the command-line. - Your tool should be available in
http://username.github.io/repo-name/my-tool
If you want to extend the tasks to support more extensions (HAML, for example), in the gulpfile.js
file make sure to:
- Add your task in the
build
task sequence. - Add the new supported extension - if any - to the supported extensions list.
- Test it out to make sure it works as expected.
To contribute follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub.
- Clone the project to your own machine.
- Commit changes to your own branch.
- Push your work back up to your fork.
- Submit a Pull request so that we can review your changes.
NOTE: Be sure to merge the latest from "upstream" before making a pull request!