Skip to content

Commit

Permalink
Initial check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Apr 23, 2017
0 parents commit ad6ddae
Show file tree
Hide file tree
Showing 14 changed files with 194 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .editorconfig
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
coverage
test/fixtures
10 changes: 10 additions & 0 deletions .eslintrc.js
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"
}
};
10 changes: 10 additions & 0 deletions .gitattributes
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.iml
12 changes: 12 additions & 0 deletions .travis.yml
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release notes for `analyze-size`

<a name="current-release"></a>
21 changes: 21 additions & 0 deletions LICENSE.md
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.
7 changes: 7 additions & 0 deletions examples/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
"extends": "standard",
"plugins": [
"standard",
"promise"
]
};
Empty file added examples/example.js
Empty file.
55 changes: 55 additions & 0 deletions package.json
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": []
}
17 changes: 17 additions & 0 deletions src/index.js
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"
}
19 changes: 19 additions & 0 deletions test/main-spec.js
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')
})
})
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require trace-and-clarify-if-possible

0 comments on commit ad6ddae

Please sign in to comment.