joosy 1.2.0.alpha.32 → 1.2.0.alpha.33
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.
- checksums.yaml +4 -4
- data/bower.json +1 -1
- data/package.json +1 -1
- data/src/joosy/generators/project.coffee +2 -2
- data/src/joosy/generators/project/standalone.coffee +5 -3
- data/tasks/joosy.coffee +17 -15
- data/templates/application/standalone/source/{index.haml → haml/index.haml} +0 -0
- data/templates/application/standalone/{stylesheets → source/stylesheets}/application.styl +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df2bca35b74d9c14728fd7262d3b7a96e7db37dc
|
4
|
+
data.tar.gz: 33b20930a8c3afbf402dfed6a4708073c9d8d669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ccfaa7b808f9bec3ffa834548ae1918e4f6ab380056670e23c2b14d5edd52b2f2bb849cb93694dee50c6492e656bc3cba5cd89d3b31b06e182a3c940a705ff
|
7
|
+
data.tar.gz: 9e80a44f31ee9e465710101b7abbf936f4e901e5db384b5b8d49fadf533812124c9540abb1eab78f7b896667cd900bd60ef1dd9e17af121d1e7f1c564c3b97d3
|
data/bower.json
CHANGED
data/package.json
CHANGED
@@ -7,11 +7,11 @@ module.exports = class
|
|
7
7
|
@options.dependencies = """
|
8
8
|
#= require jquery/jquery.js
|
9
9
|
#= require jquery-form/jquery.form.js
|
10
|
-
#= require sugar/release/sugar
|
10
|
+
#= require sugar/release/sugar.min.js
|
11
11
|
"""
|
12
12
|
|
13
13
|
@standalone = new Standalone(@options)
|
14
|
-
@base = new Base(@options, Path.join(@standalone.destination, 'source'))
|
14
|
+
@base = new Base(@options, Path.join(@standalone.destination, 'source/javascript'))
|
15
15
|
|
16
16
|
generate: ->
|
17
17
|
@standalone.generate()
|
@@ -18,10 +18,12 @@ class ProjectStandalone extends @Base
|
|
18
18
|
@copy ['application', 'standalone', 'bower.json'], ['bower.json']
|
19
19
|
@copy ['application', 'standalone', 'Gruntfile.coffee'], ['Gruntfile.coffee']
|
20
20
|
@copy ['application', 'standalone', 'Procfile'], ['Procfile']
|
21
|
-
@copy ['application', 'standalone', 'source', 'index.haml'], ['source', 'index.haml']
|
22
21
|
|
23
|
-
@copy ['application', 'standalone', '
|
24
|
-
['
|
22
|
+
@copy ['application', 'standalone', 'source', 'haml', 'index.haml'],
|
23
|
+
['source', 'haml', 'index.haml']
|
24
|
+
|
25
|
+
@copy ['application', 'standalone', 'source', 'stylesheets', 'application.styl'],
|
26
|
+
['source', 'stylesheets', 'application.styl']
|
25
27
|
|
26
28
|
@template ['application', 'standalone', 'package.json'], ['package.json'],
|
27
29
|
joosy_version: @version()
|
data/tasks/joosy.coffee
CHANGED
@@ -26,8 +26,8 @@ module.exports = (grunt) ->
|
|
26
26
|
stylus.use require('nib')()
|
27
27
|
|
28
28
|
assets = new Mincer.Environment(process.cwd())
|
29
|
-
assets.appendPath 'source'
|
30
|
-
assets.appendPath 'stylesheets'
|
29
|
+
assets.appendPath 'source/javascript'
|
30
|
+
assets.appendPath 'source/stylesheets'
|
31
31
|
assets.appendPath 'vendor'
|
32
32
|
assets.appendPath 'components'
|
33
33
|
assets.appendPath 'node_modules/joosy/src'
|
@@ -52,7 +52,7 @@ module.exports = (grunt) ->
|
|
52
52
|
callbacks.success?() if deepness == 0
|
53
53
|
|
54
54
|
haml:
|
55
|
-
compile: (file, partials='
|
55
|
+
compile: (file, partials='source/haml', environment='development') ->
|
56
56
|
HAMLC = require 'haml-coffee'
|
57
57
|
|
58
58
|
HAMLC.compile(grunt.file.read file)(
|
@@ -96,17 +96,19 @@ module.exports = (grunt) ->
|
|
96
96
|
return unless map?
|
97
97
|
|
98
98
|
for _, entry of map
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
99
|
+
do (_, entry) ->
|
100
|
+
paths = entry.path
|
101
|
+
paths = [paths] unless Object.isArray(paths)
|
102
|
+
|
103
|
+
for path in paths
|
104
|
+
do (path) ->
|
105
|
+
server.use path, (req, res, next) ->
|
106
|
+
if req.originalUrl == path
|
107
|
+
res.end grunt.joosy.haml.compile("source/haml/"+entry.src, entry.partials)
|
108
|
+
console.log "Served #{path} (#{entry.src})"
|
109
|
+
else
|
110
|
+
next()
|
111
|
+
console.log "=> Serving #{entry.src} from #{paths.join(', ')}"
|
110
112
|
|
111
113
|
serveStatic: (server, compress=false) ->
|
112
114
|
Gzippo = require 'gzippo'
|
@@ -165,5 +167,5 @@ module.exports = (grunt) ->
|
|
165
167
|
|
166
168
|
grunt.registerTask 'joosy:haml', ->
|
167
169
|
for _, entry of grunt.joosy.helpers.list(@, 'joosy.haml', @args[0])
|
168
|
-
grunt.file.write entry.dest, grunt.joosy.haml.compile("source/#{entry.src}", entry.partials, 'production')
|
170
|
+
grunt.file.write entry.dest, grunt.joosy.haml.compile("source/haml/#{entry.src}", entry.partials, 'production')
|
169
171
|
grunt.log.ok "Compiled #{entry.dest}"
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joosy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0.alpha.
|
4
|
+
version: 1.2.0.alpha.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Staal
|
@@ -141,8 +141,8 @@ files:
|
|
141
141
|
- templates/application/standalone/_gitignore
|
142
142
|
- templates/application/standalone/bower.json
|
143
143
|
- templates/application/standalone/package.json
|
144
|
-
- templates/application/standalone/source/index.haml
|
145
|
-
- templates/application/standalone/stylesheets/application.styl
|
144
|
+
- templates/application/standalone/source/haml/index.haml
|
145
|
+
- templates/application/standalone/source/stylesheets/application.styl
|
146
146
|
- templates/layout/basic.coffee
|
147
147
|
- templates/layout/namespaced.coffee
|
148
148
|
- templates/page/basic.coffee
|