Skip to content

Commit c9d4c2a

Browse files
author
Mjr
committed
init
0 parents  commit c9d4c2a

14 files changed

+584
-0
lines changed

Diff for: .editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# http://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.{md,jade,pug}]
16+
trim_trailing_whitespace = false
17+
18+
[*.{html,scss,css,js,vue}]
19+
indent_size = 4

Diff for: .gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# javascript
2+
node_modules*
3+
bower_components/
4+
lib-cov
5+
coverage
6+
.node_repl_history
7+
.yarn-integrity
8+
.next
9+
typings/
10+
11+
# scss
12+
scssReport.xml
13+
14+
# cache directories
15+
.sass-cache/
16+
.npm
17+
.eslintcache
18+
19+
# temporary and build
20+
.tmp/
21+
tmp/
22+
.dist/
23+
dist/
24+
25+
# logs
26+
log/
27+
logs/
28+
*.log
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
33+
# runtime
34+
pids
35+
*.pid
36+
*.seed
37+
*.pid.lock
38+
39+
# vim
40+
*~
41+
*.swp
42+
*.swo
43+
44+
# OSX
45+
.DS_Store
46+
.VolumeIcon.icns
47+
.fseventsd
48+
.Trashes
49+
._.Trashes
50+
._.
51+
.Spotlight-V100
52+
Icon
53+
54+
# windows
55+
[Tt]humbs.db
56+
[Dd]esktop.ini
57+
58+
# privileged information
59+
.npmrc
60+
61+
# archives
62+
*.zip
63+
*.gz
64+
*.tgz
65+
66+
.env
67+
68+
.idea/
69+
.gitignore.rej
70+
.project
71+
package-lock.json
72+
public/bundle.js.map
73+
public/bundle.js

Diff for: .jscsrc

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"disallowAnonymousFunctions": false,
3+
"disallowEmptyBlocks": true,
4+
"disallowSpacesInsideArrayBrackets": true,
5+
"disallowSpacesInsideParentheses": true,
6+
"disallowQuotedKeysInObjects": true,
7+
"disallowSpaceAfterObjectKeys": true,
8+
"disallowSpaceAfterPrefixUnaryOperators": true,
9+
"disallowSpaceBeforePostfixUnaryOperators": true,
10+
"disallowSpaceBeforeBinaryOperators": [
11+
","
12+
],
13+
"disallowMixedSpacesAndTabs": true,
14+
"disallowTrailingWhitespace": true,
15+
"disallowTrailingComma": true,
16+
"disallowYodaConditions": true,
17+
"disallowKeywords": [
18+
"with"
19+
],
20+
"disallowMultipleLineBreaks": true,
21+
"requireSpaceBeforeObjectValues": true,
22+
"requireSpaceBeforeBlockStatements": true,
23+
"requireParenthesesAroundIIFE": true,
24+
"requireSpacesInConditionalExpression": true,
25+
"requireBlocksOnNewline": 1,
26+
"requireCommaBeforeLineBreak": true,
27+
"requireSpaceBeforeBinaryOperators": true,
28+
"requireSpaceAfterBinaryOperators": true,
29+
"requireCamelCaseOrUpperCaseIdentifiers": true,
30+
"requireLineFeedAtFileEnd": true,
31+
"requireCapitalizedConstructors": true,
32+
"requireDotNotation": true,
33+
"requireSpacesInForStatement": true,
34+
"requireSpaceBetweenArguments": true,
35+
"requireCurlyBraces": [
36+
"do"
37+
],
38+
"requireSpaceAfterKeywords": [
39+
"if",
40+
"else",
41+
"for",
42+
"while",
43+
"do",
44+
"switch",
45+
"case",
46+
"return",
47+
"try",
48+
"catch",
49+
"typeof"
50+
],
51+
"validateLineBreaks": "LF",
52+
"validateQuoteMarks": "'",
53+
"validateIndentation": 4
54+
}

Diff for: .jshintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules*
2+
.dist/
3+
dist/
4+
.tmp/
5+
tmp/

Diff for: .jshintrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"esversion": 6,
3+
"node": true,
4+
"browser": true,
5+
"bitwise": true,
6+
"camelcase": true,
7+
"curly": true,
8+
"eqeqeq": true,
9+
"immed": true,
10+
"indent": 4,
11+
"newcap": true,
12+
"eqnull": true,
13+
"latedef": "nofunc",
14+
"nonew": true,
15+
"noarg": true,
16+
"quotmark": "single",
17+
"regexp": true,
18+
"undef": true,
19+
"unused": true,
20+
"strict": true,
21+
"trailing": true,
22+
"sub": true,
23+
"smarttabs": true,
24+
"white": true,
25+
"validthis": true,
26+
"globals": {}
27+
}

Diff for: .npmignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.log
2+
*.sh
3+
*.swo
4+
*.swp
5+
*~
6+
.editorconfig
7+
.jshintignore
8+
.jshintrc
9+
.scss-lint.yml
10+
npm-debug.log*
11+
.nvmrc
12+
public

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.16.0

Diff for: README.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Source Attribution
2+
3+
Summary TODO
4+
5+
## Features
6+
-
7+
8+
## Dependencies
9+
10+
1. Lodash merge function.
11+
12+
## Usage
13+
14+
### Install
15+
16+
```shell
17+
npm install @informatix8/source-attribution --save-dev
18+
```
19+
20+
### CDN
21+
22+
```html
23+
<script src="https://unpkg.com/@informatix8/source-attribution/dist/source-attribution.all.umd.js"></script>
24+
```
25+
26+
### Vanilla Javascript
27+
28+
```javascript
29+
new SourceAttribution({
30+
foo: 'foo',
31+
bar: 'bar'
32+
});
33+
```
34+
35+
## Development
36+
37+
```shell
38+
npm run dev
39+
```
40+
41+
## Build
42+
43+
```shell
44+
npm run build
45+
```
46+
47+
## Release
48+
49+
```shell
50+
npm run build
51+
git tag -a vX.Y.Z
52+
git push origin master
53+
git push origin --tags
54+
npm publish --access=public .
55+
```

Diff for: jsdoc.conf.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"recurseDepth": 10,
3+
"source":
4+
{
5+
"include": [
6+
"src/"
7+
]
8+
},
9+
"opts":
10+
{
11+
"destination": "./dist/docs/",
12+
"encoding": "utf8",
13+
"recurse": true,
14+
"private": true,
15+
"template": "./node_modules/ub-jsdoc"
16+
},
17+
"sourceType": "module",
18+
"tags":
19+
{
20+
"allowUnknownTags": false,
21+
"dictionaries": [
22+
"jsdoc",
23+
"closure"
24+
]
25+
},
26+
"templates":
27+
{
28+
"cleverLinks": false,
29+
"monospaceLinks": false
30+
},
31+
"plugins": [
32+
"plugins/markdown",
33+
"plugins/summarize"
34+
]
35+
}

Diff for: package.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "@informatix8/source-attribution",
3+
"version": "1.0.0",
4+
"title": "Source Attribution",
5+
"description": "TODO",
6+
"license": "ISC",
7+
"main": "dist/source-attribution.cjs.js",
8+
"module": "dist/source-attribution.esm.js",
9+
"browser": "dist/source-attribution.all.umd.js",
10+
"author": "Mjr",
11+
"contributors": [
12+
13+
],
14+
"engines": {
15+
"npm": "^3.0.0",
16+
"node": "^4.0.0"
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "[email protected]:informatix8/source-attribution.git"
21+
},
22+
"dependencies": {
23+
"lodash.merge": "^4.6.1"
24+
},
25+
"devDependencies": {
26+
"jscs": "^3.0.7",
27+
"jsdoc": "^3.5.5",
28+
"jshint": "^2.10.2",
29+
"npm-run-all": "^4.1.5",
30+
"rollup": "^1.17.0",
31+
"rollup-plugin-commonjs": "^9.2.1",
32+
"rollup-plugin-filesize": "^6.1.0",
33+
"rollup-plugin-node-resolve": "^4.0.1",
34+
"rollup-plugin-terser": "^4.0.4",
35+
"serve": "^11.0.1",
36+
"ub-jsdoc": "^1.7.3"
37+
},
38+
"scripts": {
39+
"test": "echo \"Error: no test specified\" && exit 1",
40+
"dev": "npm-run-all --parallel _start _watch",
41+
"build": "rollup -c && npm run _lint && npm run _jsdoc",
42+
"_start": "serve public",
43+
"_watch": "rollup -c -w",
44+
"_lint_global": "jshint ./src",
45+
"_lint": "node ./node_modules/jshint/dist/jshint.js ./src",
46+
"_jsdoc": "node ./node_modules/jsdoc/jsdoc.js -c jsdoc.conf.json"
47+
},
48+
"files": [
49+
"dist",
50+
"src"
51+
]
52+
}

0 commit comments

Comments
 (0)