Sha256: 53e1fc61524f9b161527b2deb79d4c4d2d1a742b1a983e2fecca13ec1806a8d5

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

# JSPreprocessor

Like Browserify but the C way.
Include JavaScript files directly into your source code using #include 'somefile'

## Installation

Add this line to your application's Gemfile:

    gem 'jspreprocessor'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jspreprocessor

## Gem Usage

	@pre = JSPreprocessor.new
	processed_file = @pre.process './folder_with_all_your_javascript/', 'entry_point.js'

	File.open 'processed.js', 'w' do |file|
      file.write processed_file
    end

## JavaScript Usage

	#include 'lib/stuff'

	var s = new Stuff();
	s.doStuff();

## Contributing

1. Fork it ( https://github.com/C0deMaver1ck/JSPreprocessor/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jspreprocessor-0.0.1 README.md