-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ad6ddae
Showing
14 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# .editorconfig <https://github.com/tunnckoCore/dotfiles> | ||
# | ||
# Copyright (c) 2015 Charlike Mike Reagent, contributors. | ||
# Released under the MIT license. | ||
# | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false | ||
|
||
[*.{js,php}] | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{php,html}] | ||
indent_size = 4 | ||
|
||
[*.{json,cson,yml,yaml,html,md,jade,css,stylus}] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_size = 2 | ||
indent_style = tab | ||
|
||
[.*rc] | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
coverage | ||
test/fixtures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
"extends": "standard", | ||
"plugins": [ | ||
"standard", | ||
"promise" | ||
], | ||
rules: { | ||
"no-console": "warn" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Enforce Unix newlines | ||
* text eol=lf | ||
|
||
# binaries | ||
*.ai binary | ||
*.psd binary | ||
*.jpg binary | ||
*.gif binary | ||
*.png binary | ||
*.jpeg binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
sudo: false | ||
language: "node_js" | ||
node_js: | ||
- "6" | ||
- "7" | ||
script: | ||
- npm install | ||
- npm run coverage | ||
- npm run lint | ||
after_script: | ||
- npm install coveralls | ||
- cat ./coverage/lcov.info | coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Release notes for `analyze-size` | ||
|
||
<a name="current-release"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License | ||
|
||
Copyright (c) 2017 Nils Knappmeier | ||
|
||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
> SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
"extends": "standard", | ||
"plugins": [ | ||
"standard", | ||
"promise" | ||
] | ||
}; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "analyze-size", | ||
"version": "0.0.0", | ||
"description": "Analyze the size of your npm-package", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:nknapp/analyze-size.git" | ||
}, | ||
"homepage": "https://github.com/nknapp/analyze-size", | ||
"author": { | ||
"name": "Nils Knappmeier", | ||
"email": "npm@knappi.org", | ||
"url": "https://github.com/nknapp" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/nknapp/analyze-size/issues" | ||
}, | ||
"main": "src/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "eslint --fix .", | ||
"test": "mocha && npm run lint", | ||
"coverage": "istanbul cover ./node_modules/.bin/_mocha --report lcovonly", | ||
"postcoverage": "istanbul check-coverage coverage/coverage.json --statements 100", | ||
"prethought": "thought --version || npm -g install thought", | ||
"thought": "thought run -a", | ||
"preversion": "thought --version || npm -g install thought", | ||
"version": "thoughtful changelog -o -a && npm run thought" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"dirty-chai": "^1.2.2", | ||
"eslint": "^3.17.1", | ||
"eslint-config-standard": "^7.0.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^4.2.1", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-standard": "^2.1.1", | ||
"husky": "^0.13.2", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.2.0", | ||
"thoughtful-release": "^0.3.1", | ||
"trace-and-clarify-if-possible": "^1.0.0" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"test/fixtures/**" | ||
] | ||
}, | ||
"files": [ | ||
"src" | ||
], | ||
"keywords": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*! | ||
* analyze-size <https://github.com/nknapp/analyze-size> | ||
* | ||
* Copyright (c) 2017 Nils Knappmeier. | ||
* Released under the MIT license. | ||
*/ | ||
|
||
'use strict' | ||
|
||
module.exports = analyzeSize | ||
/** | ||
* Describe your module here | ||
* @public | ||
*/ | ||
function analyzeSize () { | ||
return "my name is analyzeSize" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/*! | ||
* analyze-size <https://github.com/nknapp/analyze-size> | ||
* | ||
* Copyright (c) 2017 Nils Knappmeier. | ||
* Released under the MIT license. | ||
*/ | ||
|
||
/* eslint-env mocha */ | ||
|
||
const analyzeSize = require('../') | ||
const chai = require('chai') | ||
chai.use(require('dirty-chai')) | ||
const expect = chai.expect | ||
|
||
describe('analyze-size:', function () { | ||
it("should be executed", function () { | ||
expect(analyzeSize()).to.equal('analyzeSize') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require trace-and-clarify-if-possible |