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 +4 -4
- data/bower.json +1 -1
- data/package.json +1 -1
- data/tasks/joosy.coffee +4 -9
- data/templates/application/standalone/Gruntfile.coffee +14 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3437a05649553512d4d976b3a084396bd3391c19
|
4
|
+
data.tar.gz: a3bc00d6bc534cfab1088b09205f8526ce7380ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20c3338848aac91da10b5e8344231ea241111e1e955b739ad8271775c85d67111a26f914c490dd4f98dc1747f7a46972e5c7c69c52b21fd43e6a8c95191f5e8
|
7
|
+
data.tar.gz: 554c527b83f5708b5d3fc9bdd622061b73279f30c21c5dc3af39de0382c9ee4a1ef51f56cd3c7d7901682b850c16065eab111ad6de3dd1e02adfc842872860f6
|
data/bower.json
CHANGED
data/package.json
CHANGED
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 '
|
145
|
+
grunt.registerTask 'compile', ['joosy:assets', 'joosy:haml']
|
151
146
|
|
152
|
-
grunt.registerTask 'joosy:
|
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']
|