Skip to content

Commit

Permalink
update : README, gulpfile and packages
Browse files Browse the repository at this point in the history
refactored packages to meet possible environments
cleared README
use gulp to move assetts to out folder
  • Loading branch information
almereyda committed Dec 8, 2014
1 parent b64fa91 commit 10b80a6
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 13 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,39 @@ Also consult `packages.json`.

### For static site generation w/ DocPad

#### `docpad install` ...
* `npm install --production`

#### `docpad install`

This will install the following modules:

* `jade`
* `livereload`
* `ghpages`
* (`stylus`) *not used yet*

### For Favicon generation via Gulp
### Developer dependencies

#### Favicon generation via Gulp

The initial idea and code for changing Favicons comes from [Federated Wiki](http://fed.wiki.org).
Check the source!

#### DocPad Package
#### `docpad install`

* `gulp`

#### NPM Packages
#### `npm install`

* `-g gulp` && `gulp`
* `gulp-file`
* `mkdirp`
* `mkdirp`
* `canvas`

#### Dependencies for `canvas`

* Ubuntu : `apt-get install pkg-config libpng-dev libgif-dev libfreetype6-dev libpixman-1-dev libcairo2-dev libjpeg-dev`
* [Fedora](https://github.com/Automattic/node-canvas/wiki/Installation---Fedora) : `yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel`
* OS X : https://github.com/Automattic/node-canvas

## Run
Expand Down
34 changes: 33 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// TODO : gulpfile.coffee
/* TODO : require dependent on env : https://gist.github.com/Dashed/8298724
https://www.npmjs.org/package/gulp-task-listing
https://www.npmjs.org/package/gulp-task-master */
// Browserify? : http://www.100percentjs.com/just-like-grunt-gulp-browserify-now/

var gulp = require('gulp');
var file = require('gulp-file');
var clean = require('gulp-clean');

gulp.task('favicon', function() {
// https://github.com/fedwiki/wiki-plugin-favicon/blob/master/client/favicon.coffee
Expand Down Expand Up @@ -69,4 +74,31 @@ gulp.task('favicon', function() {
return file('favicon.ico', buf, { src: true }).pipe(gulp.dest('out/files'));
});

gulp.task('default', ['favicon']);
gulp.task('jquery', function() {
return gulp.src('node_modules/jquery/dist/jquery.min.js')
.pipe(gulp.dest('out/files/js'));
});

gulp.task('bootstrap-js', function() {
return gulp.src('node_modules/bootstrap/dist/js/bootstrap.min.js')
.pipe(gulp.dest('out/files/js'));
});

gulp.task('bootstrap-css', function() {
return gulp.src('node_modules/bootstrap/dist/css/*.min.css')
.pipe(gulp.dest('out/files/css'));
});

gulp.task('bootstrap-fonts', function() {
return gulp.src('node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.*')
.pipe(gulp.dest('out/files/fonts'));
});

gulp.task('bootstrap', ['bootstrap-js', 'bootstrap-css', 'bootstrap-fonts']);

gulp.task('clean', function () {
return gulp.src('out/files/*', {read: false})
.pipe(clean());
});

gulp.task('default', ['jquery', 'bootstrap']);
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{
"name": "TransforMap",
"version": "0.0.1",
"version": "0.0.2",
"description": "Landing page for TransforMap",
"homepage": "http://transformap.co",
"repository" : {
"type" : "git",
"url" : "https://github.com/TransforMap/transformap.github.io.git"
"repository": {
"type": "git",
"url": "https://github.com/TransforMap/transformap.github.io.git"
},
"engines": {
"node": "0.10",
"npm": "1.4"
},
"dependencies": {
"bootstrap": "^3.3.1",
"docpad": "~6.69.1",
"docpad-plugin-ghpages": "~2.4.3",
"docpad-plugin-gulp": "~2.1.5",
"docpad-plugin-jade": "~2.8.0",
"docpad-plugin-livereload": "~2.6.0",
"docpad-plugin-stylus": "~2.8.0"
"docpad-plugin-stylus": "~2.8.0",
"gulp": "^3.8.10",
"jquery": "^2.1.1"
},
"main": "node_modules/docpad/bin/docpad-server",
"scripts": {
"start": "node_modules/docpad/bin/docpad-server"
},
"devDependencies": {
"canvas": "^1.1.6",
"gulp": "^3.8.10",
"docpad-plugin-ghpages": "~2.4.3",
"gulp-clean": "^0.3.1",
"gulp-file": "^0.2.0",
"mkdirp": "^0.5.0"
}
Expand Down

0 comments on commit 10b80a6

Please sign in to comment.