Git Product home page Git Product logo

compiler's Introduction

๐Ÿ–ฅ๏ธ compiler

Welcome to compiler. A tool to combine multiple files into one. I know it might seem useless at first, but it is actually way more useful than you think it could be. I recently needed a tool/application to reduce the size of my gigantic html and css file. So I came up with compiler. It allows you to combine multiple files into one file and then reload the output file upon saving the file.

๐Ÿ“ฐ Usage

  1. Download compiler from the latest release.
  2. Start the jar either using the command prompt or by just double clicking it.
  3. You'll be met with a command prompt. Type 'help' for a list of commands. Type 'methods' for a list of methods.
  4. You now need some files. In my case I'll have 'template.html','index.html' and 'section1.html'. I want to combine 'section1.html' and 'template.html' to form one file (index.html). Now go into the template file, go to the line where you want the 'section1.html' file to be at and simply just add '@compiler:inject(section1.html)' to the line.
  5. Now lets get onto compiling these files together into one. You open the cmd window and simply type 'compile template.html index.html'. If you haven't messed anything up and open the index.html file, you should now see that the 'section1.html' file replaced the line with '@compiler:inject(section1.html)'.

๐Ÿ’ป Commands

  • help - Help displays a list of all the commands in the application.
  • methods - Methods displays a list of all the methods in the application.
  • compile file1 file2 - Compiles file1 into file2 using methods given in file1. (See usage)
  • watch file1 file2 - Does the same thing as the 'compile' command, but also recompiles every time a file is refreshed.

๐Ÿ’ป Methods

  • inject(file) - Replaces the line where the method is located with the content of the file.

compiler's People

Contributors

unbreathable avatar

Forkers

officialerror

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.