mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
81 lines
3.3 KiB
CoffeeScript
81 lines
3.3 KiB
CoffeeScript
sysPath = require 'path'
|
|
startsWith = (string, substring) ->
|
|
string.lastIndexOf(substring, 0) is 0
|
|
|
|
exports.config =
|
|
server:
|
|
path: 'server.coffee'
|
|
paths:
|
|
'public': 'public'
|
|
conventions:
|
|
ignored: (path) -> startsWith(sysPath.basename(path), '_')
|
|
workers:
|
|
enabled: false # turned out to be much, much slower than without workers
|
|
files:
|
|
javascripts:
|
|
defaultExtension: 'coffee'
|
|
joinTo:
|
|
'javascripts/world.js': /^((app(\/|\\)lib(\/|\\)world(?!(\/|\\)test))|(app(\/|\\)lib(\/|\\)CocoClass.coffee)|(app(\/|\\)lib(\/|\\)utils.coffee)|(vendor(\/|\\)scripts(\/|\\)Box2dWeb-2.1.a.3)|(bower_components(\/|\\)lodash(\/|\\)dist(\/|\\)lodash.js)|(vendor(\/|\\)scripts(\/|\\)string_score.js)|(bower_components(\/|\\)aether(\/|\\)build(\/|\\)aether.js))/
|
|
'javascripts/app.js': /^app/
|
|
'javascripts/vendor.js': /^(vendor(\/|\\)(?!(scripts\/Box2d|scripts\/box2d))|bower_components)/
|
|
'javascripts/vendor_with_box2d.js': /^(vendor(\/|\\)(?!scripts\/box2d)|bower_components)/ # include box2dweb for profiling (and for IE9...)
|
|
'test/javascripts/test.js': /^test(\/|\\)(?!vendor)/
|
|
'test/javascripts/test-vendor.js': /^test(\/|\\)(?=vendor)/
|
|
order:
|
|
before: [
|
|
'bower_components/jquery/jquery.js'
|
|
'bower_components/lodash/dist/lodash.js'
|
|
'bower_components/backbone/backbone.js'
|
|
# Twitter Bootstrap jquery plugins
|
|
'vendor/scripts/bootstrap/bootstrap-transition.js'
|
|
'vendor/scripts/bootstrap/bootstrap-affix.js'
|
|
'vendor/scripts/bootstrap/bootstrap-alert.js'
|
|
'vendor/scripts/bootstrap/bootstrap-button.js'
|
|
'vendor/scripts/bootstrap/bootstrap-carousel.js'
|
|
'vendor/scripts/bootstrap/bootstrap-collapse.js'
|
|
'vendor/scripts/bootstrap/bootstrap-dropdown.js'
|
|
'vendor/scripts/bootstrap/bootstrap-modal.js'
|
|
'vendor/scripts/bootstrap/bootstrap-scrollspy.js'
|
|
'vendor/scripts/bootstrap/bootstrap-tab.js'
|
|
'vendor/scripts/bootstrap/bootstrap-tooltip.js'
|
|
'vendor/scripts/bootstrap/bootstrap-popover.js'
|
|
'vendor/scripts/bootstrap/bootstrap-typeahead.js'
|
|
# CreateJS dependencies
|
|
'vendor/scripts/easeljs-NEXT.combined.js'
|
|
'vendor/scripts/preloadjs-NEXT.combined.js'
|
|
'vendor/scripts/soundjs-NEXT.combined.js'
|
|
'vendor/scripts/tweenjs-NEXT.combined.js'
|
|
'vendor/scripts/movieclip-NEXT.min.js'
|
|
|
|
# Aether before box2d for some strange Object.defineProperty thing
|
|
'bower_components/aether/build/aether.js'
|
|
]
|
|
stylesheets:
|
|
defaultExtension: 'sass'
|
|
joinTo:
|
|
'stylesheets/app.css': /^(app|vendor)/
|
|
order:
|
|
before: ['app/styles/bootstrap.scss']
|
|
templates:
|
|
defaultExtension: 'jade'
|
|
joinTo: 'javascripts/app.js'
|
|
framework: 'backbone'
|
|
|
|
plugins:
|
|
coffeelint:
|
|
pattern: /^app\/.*\.coffee$/
|
|
options:
|
|
line_endings:
|
|
value: "unix"
|
|
level: "error"
|
|
max_line_length:
|
|
level: "ignore"
|
|
no_trailing_whitespace:
|
|
level: "ignore" # PyCharm can't just autostrip for .coffee, needed for .jade
|
|
no_unnecessary_fat_arrows:
|
|
level: "ignore"
|
|
# https://gist.github.com/toolmantim/4958966
|
|
uglify:
|
|
output:
|
|
beautify: true
|
|
indent_level: 0
|