zassets 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +42 -15
- data/lib/zassets/version.rb +1 -1
- data/zassets.gemspec +1 -1
- metadata +6 -5
data/README.md
CHANGED
@@ -1,49 +1,76 @@
|
|
1
1
|
z'assets
|
2
2
|
========
|
3
3
|
|
4
|
-
z'assets is a tool
|
5
|
-
|
6
|
-
|
4
|
+
z'assets is a tool based on [Sprockets][] for serving and compiling
|
5
|
+
web assets. When serving over HTTP (intended for a development
|
6
|
+
environment), compilation through various preprocessors will happen on
|
7
|
+
the fly. For production environment all specified assets are built as
|
8
|
+
files in a directory tree similar to their sources, except filenames
|
9
|
+
will include a hash to help caching.
|
7
10
|
|
8
|
-
|
11
|
+
[Sprockets]: https://github.com/sstephenson/sprockets
|
12
|
+
|
13
|
+
Integration should be doable in any web application written in any
|
14
|
+
language, provided that you can parse JSON.
|
15
|
+
|
16
|
+
Currently the following asset kinds are handled:
|
9
17
|
|
10
18
|
* JavaScript
|
11
19
|
* CoffeeScript
|
12
20
|
* CSS
|
13
|
-
* LESS
|
21
|
+
* LESS (with a modified version of tilt original less engine)
|
22
|
+
* Static files
|
14
23
|
|
15
24
|
|
16
25
|
Usage
|
17
26
|
-----
|
18
27
|
|
19
|
-
Create a `config/zassets.yaml` file in your
|
28
|
+
Create a `config/zassets.yaml` file in your application root
|
29
|
+
directory:
|
20
30
|
|
21
|
-
verbose: false
|
22
|
-
host: ::1
|
23
|
-
port: 9292
|
24
31
|
base_url: '/assets'
|
25
32
|
paths:
|
26
33
|
- 'assets/styles'
|
34
|
+
- 'assets/scripts'
|
27
35
|
public_path: 'public'
|
28
36
|
compile_path: 'public/assets'
|
29
37
|
compile:
|
30
38
|
- 'main.css'
|
31
39
|
|
32
|
-
Then you can launch development HTTP server with the following
|
40
|
+
Then you can launch development HTTP server with the following
|
41
|
+
command:
|
33
42
|
|
34
43
|
zassets serve
|
35
44
|
|
36
|
-
And
|
45
|
+
And build your assets:
|
37
46
|
|
38
|
-
zassets
|
47
|
+
zassets compile
|
39
48
|
|
40
|
-
You can override some config options using command line arguments,
|
41
|
-
complete list is printed on the standard output on
|
49
|
+
You can override some config options using command line arguments,
|
50
|
+
the complete list is printed on the standard output on
|
51
|
+
`zassets --help`.
|
42
52
|
|
43
53
|
|
44
54
|
Installation
|
45
55
|
------------
|
46
56
|
|
47
|
-
Assuming you have a working rubygems installation:
|
57
|
+
Assuming you have a working rubygems installation:
|
48
58
|
|
49
59
|
gem install zassets
|
60
|
+
|
61
|
+
|
62
|
+
Similar projects
|
63
|
+
----------------
|
64
|
+
|
65
|
+
FIXME
|
66
|
+
|
67
|
+
|
68
|
+
TODO
|
69
|
+
----
|
70
|
+
|
71
|
+
* *Test* all that code!
|
72
|
+
|
73
|
+
* Replace compile argument (config?) with build?
|
74
|
+
|
75
|
+
* Verify how sprockets-helpers is useful and either add usages
|
76
|
+
in documentation or remove it.
|
data/lib/zassets/version.rb
CHANGED
data/zassets.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
s.add_dependency 'puma', '~> 1.6'
|
23
23
|
|
24
|
-
s.add_dependency 'therubyracer', '~> 0.
|
24
|
+
s.add_dependency 'therubyracer', '~> 0.11.0beta8'
|
25
25
|
s.add_dependency 'coffee-script', '~> 2.2'
|
26
26
|
s.add_dependency 'less', '~> 2.2'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zassets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.11.0beta8
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 0.11.0beta8
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: coffee-script
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,5 +153,6 @@ rubyforge_project:
|
|
153
153
|
rubygems_version: 1.8.23
|
154
154
|
signing_key:
|
155
155
|
specification_version: 3
|
156
|
-
summary: zassets-0.1.
|
156
|
+
summary: zassets-0.1.2
|
157
157
|
test_files: []
|
158
|
+
has_rdoc:
|