-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathapp.production.coffee
More file actions
131 lines (122 loc) · 3.91 KB
/
app.production.coffee
File metadata and controls
131 lines (122 loc) · 3.91 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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'
# hash = (new Date()).valueOf().toString()
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'
'assets/js/ga-prod.coffee'
'assets/js/elqQ.coffee'
]
out: "js/app.js"
minify: true
hash: false
css_pipeline
files: [
'bower_components/reflex-grid/css/reflex.css'
'assets/css/guide.styl'
]
out: 'css/guide.css'
minify: true
hash: false
opts:
keepSpecialComments: 0
css_pipeline
files: [
'bower_components/reflex-grid/css/reflex.css'
'bower_components/sweetalert/dist/sweetalert.css'
'assets/css/master.styl'
]
out: "css/app.css"
minify: true
hash: false
opts:
keepSpecialComments: 0
]
stylus:
"include-css": true
use: [
axis()
rupture()
autoprefixer()
]
'coffee-script':
bare: true
locals:
env: 'prod'
timestamp: Math.round(new Date().getTime()/1000)
_: 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: ->
shell.exec 'npm run posts-git-log'
copyLibrary()
createThumbs()
after: ->
shell.exec "node_modules/purify-css/bin/purifycss public/css/app.css public/index.html public/feed.html public/about.html public/authors.html public/commit.html public/posts/argyleink/webviews.html public/js/app.js --info --out public/css/app.css"
shell.exec "node_modules/csso/bin/csso public/css/app.css public/css/app.css"
shell.exec 'cp -R posts/* public/posts'