Skip to content

dragonflypl/web-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-wiki

Learning resources

Awesome node / gulp

eslint

gulp-print

Prints names of files to the console so that you can see what's in the pipe

gulp-bump

Bump any JSON file which supports semver versioning

gulp-ng-annotate

Add angularjs dependency injection annotations with ng-annotate

gulp-filter

Filter files in a vinyl stream.

Enables you to work on a subset of the original files by filtering them using globbing. When you're done and want all the original files back you just call the restore method.

csso

CSS-optimizer

gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.

gulp-angular-templatecache

yargs

gulp-task-listing

Plugin for making help

gulp.task('help', require('gulp-task-listing'));
// or with gulp-load-plugins
var $ = require('gulp-load-plugins')({lazy: true})
gulp.task('help', $.taskListing)

gulp-load-plugins

Saves gulp plugins loading code:

var $ = require('gulp-load-plugins')({lazy: true});
$.util.log("This is how to access gulp-util plugin");

browsersync

Plugins that speeds up development by reloading files in the browser:

function startBrowserSync() {
    var browserSync = require('browser-sync');
    if (browserSync.active) {
        return;
    }

    log('Starting browser-sync on port ' + port);

    gulp.watch([config.less], ['styles'])
        .on('change', function (event) {
            changeEvent(event);
        });

    var options = {
        proxy: 'localhost:' + port,
        port: 3000,
        files: [
            config.client + '**/*.*',
            '!' + config.less,
            config.temp + '**/*.css'
        ],
        ghostMode: {
            clicks: true,
            location: false,
            forms: true,
            scroll: true
        },
        injectChanges: true,
        logFileChanges: true,
        logLevel: 'debug',
        logPrefix: 'gulp-patterns',
        notify: true,
        reloadDelay: 0 //1000
    };

    browserSync(options);
}

wiredep / gulp-inject

gulp-util

Enables logging & coloring:

var gutil = require('gulp-util');
gutil.log(gutil.colors.blue(msg));

node-notifier

gulp-browserify

gulp-connect - fires a server

gulp-if

gulp-minify-html

gulp-jsonminify

Blogs

CSS

Typography

Other

Design

AngularJS

  • AngularJS & RequireJS

Key points from this presentation are:

  • AngularJS injects Instances whereas RequireJs injects Classes (References)
  • RequireJS manages: Load & Runtime Dependency
  • AngularJS manages: Construction & Module Depenedency

UI-Router

Performance Tips

JavaScript testing

Online tools/resoures

For Bootstrap

Other

  • setting up cmd with custom init script: C:\Windows\System32\cmd.exe /k "C:\dev\nodevars.bat" + bat file:
@echo off

rem Ensure this Node.js and npm are first in the PATH
set PATH=%APPDATA%\npm;%~dp0;%PATH%;c:\ubs\dev\npm;C:\Program Files\nodejs

setlocal enabledelayedexpansion
pushd "%~dp0"

rem Figure out the node version.
set print_version=node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v

rem Print message.
if exist npm.cmd (
  echo Your environment has been set up for using Node.js !version! and npm.
) else (
  echo Your environment has been set up for using Node.js !version!.
)

popd
endlocal

rem If we're in the node.js directory, change to the user's home dir.
if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"

FAQ

About

web-wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages