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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f367893c5c5aa8cfb194f066fb42b2d3747f17e
4
- data.tar.gz: 41f4a55dd56425b69ecb198e7356e1f37633a4a9
3
+ metadata.gz: df2bca35b74d9c14728fd7262d3b7a96e7db37dc
4
+ data.tar.gz: 33b20930a8c3afbf402dfed6a4708073c9d8d669
5
5
  SHA512:
6
- metadata.gz: 9f697b0c05d9055afbb945885be304960a24a52232f41b48b48e4b23f71aecc58dc9e125a09e810ea4c5cff78bbdd86622f038ccc1b0960a17eb02936f8f5281
7
- data.tar.gz: 8c9bf63a0b478d1003cee6a006fbf82f0c1444e1ec078913e6958b17578aa60ab81fc278167d81f396866d69c062c9388b148385bcc4b129a2acb028f830e52f
6
+ metadata.gz: d7ccfaa7b808f9bec3ffa834548ae1918e4f6ab380056670e23c2b14d5edd52b2f2bb849cb93694dee50c6492e656bc3cba5cd89d3b31b06e182a3c940a705ff
7
+ data.tar.gz: 9e80a44f31ee9e465710101b7abbf936f4e901e5db384b5b8d49fadf533812124c9540abb1eab78f7b896667cd900bd60ef1dd9e17af121d1e7f1c564c3b97d3
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joosy",
3
- "version": "1.2.0-alpha.32",
3
+ "version": "1.2.0-alpha.33",
4
4
  "main": "lib/joosy.js",
5
5
  "ignore": [
6
6
  "bin",
data/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "joosy"
6
6
  ],
7
- "version": "1.2.0-alpha.32",
7
+ "version": "1.2.0-alpha.33",
8
8
  "author": "Boris Staal <boris@staal.io>",
9
9
  "homepage": "http://joosy.ws/",
10
10
  "repository": {
@@ -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-full.min.js
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', 'stylesheets', 'application.styl'],
24
- ['stylesheets', 'application.styl']
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='./', environment='development') ->
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
- paths = entry.path
100
- paths = [paths] unless Object.isArray(paths)
101
-
102
- for path in paths
103
- server.use path, (req, res, next) ->
104
- if req.originalUrl == path
105
- res.end grunt.joosy.haml.compile("source/"+entry.src, entry.partials)
106
- console.log "Served #{path} (#{entry.src})"
107
- else
108
- next()
109
- console.log "=> Serving #{entry.src} from #{paths.join(', ')}"
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}"
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.32
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