Skip to content

Commit 9c211f8

Browse files
committed
Update boilerplate files
1 parent 6d80634 commit 9c211f8

File tree

6 files changed

+120
-30
lines changed

6 files changed

+120
-30
lines changed

.editorconfig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
# http://editorconfig.org
1+
# ╔═╗╔╦╗╦╔╦╗╔═╗╦═╗┌─┐┌─┐┌┐┌┌─┐┬┌─┐
2+
# ║╣ ║║║ ║ ║ ║╠╦╝│ │ ││││├┤ ││ ┬
3+
# o╚═╝═╩╝╩ ╩ ╚═╝╩╚═└─┘└─┘┘└┘└ ┴└─┘
4+
#
5+
# This file (`.editorconfig`) exists to help maintain consistent formatting
6+
# throughout this package, the Sails framework, and the Node-Machine project.
7+
#
8+
# To review what each of these options mean, see:
9+
# http://editorconfig.org/
210
root = true
311

412
[*]
513
indent_style = space
614
indent_size = 2
15+
end_of_line = lf
716
charset = utf-8
817
trim_trailing_whitespace = true
918
insert_final_newline = true
10-
11-
[*.md]
12-
trim_trailing_whitespace = false

.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
2+
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
3+
// ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
4+
// o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
5+
// A set of basic conventions designed to complement the .jshintrc file.
6+
// For the master copy of this file, see the `.eslintrc` template file in
7+
// the `sails-generate` package (https://www.npmjs.com/package/sails-generate.)
28
"env": {
39
"node": true,
410
"mocha": true
511
},
612
"rules": {
7-
"array-bracket-spacing": [2, "never"],
813
"callback-return": [2, ["callback", "cb", "next", "done", "proceed"]],
914
"camelcase": [2, {"properties": "always"}],
1015
"comma-style": [2, "last"],

.gitignore

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,46 @@
1+
# ┌─┐┬┌┬┐╦╔═╗╔╗╔╔═╗╦═╗╔═╗
2+
# │ ┬│ │ ║║ ╦║║║║ ║╠╦╝║╣
3+
# o└─┘┴ ┴ ╩╚═╝╝╚╝╚═╝╩╚═╚═╝
4+
#
5+
# This file (`.gitignore`) exists to signify to `git` that certain files
6+
# and/or directories should be ignored for the purposes of version control.
7+
#
8+
# This is primarily useful for excluding temporary files of all sorts; stuff
9+
# generated by IDEs, build scripts, automated tests, package managers, or even
10+
# end-users (e.g. file uploads). `.gitignore` files like this also do a nice job
11+
# at keeping sensitive credentials and personal data out of version control systems.
12+
#
13+
114
############################
2-
# npm
15+
# sails / node.js / npm
316
############################
417
node_modules
518
npm-debug.log
6-
19+
.node_history
720

821
############################
9-
# tmp, editor & OS files
22+
# editor & OS files
1023
############################
11-
.tmp
1224
*.swo
1325
*.swp
1426
*.swn
1527
*.swm
28+
*.seed
29+
*.log
30+
*.out
31+
*.pid
32+
lib-cov
1633
.DS_STORE
1734
*#
35+
*\#
36+
.\#*
1837
*~
1938
.idea
39+
.netbeans
2040
nbproject
2141

22-
2342
############################
24-
# Tests
43+
# misc
2544
############################
26-
coverage
27-
28-
29-
############################
30-
# Other
31-
############################
32-
.node_history
33-
simple-test-script.js
45+
.tmp
46+
dump.rdb

.jshintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@
8484
// read, albeit a bit less exciting)
8585
"laxcomma": false,
8686

87+
// Do NOT allow avant garde use of commas in conditional statements.
88+
// (this prevents accidentally writing code like:
89+
// ```
90+
// if (!_.contains(['+ci', '-ci', '∆ci', '+ce', '-ce', '∆ce']), change.verb) {...}
91+
// ```
92+
// See the problem in that code? Neither did we-- that's the problem!)
93+
"nocomma": true,
94+
8795
// Strictly enforce the consistent use of single quotes.
8896
// (this is a convention that was established primarily to make it easier
8997
// to grep [or FIND+REPLACE in Sublime] particular string literals in

.npmignore

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1-
*#
1+
.git
2+
./.gitignore
3+
./.jshintrc
4+
./.editorconfig
5+
./.travis.yml
6+
./appveyor.yml
7+
./example
8+
./examples
9+
./test
10+
./tests
11+
./.github
12+
213
node_modules
3-
ssl
4-
.DS_STORE
14+
npm-debug.log
15+
.node_history
516
*.swo
617
*.swp
718
*.swn
819
*.swm
20+
*.seed
21+
*.log
22+
*.out
23+
*.pid
24+
lib-cov
25+
.DS_STORE
26+
*#
27+
*\#
28+
.\#*
929
*~
1030
.idea
31+
.netbeans
1132
nbproject
12-
.git
13-
.gitignore
1433
.tmp
15-
.jshintrc
16-
.editorconfig
17-
CONTRIBUTING.md
18-
*.md
19-
**/*.md
20-
test
34+
dump.rdb

appveyor.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# # # # # # # # # # # # # # # # # # # # # # # # # #
2+
# ╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╦╔═╗╦═╗ ┬ ┬┌┬┐┬ #
3+
# ╠═╣╠═╝╠═╝╚╗╔╝║╣ ╚╦╝║ ║╠╦╝ └┬┘││││ #
4+
# ╩ ╩╩ ╩ ╚╝ ╚═╝ ╩ ╚═╝╩╚═o ┴ ┴ ┴┴─┘ #
5+
# #
6+
# This file configures Appveyor CI. #
7+
# (i.e. how we run the tests on Windows) #
8+
# #
9+
# https://www.appveyor.com/docs/lang/nodejs-iojs/ #
10+
# # # # # # # # # # # # # # # # # # # # # # # # # #
11+
12+
13+
# Test against these versions of Node.js.
14+
environment:
15+
matrix:
16+
- nodejs_version: "4"
17+
- nodejs_version: "6"
18+
- nodejs_version: "7"
19+
20+
# Install scripts. (runs after repo cloning)
21+
install:
22+
# Get the latest stable version of Node.js
23+
# (Not sure what this is for, it's just in Appveyor's example.)
24+
- ps: Install-Product node $env:nodejs_version
25+
# Install declared dependencies
26+
- npm install
27+
28+
29+
# Post-install test scripts.
30+
test_script:
31+
# Output Node and NPM version info.
32+
# (Presumably just in case Appveyor decides to try any funny business?
33+
# But seriously, always good to audit this kind of stuff for debugging.)
34+
- node --version
35+
- npm --version
36+
# Run the actual tests.
37+
- npm test
38+
39+
40+
# Don't actually build.
41+
# (Not sure what this is for, it's just in Appveyor's example.
42+
# I'm not sure what we're not building... but I'm OK with not
43+
# building it. I guess.)
44+
build: off

0 commit comments

Comments
 (0)