joosy 1.2.0.alpha.27 → 1.2.0.alpha.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 445715a823b5e9524c6cd2619b390ff7c44fa046
4
- data.tar.gz: 760917203bffb205418dd1c7566f71384d7ff712
3
+ metadata.gz: 3437a05649553512d4d976b3a084396bd3391c19
4
+ data.tar.gz: a3bc00d6bc534cfab1088b09205f8526ce7380ea
5
5
  SHA512:
6
- metadata.gz: d94e2669db0419d20268e0b615456e9046fb51efe44ce9c12b892f96d3a27587b172a7d36d07f91679c2956d6e9e3b7a5d8dad39bac309ebc2e530e97f794f9a
7
- data.tar.gz: a873ba2dc170f0619ea90b6e5c96489bed49149f46c3280db97ce67ea9c17b4f6a31d8215f53da6642197b9cccd26e1c5de414eac6cd340c38569dc9fb9510db
6
+ metadata.gz: e20c3338848aac91da10b5e8344231ea241111e1e955b739ad8271775c85d67111a26f914c490dd4f98dc1747f7a46972e5c7c69c52b21fd43e6a8c95191f5e8
7
+ data.tar.gz: 554c527b83f5708b5d3fc9bdd622061b73279f30c21c5dc3af39de0382c9ee4a1ef51f56cd3c7d7901682b850c16065eab111ad6de3dd1e02adfc842872860f6
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joosy",
3
- "version": "1.2.0-alpha.27",
3
+ "version": "1.2.0-alpha.28",
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.27",
7
+ "version": "1.2.0-alpha.28",
8
8
  "author": "Boris Staal <boris@staal.io>",
9
9
  "homepage": "http://joosy.ws/",
10
10
  "repository": {
data/tasks/joosy.coffee CHANGED
@@ -66,7 +66,7 @@ module.exports = (grunt) ->
66
66
  setup?(server)
67
67
  server.listen port
68
68
 
69
- console.log "=> Started on 4000"
69
+ console.log "=> Started on 4000\n"
70
70
 
71
71
  serveProxied: (server, map) ->
72
72
  URL = require 'url'
@@ -93,12 +93,11 @@ module.exports = (grunt) ->
93
93
  serveHAML: (server, path='/', source='source/index.haml') ->
94
94
  server.use path, (req, res, next) ->
95
95
  if req.url == path
96
+ console.log "Served #{path} (#{source})"
96
97
  res.end grunt.joosy.haml.compile(source)
97
98
  else
98
99
  next()
99
100
 
100
- console.log "=> Serving HAML at #{path} from #{source}"
101
-
102
101
  serveStatic: (server, compress=false) ->
103
102
  Gzippo = require 'gzippo'
104
103
 
@@ -111,10 +110,6 @@ module.exports = (grunt) ->
111
110
 
112
111
  bower: -> require('bower')
113
112
 
114
- # Dependencies
115
- grunt.loadNpmTasks 'grunt-contrib-uglify'
116
- grunt.loadNpmTasks 'grunt-contrib-cssmin'
117
-
118
113
  # Tasks
119
114
  grunt.registerTask 'joosy:postinstall', ->
120
115
  complete = @async()
@@ -147,9 +142,9 @@ module.exports = (grunt) ->
147
142
  grunt.joosy.server.start process.env['PORT'] ? 4000, (server) ->
148
143
  grunt.joosy.server.serveStatic server, true
149
144
 
150
- grunt.registerTask 'joosy:compile', ['joosy:mince', 'joosy:haml', 'uglify', 'cssmin']
145
+ grunt.registerTask 'compile', ['joosy:assets', 'joosy:haml']
151
146
 
152
- grunt.registerTask 'joosy:mince', ->
147
+ grunt.registerTask 'joosy:assets', ->
153
148
  complete = @async()
154
149
  assets = grunt.joosy.helpers.list(@, 'joosy.assets', @args[0])
155
150
 
@@ -1,10 +1,16 @@
1
1
  module.exports = (grunt) ->
2
2
 
3
3
  grunt.loadNpmTasks 'joosy'
4
+ grunt.loadNpmTasks 'grunt-contrib-uglify'
5
+ grunt.loadNpmTasks 'grunt-contrib-cssmin'
4
6
 
7
+ #
8
+ # Config
9
+ #
5
10
  grunt.initConfig
6
11
  joosy:
7
- config: {}
12
+ # config: require('./config.json')
13
+ # proxy: [ {'/joosy': 'http://joosy.ws'} ]
8
14
  assets:
9
15
  application:
10
16
  src: 'application.coffee'
@@ -27,4 +33,10 @@ module.exports = (grunt) ->
27
33
  cssmin:
28
34
  styles:
29
35
  files:
30
- 'public/assets/application.css': 'public/assets/application.css'
36
+ 'public/assets/application.css': 'public/assets/application.css'
37
+
38
+ #
39
+ # Tasks
40
+ #
41
+ grunt.registerTask 'compile', ['joosy:compile', 'uglify', 'cssmin']
42
+ grunt.registerTask 'server', ['joosy:server']
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.27
4
+ version: 1.2.0.alpha.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal