Skip to content

Commit

Permalink
Updated base files
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jun 16, 2014
1 parent 98f9e60 commit 5cdd52e
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
@@ -0,0 +1,18 @@
# v1.3.18 June 8, 2014
# https://github.com/bevry/base
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
indent_style = tab

[*.json]
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2
63 changes: 63 additions & 0 deletions .jshintrc
@@ -0,0 +1,63 @@
{
// enforcing options
"bitwise": true,
"camelcase": true,
"curly": false, // we like one liners
"eqeqeq": true,
"es3": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 1, // we use tabs
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"plusplus": false, // we are good at js
"quotmark": false, // we like flexibility
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"maxparams": false, // no
"maxdepth": false, // no
"maxstatements": false, // no
"maxcomplexity": false, // no
"maxlen": false, // no

// relaxing options
"asi": true, // we use asi
"boss": true, // we understand assignments
"debug": false,
"eqnull": true, // we know how to do null/undefined checks
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"gcl": true,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"moz": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"smarttabs": false, // default; spaces should only be mixed with tabs after words
"shadow": false,
"sub": false,
"supernew": false,
"noyield": false,

// environments
"browser": true,
"node": true,

// legacy
"onevar": false
}
7 changes: 5 additions & 2 deletions .npmignore
@@ -1,4 +1,4 @@
# v1.3.10 December 10, 2013
# v1.3.18 June 8, 2014
# https://github.com/bevry/base

# Temp Files
Expand All @@ -12,6 +12,9 @@ bower_components/
node_modules/

# Development Files
.editorconfig
.jshintrc
coffeelint.json
.travis*
Cakefile
Makefile
Expand All @@ -29,4 +32,4 @@ bower.json
# =====================================
# CUSTOM MODIFICATIONS

# None
test-web/
25 changes: 16 additions & 9 deletions Cakefile
@@ -1,4 +1,4 @@
# v1.3.16 May 23, 2014
# v1.3.20 June 16, 2014
# https://github.com/bevry/base


Expand All @@ -18,7 +18,7 @@ NPM = (if WINDOWS then process.execPath.replace('node.exe', 'npm.cm
EXT = (if WINDOWS then '.cmd' else '')
GIT = "git"

APP_PATH = process.cwd()
APP_PATH = process.cwd()
PACKAGE_PATH = pathUtil.join(APP_PATH, "package.json")
PACKAGE_DATA = require(PACKAGE_PATH)

Expand All @@ -29,15 +29,18 @@ COFFEE = pathUtil.join(MODULES_PATH, "coffee-script/bin/coffee")
PROJECTZ = pathUtil.join(MODULES_PATH, "projectz/bin/projectz")
DOCCO = pathUtil.join(MODULES_PATH, "docco/bin/docco")
DOCPAD = pathUtil.join(MODULES_PATH, "docpad/bin/docpad")
BISCOTTO = pathUtil.join(MODULES_PATH, "biscotto/bin/biscotto")

config = {}
config.TEST_PATH = "test"
config.DOCCO_SRC_PATH = null
config.DOCCO_OUT_PATH = "docs"
config.COFFEE_SRC_PATH = null
config.COFFEE_OUT_PATH = "out"
config.DOCPAD_SRC_PATH = null
config.DOCPAD_OUT_PATH = "out"
config.TEST_PATH = "test"
config.DOCCO_SRC_PATH = null
config.DOCCO_OUT_PATH = "docs"
config.BISCOTTO_SRC_PATH = null
config.BISCOTTO_OUT_PATH = "docs"
config.COFFEE_SRC_PATH = null
config.COFFEE_OUT_PATH = "out"
config.DOCPAD_SRC_PATH = null
config.DOCPAD_OUT_PATH = "out"

for own key,value of (PACKAGE_DATA.cakeConfiguration or {})
config[key] = value
Expand Down Expand Up @@ -198,6 +201,10 @@ actions =
console.log('docco compile')
exec("#{NODE} #{DOCCO} -o #{config.DOCCO_OUT_PATH} #{config.DOCCO_SRC_PATH}", {stdio:'inherit', cwd:APP_PATH}, safe next, step4)
step4 = ->
return step5() if !config.BISCOTTO_SRC_PATH or !fsUtil.existsSync(BISCOTTO)
console.log('biscotto compile')
exec("""#{BISCOTTO} --name #{PACKAGE_DATA.title or PACKAGE_DATA.name} --title "#{PACKAGE_DATA.title or PACKAGE_DATA.name} API Documentation" --readme README.md --output-dir #{config.BISCOTTO_OUT_PATH} #{config.BISCOTTO_SRC_PATH} - LICENSE.md HISTORY.md""", {stdio:'inherit', cwd:APP_PATH}, safe next, step5)
step5 = ->
console.log('cake test')
actions.test(opts, safe next, step5)
step5 = next
Expand Down
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -35,6 +35,15 @@ Joe is a JavaScript testing framework that actually works. Unlike Mocha, we won'
- Use: `require('joe')`
- Install: `npm install --save joe`

### [Browserify](http://browserify.org/)
- Use: `require('joe')`
- Install: `npm install --save joe`
- CDN URL: `//wzrd.in/bundle/joe@1.5.0`

### [Ender](http://ender.jit.su/)
- Use: `require('joe')`
- Install: `ender add joe`

<!-- /INSTALL -->


Expand Down
114 changes: 114 additions & 0 deletions coffeelint.json
@@ -0,0 +1,114 @@
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "error"
},
"no_tabs": {
"name": "no_tabs",
"level": "ignore"
},
"no_trailing_whitespace": {
"name": "no_trailing_whitespace",
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": true
},
"max_line_length": {
"name": "max_line_length",
"value": 80,
"level": "ignore",
"limitComments": true
},
"line_endings": {
"name": "line_endings",
"level": "error",
"value": "unix"
},
"no_trailing_semicolons": {
"name": "no_trailing_semicolons",
"level": "error"
},
"indentation": {
"name": "indentation",
"value": 1,
"level": "error"
},
"camel_case_classes": {
"name": "camel_case_classes",
"level": "error"
},
"colon_assignment_spacing": {
"name": "colon_assignment_spacing",
"level": "ignore",
"spacing": {
"left": 0,
"right": 0
}
},
"no_implicit_braces": {
"name": "no_implicit_braces",
"level": "ignore",
"strict": true
},
"no_plusplus": {
"name": "no_plusplus",
"level": "ignore"
},
"no_throwing_strings": {
"name": "no_throwing_strings",
"level": "error"
},
"no_backticks": {
"name": "no_backticks",
"level": "ignore"
},
"no_implicit_parens": {
"name": "no_implicit_parens",
"level": "ignore"
},
"no_empty_param_list": {
"name": "no_empty_param_list",
"level": "error"
},
"no_stand_alone_at": {
"name": "no_stand_alone_at",
"level": "ignore"
},
"space_operators": {
"name": "space_operators",
"level": "ignore"
},
"duplicate_key": {
"name": "duplicate_key",
"level": "error"
},
"empty_constructor_needs_parens": {
"name": "empty_constructor_needs_parens",
"level": "ignore"
},
"cyclomatic_complexity": {
"name": "cyclomatic_complexity",
"value": 10,
"level": "ignore"
},
"newlines_after_classes": {
"name": "newlines_after_classes",
"value": 3,
"level": "ignore"
},
"no_unnecessary_fat_arrows": {
"name": "no_unnecessary_fat_arrows",
"level": "warn"
},
"missing_fat_arrows": {
"name": "missing_fat_arrows",
"level": "ignore"
},
"non_empty_constructor_needs_parens": {
"name": "non_empty_constructor_needs_parens",
"level": "ignore"
}
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -26,6 +26,7 @@
"tdd",
"runner"
],
"browsers": true,
"author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)",
"maintainers": [
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)"
Expand Down Expand Up @@ -67,4 +68,4 @@
"cakeConfiguration": {
"COFFEE_SRC_PATH": "src"
}
}
}

0 comments on commit 5cdd52e

Please sign in to comment.