Skip to content

Commit

Permalink
Prepare for conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Mick committed Apr 8, 2015
1 parent 25514f1 commit 6dd4589
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@ build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
node_modules
bower_components

# Debug log from npm
npm-debug.log

_app
nohup.out
.#nohup.out
97 changes: 97 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
'use strict'
#
# FastChat
# 2015
#

module.exports = (grunt)->
grunt.initConfig
build:
app: 'app'
compiled:
app: '_app'
pkg: grunt.file.readJSON('package.json')
env: '<% process.env.NODE_ENV %>'
clean: ['<%= build.compiled.app %>']
copy:
images:
files: [
{
expand: yes
cwd: '<%= build.app %>/img'
src: ['**/*.{png,jpg,jpeg,gif,svg}']
dest: '<%= build.compiled.app %>/img'
}
]
jade:
compile:
options:
client: no
amd: no
namespace: no
pretty: yes
data: '<%= context %>'
files: [
{
expand: yes
cwd: '<%= build.app %>'
src: ['**/*.jade']
dest: '<%= build.compiled.app %>'
ext: '.html'
}
]
coffee:
all:
options: {}
files: [
{
expand: yes
cwd: '<%= build.app %>'
src: ['**/*.coffee']
dest: '<%= build.compiled.app %>/'
ext: '.js'
}
]
less:
all:
options: {}
files: [
{
expand: yes
cwd: '<%= build.app %>'
src: ['**/*.less']
dest: '<%= build.compiled.app %>/'
ext: '.css'
}
]
bower_concat:
all:
dest: '<%= build.compiled.app %>/js/scripts/compiled.js'
cssDest: '<%= build.compiled.app %>/css/compiled.css'
watch:
options:
livereload: yes
jade:
tasks: ['jade']
files: ['<%= build.app %>/**/*.jade']
coffee:
tasks: ['coffee']
files: ['<%= build.app %>/**/*.coffee']
less:
tasks: ['less']
files: ['<%= build.app %>/**/*.less']
images:
tasks: ['copy:images']
files: ['<%= build.app %>/**/*.{png,svg,jpg,jpeg,gif}']


require('load-grunt-tasks')(grunt)
grunt.registerTask('default', [])
grunt.registerTask 'compile', [
'clean'
'jade'
'bower_concat'
'coffee'
'less'
'copy:images'
]
Empty file modified app/index.html
100755 → 100644
Empty file.
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,26 @@
"dependencies" : {
},
"devDependencies": {
"bower": "1.3.12",
"chai": "2.1.2",
"coffee-script": "1.9.1",
"coffeelint": "1.9.2",
"coffeelint-use-strict": "0.0.1",
"david": "6.1.5",
"grunt": "0.4.5",
"grunt-bower-concat": "0.4.0",
"grunt-cli": "0.1.13",
"grunt-contrib-clean": "0.6.0",
"grunt-contrib-coffee": "0.12.0",
"grunt-contrib-concat": "0.5.0",
"grunt-contrib-copy": "0.7.0",
"grunt-contrib-jade": "0.14.0",
"grunt-contrib-less": "1.0.0",
"grunt-contrib-uglify": "0.5.0",
"grunt-contrib-watch": "0.6.1",
"load-grunt-tasks": "2.0.0",
"mocha": "2.1.0",
"sinon": "1.10.3",
"travis-cov": "0.2.5"
}
}

0 comments on commit 6dd4589

Please sign in to comment.