carte-server 1.0.3 → 1.0.4

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: 5d627264b098da3a8b6d96ef0027c2a94f091228
4
- data.tar.gz: 7dfa8e2bf4c48e43604fb80ea87228481bf0c142
3
+ metadata.gz: 70c68e36781046f2a1f96c0d297f3358eae30633
4
+ data.tar.gz: 6f3e0b282e45e81c7d7df7e6c5d51e206d3bebe5
5
5
  SHA512:
6
- metadata.gz: c0afc72a2bd89d12ad48cdaf487caaff9e77fbca127593ee221c9b3bcc7d70f85a7721929f2069e522ae5c511aac16adb8190e8e127c71cb4fe8c44654346676
7
- data.tar.gz: e0abdf88d65244051e3af4cb5d6769c6fa967c6bf07cef129f5e43edf1925a613d3cd811a88e976715bc96cd7d42f3ecd362f4323e699148f173a9e7004fb606
6
+ metadata.gz: d59444e47d51ea1f5ccae541bc9f90017a47592d513852ce8e66088b0e06490e33e97ab14097b85c78b31f92c67f63a5c232531a31f850bd889a6e0ae246c01f
7
+ data.tar.gz: da149d7fbec0054798a1b928c2280953f8e05c82b2e746f3373615b234a2ce71323d8c552ee7a4782ed35bcf8199d25d49be0054788d872f25270baa6dcba6ac
data/.gitignore CHANGED
@@ -12,8 +12,7 @@
12
12
  *.a
13
13
  mkmf.log
14
14
  /node_modules/
15
- /public/app.js
16
- /public/app.html
15
+ /public/app.*
17
16
  /public/vendor
18
17
  /lib/carte/shared/custom.json
19
18
  .env
data/config.ru CHANGED
@@ -13,7 +13,7 @@ end
13
13
  map('/') do
14
14
  use Rack::Deflater
15
15
  use Rack::Static, urls: [""], root: $config['root_dir'], index: $config['html_path']
16
- run Rack::Directory.new $config['root_dir']
16
+ run lambda {}
17
17
  end
18
18
 
19
19
  map('/api') do
@@ -1,5 +1,5 @@
1
1
  doctype html
2
- html
2
+ html(manifest="app.manifest")
3
3
  head
4
4
  meta(charset="utf-8")
5
5
  meta(name="viewport",content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui")
@@ -14,6 +14,7 @@ browserifyCss = require 'browserify-css'
14
14
  _ = require 'lodash'
15
15
  jade = require 'gulp-jade'
16
16
  rename = require 'gulp-rename'
17
+ manifest = require 'gulp-manifest'
17
18
 
18
19
  module.exports = class Carte
19
20
  watching: false
@@ -23,8 +24,8 @@ module.exports = class Carte
23
24
  fs.writeFileSync(__dirname + '/../shared/custom.json', JSON.stringify(custom))
24
25
 
25
26
  gulp.task 'watching', => @watching = true
26
- gulp.task 'build', ['build:html', 'build:script']
27
- gulp.task 'watch', ['watching', 'build:html', 'build:script']
27
+ gulp.task 'build', ['build:html', 'build:script', 'build:manifest']
28
+ gulp.task 'watch', ['watching', 'build:html', 'build:script', 'build:manifest']
28
29
 
29
30
  gulp.task 'build:html', =>
30
31
  _config = require('./config')
@@ -33,6 +34,17 @@ module.exports = class Carte
33
34
  .pipe rename(_config.html_path)
34
35
  .pipe gulp.dest(_config.root_dir)
35
36
 
37
+ gulp.task 'build:manifest', =>
38
+ _config = require('./config')
39
+ gulp.src([_config.root_dir + '/**'])
40
+ .pipe manifest
41
+ hash: true
42
+ preferOnline: true
43
+ network: ['http://*', 'https://*', '*']
44
+ filename: 'app.manifest'
45
+ exclude: 'app.manifest'
46
+ .pipe gulp.dest(_config.root_dir)
47
+
36
48
  gulp.task 'build:script', =>
37
49
  @buildScript config: config
38
50
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "carte-client",
3
3
  "description": "something like dictionary, wiki, or information card",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "lib/carte.coffee",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -33,6 +33,7 @@
33
33
  "gulp-gzip": "^1.1.0",
34
34
  "gulp-if": "^1.2.5",
35
35
  "gulp-jade": "^1.0.0",
36
+ "gulp-manifest": "0.0.6",
36
37
  "gulp-rename": "^1.2.2",
37
38
  "gulp-streamify": "0.0.5",
38
39
  "gulp-uglify": "^1.2.0",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carte-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tily
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler