Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

10mado/frontend-utils

Repository files navigation

utilities for frontend development

install

npm install git+ssh://git@github.com/10mado/frontend-utils.git#master --save-dev

initialize gulp task

in gulpfile.js:

var gulpTasks = require('frontend-utils').gulp(__dirname);
var gulp = require('gulp');
gulpTasks.all(gulp);

or

var gulpTasks = require('frontend-utils').gulp(__dirname);
var gulp = require('gulp');
gulpTasks.sass(gulp,{compass:true});
// 'sass' and 'watch-sass' task automatically created with 10mado standard options.

tasks

sass: compile sass
watch-sass: watch sass (not implemented)
js: minify js (not implemented)
watch-js: watch js (not implemented)
wig : build site with wig
icon : compile icons with fontcustom 
server_node : run Nodejs test server (defalut: localhost:3000)
server_php : run PHP test server (defalut: localhost:3000)
server_py : run Python test server (defalut: localhost:3000)
server_gae : run GAE test server (defalut: localhost:3000)
deploy_gae : deploy to GAE
open : open browser with specific url(defalut: localhost:3000)

recommended directory structure

assets
assets/sass/  : sass(scss)
assets/js/    : js
assets/fonts/ : icon,fonts
public        : public dir
public/css    : public css dir
public/js     : public js dir
data          : data direcotry(for wig)
templates     : template directory(for wig)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published