./README.md in lux_assets-0.1.4 vs ./README.md in lux_assets-0.1.9
- old
+ new
@@ -1,6 +1,6 @@
-# Web assets
+# Lux web assets
Lightweight web assets packer that loves simplicity.
* framework agnostic, use anywhere
* compiles js, coffee, typescript, css, sass "out of the box"
@@ -30,11 +30,11 @@
lux_assets install # Install all needed packages via yarn
lux_assets show # Show all files/data in manifest
```
1. Start with `lux_assets install`
-2. Modify ./config/assets.rb
+2. Modify `./config/assets.rb`
3. Compile with `lux_assets compile`
4. Inspect added files with `lux_assets show`
### To compile
@@ -107,13 +107,17 @@
### Adding processor for new file type
This is all that is needed to add support for TypeScript compilation.
```
+yarn add typescript
+```
+
+```
class LuxAssets::Element
def compile_ts
- LuxAssets.run "node_modules/typescript/.bin/tsc --outFile '#{@cache}' '#{@source}'"
+ system "node_modules/typescript/.bin/tsc --outFile '#{@cache}' '#{@source}'"
end
end
```
### Added new plugin for file adder
@@ -135,6 +139,22 @@
If you want to use `Rake` tasks and not `lux_assets` bin, there is a wrapper.
In `Rakefile` just add `require 'lux_assets'` and tasks will automaticly be added to your list of tasks.
Rake taks will call :env task to set up environment.
+
+```
+# Rakefile
+
+require 'lux_assets'
+
+task :env do
+ # require './config/application'
+end
+
+task :default do
+ puts 'rake -T to get all tasks'
+end
+```
+
+To test, `rake -T`