Coder Social home page Coder Social logo

yer's Introduction

Yer.js

Yer is a command line interface for managing front-end web development in +rehabstudio

THIS IS STILL IN DEVELOPMENT

Install

Please make sure you have grunt.js installed as a global package

Install the dependencies for yer.js and set up a local link for it so you can use it around your system

npm install && npm link

Options

Yer comes with the following options

###yer project <project name>

If your make a new folder for a project in a http capable folder, go into it via Terminal and enter yer project

Project name is optional, if left blank, the project name is assumed to be the name of the project directory.

This will generate the basic template of the following,

/css
	/src
		norm.css
		layout.scss
		
/js
	/node_modules
	/src
		app.js
	/lib
		jquery.min.js
	
	grunt.js
	package.json
		
/img

index.html
.gitignore

yer wil then return a line of code for your to execute.

cd js && npm install -d && grunt

This does the following,

  1. Go into your projects js directory

  2. Installs the grunt depenandcies of grunt-sass and grunt-css

  3. Executes the grunt command to compile the applications css

You are now good to go!

###yer host <project name>

This is a lazytool™ designed to generate a vhost quickly and easily. This currently only works on OSX and Linux ( GTFO windows ).

Project name is optional, if left blank, the project name is assumed to be the name of the project directory.

On completetion, your primary browser will open with the new relative host url.

// project folder called fluxxx
yer host

// => generates fluxxx.localhost


// project folder called dynmo.localhost
yer host

// => generates dynmo.localhost


// project folder called icecream-proto
yer host bacon

// => generates bacon.localhost

grunt tasks

####grunt

This will compress and compile all of the scss and css files, also runs grunt libs

####grunt libs

This minifys and concats all the files within the js/lib folder and outputs to dev.projectname.lib.js in the js folder.

####grunt build

This puts all of the javascript files ( libs and src ) into one file at the end of a project. The contents are outputed to projectname.min.js in the js folder.

yer's People

Contributors

duckbox avatar facepalm50 avatar

Watchers

 avatar James Cloos avatar John Richard Chipps-Harding avatar Roger Simms avatar Mark McConnell avatar Kirsty McCrystal avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.