Giter Site home page Giter Site logo

tars-cli's Introduction

English description | Описание на русском

Tars

Build Status Dependency Status Gitter

TARS is a markup builder, which is based on gulp.js. It facilitates and accelerates process of html-markup of any complexity. TARS will be suitable for teams and individual developer. It solves the most routine cases associated with a markup and it brings you more pleasure from work.

TARS is the framework for gulp, including a set of gulp-tasks and it allows the ability to easily expand (creating new tasks) and modification of existing tasks.

TARS provides comfortable architecture for storage tasks and watchers in the project.

There is TARS-CLI in order to not install all dependencies all the time, when you are installing TARS. So, TARS is not a npm-package by itself. This decision was decided so that everyone can customize the builder as comfortable as possible for themselves. CLI — just simple interface for builder, which includes all dependencies for TARS. You must use TARS-CLI for developing from with moment.

You can install TARS-CLI via NPM. More info in project's repository.

Basic features

Listed below are just a little part of the features. In fact builder has much more.

  • Jade or Handlebars as html-templater. You can also use a regular html. Read more in docs.
  • Using json (js-object actually, which can be described in json) to transfer data in templates (optional, but it is very cool thing that will let you to rid of copypast). Read more in docs.
  • SCSS, LESS or Stylus as a preprocessor for css. Also it includes a small set of mixins. You can also use a regular css. Read more in docs.
  • No external libraries and plugins (except html5shiv). Yes, this is a feature because you can choose library for using.
  • Chokidar module is used for watching files
  • Sharing of markup from your local computer to an external web, optional. And of course it has a livereload in browser (and not just locally) + GUI to control panel for devices, on which markup was shearing.
  • You can easy add new tasks and watchers. There are examples of how to create and use a new task or watcher inside the TARS.
  • Smart work with images. First of all with vector(svg). There will be no more hell with markup for screens with high pixel density.
  • Several modes of assembly (common, with minified files, with hash in the title of css- and js-files for deploy).
  • Creating archive with the ready build.

Installation

You need to install Node.js with version equal to 0.10 or more. Next you need to install gulp globally. (You may need rights of superuser or administrator).

npm install -g gulp

Download TARS and unzip it in the working directory. Then install dependencies. Command is run from a folder with TARS files (usually it is a tars-master).

npm install

If not all of the dependencies have been installed, the last operation must be repeated.

After installing of all dependencies you need to open tars-config (detailed description of the options here) and set up the project for yourself. In the config, you can select the templater, css-preprocessor, using the notifications, folder names for different static and etc. After setting up the project, execute the following command:

gulp init

This command will create the basic file structure, take tasks for selected templater and css-preprocessor. Everything is ready, make it work! :)

Basic commands

gulp init — initializes project with the specified settings in the tars-config. Creates a file structure.

gulp re-init — reinitialize the project with specified settings in the tars-config. It is proposed to use this command if you initialize the project with incorrect options.

gulp или gulp build — make project assembly. There not minimized files are connected. Type of assembly depends on the transmitted keys with this command. Available keys:

  • --min – minimized files connected to html.
  • --release – minimized files connected to html whose names have hash. This mode is useful if you are directly trying to deploy ready markup to the server.

gulp dev — initialization of builder in development mode. Dev-version of the project is created without any minifications. Also it launches watchers for project files. Available keys:

  • --lr – initialization livereload (live page reloads with changes in project files), if it is included in the configuration of the project.
  • --tunnel – initialization project with sharing markup to an external web.

The link will be shown in the console. There also will be a link to control panel for devices on which markup was sharing.

gulp build-dev — generation of dev-version of the project without watchers.

Keys are available in any mode of assembly:

  • --ie8 – to include in the build styles for ie8.

gulp update-deps – updates of all assembler dependences to the latest stable. It may take some time to execute this command. It is desirable to execute once a week. Command will copy the current package.json, add underline to its name, download a new package.json from the repository and execute npm install. So, if something was broken with the new package, you can always return to the last version, just rename last package.json. Also you can read a upgrade guide.

Documentation

It is important! All examples in documentation use the default settings.

Last changes

All recent changes are available at the link: changelog.

If you have a question you can write in gitter or mail [email protected]

Bugs and feature-request here: issues.

tars-cli's People

Contributors

hazantip avatar

Watchers

 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.