Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c45572997f | ||
|
|
59217a5fea | ||
|
|
0b94cc4a1f | ||
|
|
cbf66bf5bb | ||
|
|
8b0cd71bb5 | ||
|
|
0e6d75ec9b | ||
|
|
3ca0dcceed | ||
|
|
89ba3ac48e | ||
|
|
ab96166601 | ||
|
|
dac1a8dceb | ||
|
|
ccb2cad516 | ||
|
|
33479051c8 | ||
|
|
b8a2dae9f2 | ||
|
|
2fd1de40da | ||
|
|
f6f736f8be | ||
|
|
20119cf8e4 | ||
|
|
997ff114b4 | ||
|
|
6d62375c46 | ||
|
|
b4cde5a37b | ||
|
|
5f65f77222 | ||
|
|
8b43c53a9e | ||
|
|
3bc7c4cf89 | ||
|
|
c4ba36b60a | ||
|
|
b05e237aee | ||
|
|
7865ba98c3 | ||
|
|
69e4d968b5 | ||
|
|
bd96bc6575 | ||
|
|
90a41a59f0 | ||
|
|
ebdb6158ba | ||
|
|
407e3fca5d | ||
|
|
3d9895a6d5 | ||
|
|
ee6887e803 | ||
|
|
fb48362a59 | ||
|
|
86a547f422 | ||
|
|
0131c8ff3b | ||
|
|
478364418b | ||
|
|
ed96cf0c71 | ||
|
|
5d8251bebb | ||
|
|
69ca6b06b9 | ||
|
|
7377559f7b | ||
|
|
c0472b268d | ||
|
|
13b717836a | ||
|
|
016c61e983 | ||
|
|
d7743285cb | ||
|
|
cc9232d143 | ||
|
|
a1e7fb4fa0 | ||
|
|
9ac25efb0c | ||
|
|
19a3e9846c | ||
|
|
c5e9920473 | ||
|
|
96b5beeb8c | ||
|
|
d0bca0d2ac | ||
|
|
d102834408 | ||
|
|
00ca88500e | ||
|
|
6a2b3805a2 | ||
|
|
eba8c99ac0 | ||
|
|
b82bfea8f1 | ||
|
|
d0a2292094 | ||
|
|
cb962f6175 | ||
|
|
083cc30eb2 | ||
|
|
22009557d2 | ||
|
|
b34ca26d0a | ||
|
|
23b3f1c7e1 | ||
|
|
6b84698802 | ||
|
|
c85fca8357 | ||
|
|
16848772a3 | ||
|
|
c441d75529 | ||
|
|
1bc89c1c89 | ||
|
|
43202e9917 | ||
|
|
05bc1a271d | ||
|
|
da1419d6b6 | ||
|
|
841fac38d3 | ||
|
|
2b8e23b32f | ||
|
|
5eae2bb488 | ||
|
|
6fa18c764b | ||
|
|
c9796a142d | ||
|
|
0718590f56 | ||
|
|
51f566ebf1 | ||
|
|
d2d904be7f | ||
|
|
088994f366 | ||
|
|
184b64a6af | ||
|
|
4aca035709 | ||
|
|
ebf3443e96 | ||
|
|
fd5372b35d | ||
|
|
f464558cd2 | ||
|
|
e7cd3f0549 | ||
|
|
545408a7e7 | ||
|
|
83156c30c7 | ||
|
|
636a8d061c | ||
|
|
2dbda99986 | ||
|
|
7d83552013 | ||
|
|
35bb12de6a | ||
|
|
1d1772e961 | ||
|
|
6787063ac7 | ||
|
|
9e09b8d87c | ||
|
|
2c77972073 | ||
|
|
31f4594928 | ||
|
|
eb9ac15de8 | ||
|
|
e922f3c5cc | ||
|
|
a8d08b93c5 | ||
|
|
64e118a2c8 | ||
|
|
6671541dcb | ||
|
|
962165dc8e | ||
|
|
f9b65dd892 | ||
|
|
979586d9d3 | ||
|
|
c522e60e28 | ||
|
|
f9cd38947d | ||
|
|
99b6cf2861 | ||
|
|
d925a17940 | ||
|
|
a2bbdf4645 | ||
|
|
93c98e16ac | ||
|
|
88e57b1200 | ||
|
|
1e96cf2d6c | ||
|
|
ccaf8e9842 | ||
|
|
e1f8282049 | ||
|
|
d873c4b7f1 | ||
|
|
3529bccf3a | ||
|
|
29315f03f7 | ||
|
|
5877a3234f | ||
|
|
6650413e59 | ||
|
|
197d7b1e1b | ||
|
|
cdb2989c0a | ||
|
|
76ae358878 | ||
|
|
d47f174848 | ||
|
|
59cc962cc0 | ||
|
|
6a98afa9f2 | ||
|
|
b6d17f985f | ||
|
|
f7fdf71d63 | ||
|
|
a9bf0d1468 | ||
|
|
8bb25cd09a | ||
|
|
2f6af50d4b | ||
|
|
f70dd4a562 | ||
|
|
36a2f47686 | ||
|
|
302050583e | ||
|
|
2e4418d16a | ||
|
|
eef91c4ff7 | ||
|
|
c4cd06b59e | ||
|
|
96db9a07e9 | ||
|
|
ffdfe33b83 | ||
|
|
1f380f981e | ||
|
|
a45082d276 | ||
|
|
8bf15e2224 | ||
|
|
b4714dace1 | ||
|
|
d18cbb407a | ||
|
|
2cc3d04be2 | ||
|
|
e59b541b1b | ||
|
|
7b1930ef5c | ||
|
|
536ff55bd5 | ||
|
|
39ceaa9223 | ||
|
|
c91e0a6019 | ||
|
|
150b9ae0e3 | ||
|
|
c608ad4218 | ||
|
|
fce0f45104 | ||
|
|
2f1793e62a | ||
|
|
1397998ab0 | ||
|
|
a54b57514e | ||
|
|
aa1589f23b | ||
|
|
d3f78e9349 | ||
|
|
a73850897f | ||
|
|
5895ac6d30 | ||
|
|
d69585facd |
@@ -1,9 +1,12 @@
|
|||||||
*.log
|
*.log
|
||||||
|
*.swp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.env
|
||||||
.sass-cache
|
.sass-cache
|
||||||
|
.tm_properties
|
||||||
aws.config
|
aws.config
|
||||||
build
|
build
|
||||||
deploy
|
deploy
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
src/coffee/views.js
|
templates.js
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
2.2.0
|
||||||
@@ -1,62 +1,73 @@
|
|||||||
###
|
#
|
||||||
# Crafting Guide - Gruntfile.coffee
|
# Crafting Guide - Gruntfile.coffee
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 by Redwood Labs
|
# Copyright © 2014-2017 by Redwood Labs
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
###
|
#
|
||||||
|
|
||||||
fs = require 'fs'
|
fs = require 'fs'
|
||||||
util = require 'util'
|
|
||||||
|
|
||||||
########################################################################################################################
|
EXTERNAL_LIBS = [
|
||||||
|
'backbone'
|
||||||
LIBRARY_ALIAS_MAPPING = [
|
'jquery'
|
||||||
'./node_modules/backbone/backbone.js:backbone'
|
'marked'
|
||||||
'./node_modules/jade/runtime.js:jade'
|
'underscore'
|
||||||
'./node_modules/jquery/dist/jquery.js:jquery'
|
'underscore.inflections'
|
||||||
'./node_modules/underscore/underscore.js:underscore'
|
'when'
|
||||||
'./node_modules/when/when.js:when'
|
'./vendor/email.js:emailjs'
|
||||||
]
|
]
|
||||||
|
|
||||||
LIBRARIES = (s.substring(0, s.indexOf(':')) for s in LIBRARY_ALIAS_MAPPING)
|
########################################################################################################################
|
||||||
ALIASES = (s.substring(s.indexOf(':') + 1) for s in LIBRARY_ALIAS_MAPPING)
|
|
||||||
|
|
||||||
module.exports = (grunt)->
|
module.exports = (grunt)->
|
||||||
|
|
||||||
grunt.loadTasks tasks for tasks in grunt.file.expand './node_modules/grunt-*/tasks'
|
grunt.loadTasks tasks for tasks in grunt.file.expand './node_modules/grunt-*/tasks'
|
||||||
|
|
||||||
grunt.config.init
|
grunt.config.init
|
||||||
browserify:
|
|
||||||
dev:
|
|
||||||
options:
|
|
||||||
browserifyOptions:
|
|
||||||
debug: true
|
|
||||||
extensions: ['.coffee']
|
|
||||||
transform: ['coffeeify']
|
|
||||||
files: './dist/js/main.js': ['./src/coffee/main.coffee']
|
|
||||||
prod:
|
|
||||||
options:
|
|
||||||
browserifyOptions:
|
|
||||||
extensions: ['.coffee']
|
|
||||||
transform: ['coffeeify']
|
|
||||||
files: './dist/js/main.js': ['./src/coffee/main.coffee']
|
|
||||||
|
|
||||||
coffee:
|
compress:
|
||||||
dev:
|
static:
|
||||||
options:
|
options:
|
||||||
sourceMap: true
|
mode: 'gzip'
|
||||||
files: [expand:true, cwd:'./src/coffee', src:'**/*.coffee', dest:'./dist', ext:'.js']
|
files: [
|
||||||
|
{expand: true, cwd:'./build/static', src:'**/*.css', dest:'./dist/'}
|
||||||
clean:
|
{expand: true, cwd:'./build/static', src:['**/*.html', '!**/index.html'], dest:'./dist/'}
|
||||||
dist: ['./dist']
|
{expand: true, cwd:'./build/static', src:'**/*.ugly.js', dest:'./dist/', ext: '.js'}
|
||||||
|
{expand: true, cwd:'./build/static', src:'**/*.json', dest:'./dist/'}
|
||||||
|
{expand: true, cwd:'./build/static', src:'**/*.ttf', dest:'./dist/'}
|
||||||
|
{expand: true, cwd:'./build/static', src:'**/*.txt', dest:'./dist/'}
|
||||||
|
]
|
||||||
|
|
||||||
copy:
|
copy:
|
||||||
styles:
|
assets_build:
|
||||||
files: [expand:true, cwd:'./src/css', src:'**/*.scss', dest:'./dist/src/css']
|
files: [
|
||||||
|
{expand:true, cwd:'./assets/', src:'**/*', dest:'./build/static'}
|
||||||
|
]
|
||||||
|
env_build:
|
||||||
|
files: [
|
||||||
|
{expand:true, cwd:'.', src:'.env', dest:'./build'}
|
||||||
|
]
|
||||||
|
build_to_dist:
|
||||||
|
files: [
|
||||||
|
expand: true
|
||||||
|
cwd: './build/static/'
|
||||||
|
src: ['**/*', '!**/*.map', '!**/*.js', '!index.html']
|
||||||
|
dest: './dist'
|
||||||
|
]
|
||||||
|
common_source:
|
||||||
|
files: [
|
||||||
|
{expand:true, cwd:'./src/common', src:'**/*.coffee', dest:'./build', ext:'.coffee'}
|
||||||
|
]
|
||||||
|
server_source:
|
||||||
|
files: [
|
||||||
|
{expand:true, cwd:'./src/server', src:'**/*.coffee', dest:'./build', ext:'.coffee'}
|
||||||
|
]
|
||||||
|
|
||||||
exorcise:
|
clean:
|
||||||
dev:
|
assets: ['./build/static/data', './build/static/images']
|
||||||
files: './dist/js/main.js.map': ['./dist/js/main.js']
|
build: ['./build']
|
||||||
|
dist: ['./dist']
|
||||||
|
templates: ['./src/client/site/templates.js']
|
||||||
|
|
||||||
jade:
|
jade:
|
||||||
pages:
|
pages:
|
||||||
@@ -64,53 +75,53 @@ module.exports = (grunt)->
|
|||||||
pretty: true
|
pretty: true
|
||||||
files: [
|
files: [
|
||||||
expand: true
|
expand: true
|
||||||
cwd: './src/jade'
|
cwd: './src/client/site'
|
||||||
src: '*.jade'
|
src: '**/index.jade'
|
||||||
dest: './dist'
|
dest: './build/static'
|
||||||
ext: '.html'
|
ext: '.html'
|
||||||
]
|
]
|
||||||
|
|
||||||
templates:
|
templates:
|
||||||
options:
|
options:
|
||||||
client: true
|
client: true
|
||||||
node: true
|
node: true
|
||||||
processName: (f)->
|
processName: (path)->
|
||||||
f = f.replace './src/jade/templates/', ''
|
pathElements = path.split '\/'
|
||||||
f = f.replace '.jade', ''
|
while true
|
||||||
f = f.replace /\//g, '_'
|
element = pathElements.shift()
|
||||||
return f
|
break if element is 'site'
|
||||||
|
pathElements.pop()
|
||||||
|
name = pathElements.join '/'
|
||||||
|
name = name.replace '.jade', ''
|
||||||
|
return name
|
||||||
files:
|
files:
|
||||||
'./src/coffee/views.js': ['./src/jade/templates/**/*.jade']
|
'./src/client/site/templates.js': ['./src/client/site/**/!(index)*.jade']
|
||||||
|
|
||||||
mochaTest:
|
mochaTest:
|
||||||
options:
|
options:
|
||||||
bail: true
|
bail: false
|
||||||
color: true
|
color: true
|
||||||
reporter: 'dot'
|
reporter: 'list'
|
||||||
require: [
|
require: [
|
||||||
'coffee-script/register'
|
'coffee-script/register'
|
||||||
'./test/test_helper.coffee'
|
'./src/test_helper.coffee'
|
||||||
]
|
]
|
||||||
verbose: true
|
verbose: true
|
||||||
src: ['./test/**/*.test.coffee']
|
src: ['./src/**/*.test.coffee']
|
||||||
|
|
||||||
rsync:
|
|
||||||
static:
|
|
||||||
options:
|
|
||||||
src: './static/'
|
|
||||||
dest: './dist/'
|
|
||||||
recursive: true
|
|
||||||
|
|
||||||
sass:
|
sass:
|
||||||
build:
|
all:
|
||||||
files:
|
|
||||||
'./dist/css/main.css': ['./src/scss/main.scss']
|
|
||||||
dist:
|
|
||||||
options:
|
options:
|
||||||
sourcemap: 'none'
|
sourcemap: 'none'
|
||||||
style: 'compressed'
|
|
||||||
files:
|
files:
|
||||||
'./dist/css/main.css': ['./src/scss/main.scss']
|
'./build/static/main.css': [ './build/imports.scss' ]
|
||||||
|
|
||||||
|
sass_globbing:
|
||||||
|
all:
|
||||||
|
files:
|
||||||
|
'./build/imports.scss': [
|
||||||
|
'./src/client/styles/main.scss'
|
||||||
|
'./src/client/site/**/*.scss'
|
||||||
|
]
|
||||||
|
|
||||||
uglify:
|
uglify:
|
||||||
scripts:
|
scripts:
|
||||||
@@ -118,46 +129,150 @@ module.exports = (grunt)->
|
|||||||
maxLineLen: 20
|
maxLineLen: 20
|
||||||
files: [
|
files: [
|
||||||
expand: true
|
expand: true
|
||||||
cwd: './dist/js'
|
cwd: './build/static'
|
||||||
src: '**/*.js'
|
src: '**/*.js'
|
||||||
dest: './dist/js'
|
dest: './build/static'
|
||||||
|
ext: '.ugly.js'
|
||||||
]
|
]
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
static:
|
assets:
|
||||||
files: ['./static/**/*']
|
files: ['./assets/**/*']
|
||||||
tasks: ['rsync:static']
|
tasks: ['copy:assets_build']
|
||||||
coffee:
|
client_source:
|
||||||
files: ['./src/**/*.coffee', './src/**/*.js']
|
files: ['./src/{client,common}/**/*.coffee']
|
||||||
tasks: ['browserify:dev', 'exorcise']
|
tasks: ['browserify:internal']
|
||||||
jade:
|
server_source:
|
||||||
files: ['./src/**/*.jade']
|
files: ['./src/{common,server}/**/*.coffee']
|
||||||
tasks: ['jade:pages', 'jade:templates']
|
tasks: ['copy:server_source']
|
||||||
|
jade_pages:
|
||||||
|
files: ['./src/**/index.jade']
|
||||||
|
tasks: ['jade:pages']
|
||||||
|
jade_templates:
|
||||||
|
files: ['./src/**/!(index).jade']
|
||||||
|
tasks: ['jade:templates', 'browserify:internal']
|
||||||
sass:
|
sass:
|
||||||
files: ['./src/**/*.scss']
|
files: ['./src/**/*.scss']
|
||||||
tasks: ['sass', 'copy:styles']
|
tasks: ['sass']
|
||||||
test:
|
test:
|
||||||
files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee']
|
files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee']
|
||||||
tasks: ['test']
|
tasks: ['script:clear', 'test']
|
||||||
|
|
||||||
grunt.registerTask 'default', 'build'
|
# Compound Tasks ###################################################################################################
|
||||||
|
|
||||||
grunt.registerTask 'build', ['rsync', 'sass:build', 'jade', 'copy', 'browserify:dev', 'exorcise']
|
grunt.registerTask 'build', 'build the project to be run from a local server',
|
||||||
|
['jade', 'build:copy', 'build:css', 'browserify:external', 'browserify:internal']
|
||||||
|
|
||||||
grunt.registerTask 'dist', ['rsync', 'sass:dist', 'jade', 'copy', 'browserify:prod', 'uglify']
|
grunt.registerTask 'build:copy', 'helper task for build',
|
||||||
|
['copy:assets_build', 'copy:env_build', 'copy:common_source', 'copy:server_source']
|
||||||
|
|
||||||
grunt.registerTask 'prepublish', ['clean', 'coffee']
|
grunt.registerTask 'build:css', 'helper task for build',
|
||||||
|
['sass_globbing', 'sass']
|
||||||
|
|
||||||
grunt.registerTask 'use-local-deps', ->
|
grunt.registerTask 'default', 'rebuild the project from scratch and start a local HTTP server',
|
||||||
grunt.file.mkdir './node_modules'
|
['clean', 'start']
|
||||||
grunt.file.delete './node_modules/crafting-guide-common', force:true
|
|
||||||
fs.symlinkSync '../../crafting-guide-common/', './node_modules/crafting-guide-common'
|
|
||||||
|
|
||||||
grunt.registerTask 'test', ['mochaTest']
|
grunt.registerTask 'deploy', 'deploy to both staging and production via CircleCI',
|
||||||
|
['deploy:staging', 'deploy:prod']
|
||||||
|
|
||||||
grunt.registerTask 'watch-dev', ['clean', 'build', 'watch']
|
grunt.registerTask 'deploy:prod', 'deploy the project to production via CircleCI',
|
||||||
|
['script:deploy:prod']
|
||||||
|
|
||||||
grunt.registerTask 'watch-test', ['clean', 'build', 'watch:test']
|
grunt.registerTask 'deploy:staging', 'deploy the project to staging via CircleCI',
|
||||||
|
['script:deploy:staging']
|
||||||
|
|
||||||
|
grunt.registerTask 'dist', 'build the project to be run from Amazon S3',
|
||||||
|
['build', 'copy:build_to_dist', 'uglify', 'compress']
|
||||||
|
|
||||||
|
grunt.registerTask 'publish', 'publish the project to NPM',
|
||||||
|
['prepublish', 'script:publish', 'clean', 'build']
|
||||||
|
|
||||||
|
grunt.registerTask 'start', 'build the project and start a local HTTP server',
|
||||||
|
['script:start']
|
||||||
|
|
||||||
|
grunt.registerTask 'test', 'run unit tests',
|
||||||
|
['mochaTest']
|
||||||
|
|
||||||
|
grunt.registerTask 'upload:prod', 'upload the project to the production Amazon S3 environment',
|
||||||
|
['dist', 'script:s3_upload:prod']
|
||||||
|
|
||||||
|
grunt.registerTask 'upload:staging', 'upload the project the staging Amazon S3 environment',
|
||||||
|
['dist', 'script:s3_upload:staging']
|
||||||
|
|
||||||
|
grunt.registerTask 'use-local-deps', 'use local dependencies instead of NPM dependencies',
|
||||||
|
['script:use_local_deps']
|
||||||
|
|
||||||
|
# Code Tasks #######################################################################################################
|
||||||
|
|
||||||
|
grunt.registerTask 'browserify:external', "Bundle 3rd-party libraries used in the app", ->
|
||||||
|
grunt.file.mkdir './build/static'
|
||||||
|
done = this.async()
|
||||||
|
|
||||||
|
args = [].concat ("--require=#{lib}" for lib in EXTERNAL_LIBS), [
|
||||||
|
'--outfile=./build/static/external.js'
|
||||||
|
]
|
||||||
|
|
||||||
|
options = cmd:'browserify', args:args
|
||||||
|
grunt.util.spawn options, (error)->
|
||||||
|
console.log error if error?
|
||||||
|
done()
|
||||||
|
|
||||||
|
grunt.registerTask 'browserify:internal', "Bundle source files needed in the browser", ->
|
||||||
|
grunt.file.mkdir './build/static'
|
||||||
|
done = this.async()
|
||||||
|
|
||||||
|
libs = []
|
||||||
|
for lib in EXTERNAL_LIBS
|
||||||
|
parts = lib.split ':'
|
||||||
|
libs.push parts[parts.length-1]
|
||||||
|
|
||||||
|
args = [].concat ("--external=#{lib}" for lib in libs), [
|
||||||
|
'--extension=.coffee'
|
||||||
|
'--outfile=./build/static/internal.js'
|
||||||
|
'--transform=coffeeify'
|
||||||
|
'./src/client/client.coffee'
|
||||||
|
]
|
||||||
|
|
||||||
|
options = cmd:'browserify', args:args
|
||||||
|
grunt.util.spawn options, (error)->
|
||||||
|
console.log error if error?
|
||||||
|
done()
|
||||||
|
|
||||||
|
# Script Tasks #####################################################################################################
|
||||||
|
|
||||||
|
grunt.registerTask 'script:clear', "clear the current terminal buffer", ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/clear_buffer', opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:deploy:staging', "deploy code by copying to the staging branch", ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/deploy', args:['--staging'], opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:publish', 'publishes this package to NPM', ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/publish', opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:s3_upload:staging', 'uploads all static content to S3', ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--staging'], opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:start', "start a local HTTP server on port 8080", ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/start', opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
grunt.registerTask 'script:use_local_deps', "use local dependencies instead of NPM dependencies", ->
|
||||||
|
done = this.async()
|
||||||
|
grunt.util.spawn cmd:'./scripts/use_local_deps', opts:{stdio:'inherit'}, (error)-> done(error)
|
||||||
|
|
||||||
|
# Command-Line Argument Processing #################################################################################
|
||||||
|
|
||||||
args = process.argv[..]
|
args = process.argv[..]
|
||||||
while args.length > 0
|
while args.length > 0
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
google-site-verification: google077275160ac09f2f.html
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 253 B |
|
After Width: | Height: | Size: 335 B |
|
After Width: | Height: | Size: 957 B |
|
After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 801 B |
|
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 860 B |
|
After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 723 B |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 300 B |
@@ -1,12 +1,15 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
- gem install sass --version ">= 3.4"
|
- gem install sass --version "= 3.4"
|
||||||
|
- sudo -H pip install s3cmd
|
||||||
|
- npm install -g browserify
|
||||||
|
- npm install -g grunt-cli
|
||||||
deployment:
|
deployment:
|
||||||
staging:
|
staging:
|
||||||
branch: master
|
branch: staging
|
||||||
commands:
|
commands:
|
||||||
- ./scripts/deploy --staging
|
- grunt upload:staging
|
||||||
production:
|
production:
|
||||||
branch: production
|
branch: production
|
||||||
commands:
|
commands:
|
||||||
- ./scripts/deploy --production
|
- grunt upload:prod
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 253 B |
|
Before Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 256 B |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 460 B |
|
Before Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 630 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 38 KiB |