-
Notifications
You must be signed in to change notification settings - Fork 62
/
app.coffee
112 lines (104 loc) · 3.1 KB
/
app.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
axis = require 'axis'
rupture = require 'rupture'
autoprefixer = require 'autoprefixer-stylus'
js_pipeline = require 'js-pipeline'
css_pipeline = require 'css-pipeline'
dynamic = require 'dynamic-content'
roots_yaml = require 'roots-yaml'
records = require 'roots-records'
shell = require 'shelljs'
copyLibrary = require './scripts/copy-library'
createThumbs = require './scripts/create-thumbs'
hasRunOnce = false
module.exports =
ignores: [
'readme.md'
'authors_readme.md'
'ship.*conf'
'**/layout.*'
'**/_*'
'.gitignore'
'scripts/**'
'bower.json'
'app.sublime-project'
'spec/**'
'tmp'
'jasmine-runner.js',
'.travis.yml',
'deploy_key*',
'*.zip'
# 'data/**'
]
extensions: [
roots_yaml()
dynamic write: 'content.json'
records git: file: 'public/posts-git.json'
js_pipeline
files: [
'bower_components/fastclick/lib/fastclick.js'
'bower_components/es6-promise/promise.min.js'
'bower_components/fontfaceobserver/fontfaceobserver.js'
'bower_components/isotope/dist/isotope.pkgd.min.js'
'bower_components/lazysizes/lazysizes.min.js'
'bower_components/sweetalert/dist/sweetalert-dev.js'
'bower_components/velocity/velocity.js'
'bower_components/velocity/velocity.ui.js'
# simple no deps
'assets/js/app.coffee'
'assets/js/fonts.coffee'
'assets/js/share.coffee'
'assets/js/track.coffee'
'assets/js/disqus.coffee'
'assets/js/natural-language-form.coffee'
'assets/js/language-selector.coffee'
# classes
'assets/js/grid.coffee'
'assets/js/search.coffee'
# view controllers
'assets/js/feed.coffee'
'assets/js/commit.coffee'
'assets/js/animations.coffee'
'assets/js/text-effect.coffee'
]
css_pipeline
files: [
'bower_components/reflex-grid/css/reflex.css'
'bower_components/sweetalert/dist/sweetalert.css'
'assets/css/master.styl'
]
]
stylus:
use: [
axis()
rupture()
autoprefixer()
]
sourcemap: true
'coffee-script':
sourcemap: true
bare: true
jade:
pretty: true
locals:
env: 'dev'
_: require 'lodash'
moment: require 'moment'
helpers:
getAuthor: require './scripts/get-author'
getAuthorImage: require './scripts/get-author-image'
getCategories: require './scripts/get-categories'
getMergedPosts: require './scripts/get-merged-posts'
getPostGitData: require './scripts/get-post-git-data'
getFeatured: require './scripts/get-featured'
getRelatedPosts: require './scripts/get-related-posts'
socialLink: require './scripts/social-link'
getHeroImage: require './scripts/get-hero-image'
sortByLastName: require './scripts/sort-by-last-name.js'
before: ->
if not hasRunOnce
shell.exec 'npm run posts-git-log'
copyLibrary()
hasRunOnce = true
# createThumbs()
return true
debug: true