Skip to content

Commit

Permalink
chore(project): Adds project management files
Browse files Browse the repository at this point in the history
Editorconfig, publish helpers and the like
  • Loading branch information
kenjones-cisco committed Jan 7, 2016
1 parent f9dacf3 commit a1b8dd1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# editorconfig.org
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ Thumbs.db
.Trashes

test/temp
tmp/

.vagrant/
8 changes: 8 additions & 0 deletions .publishrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"confirm": true,
"sensitiveDataAudit": true,
"checkUncommitted": true,
"checkUntracked": true,
"validateGitTag": true,
"validateBranch": "master"
}
5 changes: 5 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var istanbul = require('gulp-istanbul');
var jasmine = require('gulp-jasmine');
var eslint = require('gulp-eslint');
var coveralls = require('gulp-coveralls');
var publish = require('publish-please');

var SOURCE_CODE = ['app/*.js', 'spec/*.js', 'models/*.js', 'handlers/*.js'];
var TEST_CODE = ['test/*.js'];
Expand Down Expand Up @@ -44,3 +45,7 @@ gulp.task('coveralls', function () {
return gulp.src('coverage/lcov.info')
.pipe(coveralls());
});

gulp.task('publish', ['test'], function () {
return publish();
});
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@
"gulp-istanbul": "^0.10.3",
"gulp-eslint": "^1.1.1",
"gulp-jasmine": "^2.1.0",
"gulp-coveralls": "^0.1.4"
"gulp-coveralls": "^0.1.4",
"publish-please": "^1.1.0"
},
"scripts": {
"test": "gulp test",
"cover": "gulp cover",
"lint": "gulp lint",
"coveralls": "gulp coveralls"
"coveralls": "gulp coveralls",
"publish": "gulp publish"
},
"license": "Apache-2.0"
}
7 changes: 7 additions & 0 deletions test/test_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,10 @@ describe('swaggerize:app', function () {
});

});

// the use of helpers testDirectory results in changing
// the cwd into a temp directory. So that other gulp commands
// can be in the correct location, go back to the project root.
afterAll(function () {
process.chdir(path.join(__dirname, '..'));
});

0 comments on commit a1b8dd1

Please sign in to comment.