Skip to content

Commit 8bab03a

Browse files
author
Tomek Wiszniewski
committed
Boom!
0 parents  commit 8bab03a

File tree

13 files changed

+379
-0
lines changed

13 files changed

+379
-0
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Text editor configuration
3+
# =========================
4+
#
5+
# This file describes the end-of-line character, indentation and other rules for
6+
# text files – in a format compatible with virtually any text editor. It really
7+
# helps to have all that consistent, without manual labor. You'll probably want
8+
# a plugin for your editor. Go get one from <http://editorconfig.org>.
9+
#
10+
11+
root = true
12+
13+
14+
# General rules
15+
# -------------
16+
# - Unicode
17+
# - Unix-style line endings
18+
# - Newline before EOF
19+
# - No sloppy trailing spaces
20+
# - Two-space indentation
21+
22+
[*]
23+
end_of_line = lf
24+
charset = utf-8
25+
insert_final_newline = true
26+
trim_trailing_whitespace = true
27+
indent_style = space
28+
indent_size = 2
29+
30+
31+
# Files that need whitespace at the end of lines
32+
# ----------------------------------------------
33+
# - Markdown
34+
35+
[*.md]
36+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Files ignored by ESLint
3+
# =======================
4+
#
5+
6+
# - Built files
7+
./*.js
8+
!./module.js
9+
!./test.js
10+
./*/
11+
!./module/
12+
!./test/
13+
!./Readme/

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "airbnb",
3+
"rules": {
4+
"curly": 0
5+
}
6+
}

.gitattributes

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#
2+
# File type specific Git settings
3+
# ===============================
4+
#
5+
6+
7+
# Default
8+
# -------
9+
# If a file doesn’t match anything below, fall back to autodetection.
10+
# <http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/>.
11+
* text=auto
12+
13+
14+
# Text files
15+
# ----------
16+
# Always perform CRLF → LF normalization on these.
17+
18+
# * Source code
19+
*.js text
20+
*.sh text
21+
*.fish text
22+
23+
# * Docs
24+
*.md text
25+
26+
# * Config and data files
27+
*.json text
28+
*.{yml,yaml} text
29+
.editorconfig text
30+
.gitattributes text
31+
.gitignore text
32+
.jscsrc text
33+
.jshintignore text
34+
.jshintrc text
35+
.npmignore text
36+
37+
# * Web stuff
38+
*.html text
39+
*.svg text
40+
*.mustache text
41+
42+
# * Other text files
43+
*.csv text
44+
*.xml text
45+
46+
47+
# Smart diffs
48+
# -----------
49+
# Show approximate diffs for binary files by converting them to plain text.
50+
51+
# * Show PDF and *MS Office* documents as text
52+
# – if you’re not on *Git Bash*, put this into your .gitconfig:
53+
# [diff "astextplain"]
54+
# textconv = pdf2txt
55+
# binary = true
56+
*.pdf diff=astextplain
57+
*.doc diff=astextplain
58+
*.docx diff=astextplain
59+
*.dot diff=astextplain
60+
*.rtf diff=astextplain
61+
62+
# * Show ODF documents as text
63+
# – install *odt2txt* and put this into your .gitconfig:
64+
# [diff "odf"]
65+
# textconv=odt2txt
66+
# binary = true
67+
.odt diff=odf
68+
.ods diff=odf
69+
.odp diff=odf
70+
.odb diff=odf
71+
.odg diff=odf
72+
.odf diff=odf
73+
74+
# * Show EXIF data from JPEG images
75+
# – install *exif* and put this into your .gitconfig:
76+
# [diff "jpg"]
77+
# textconv = exif
78+
# binary = true
79+
*.{jpg,jpeg} diff=exif
80+
81+
82+
# Plain binary files
83+
# ------------------
84+
# Just treat them as blobs.
85+
86+
# * Binary image formats
87+
*.png binary
88+
*.gif binary
89+
*.xcf binary
90+
*.ico binary
91+
*.psd binary
92+
*.ai binary
93+
*.sketch binary
94+
95+
# * Video and audio files
96+
*.mov binary
97+
*.mp4 binary
98+
*.mp3 binary
99+
*.flv binary
100+
*.fla binary
101+
*.swf binary
102+
103+
# * Archives
104+
*.gz binary
105+
*.zip binary
106+
*.7z binary
107+
*.tar binary
108+
*.rar binary
109+
110+
# * Fonts
111+
*.ttf binary
112+
*.otf binary

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# Files ignored by Git
3+
# ====================
4+
#
5+
6+
# - Built files
7+
/*.js
8+
!/module.js
9+
!/test.js
10+
/*/
11+
!/module/
12+
!/test/
13+
!/Readme/
14+
15+
# - All files and directories starting with "#"
16+
\#*
17+
18+
# - NPM stuff
19+
/node_modules/
20+
/npm-debug.log
21+
22+
# - Test coverage reports
23+
/coverage/
24+
25+
# - Editor files
26+
*.sublime-project
27+
*.sublime-workspace

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sudo:
2+
false
3+
4+
branches:
5+
only:
6+
- master
7+
- travis-debug
8+
9+
before_install:
10+
git config user.name "Travis CI"
11+
12+
language:
13+
node_js
14+
node_js:
15+
- stable
16+
- iojs
17+
18+
after_script:
19+
npm run coveralls

License.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright © 2015 Tomek Wiszniewski
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

Readme.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[![Coveralls – test coverage
2+
](https://img.shields.io/coveralls/tomekwi/<!--name-->.svg?style=flat-square)
3+
](https://coveralls.io/r/tomekwi/<!--name-->)
4+
[![Travis – build status
5+
](https://img.shields.io/travis/tomekwi/<!--name-->/master.svg?style=flat-square)
6+
](https://travis-ci.org/tomekwi/<!--name-->)
7+
[![David – status of dependencies
8+
](https://img.shields.io/david/tomekwi/<!--name-->.svg?style=flat-square)
9+
](https://david-dm.org/tomekwi/<!--name-->)
10+
[![Stability: experimental
11+
](https://img.shields.io/badge/stability-experimental-yellow.svg?style=flat-square)
12+
](https://nodejs.org/api/documentation.html#documentation_stability_index)
13+
[![Code style: airbnb
14+
](https://img.shields.io/badge/code%20style-airbnb-777777.svg?style=flat-square)
15+
](https://github.com/airbnb/javascript)
16+
17+
18+
19+
20+
<!--title-->
21+
<!--title-underline-->
22+
23+
**<!--description-->**
24+
25+
26+
**Heads up!** This is totally a work in progress. [Thoughts and ideas][] are very welcome.
27+
28+
[Thoughts and ideas]: https://github.com/tomekwi/<!--name-->/issues
29+
30+
31+
32+
33+
<div id="/installation">&nbsp;</div>
34+
35+
Installation
36+
------------
37+
38+
```sh
39+
$ npm install <!--name-->
40+
```
41+
42+
43+
44+
45+
<div id="/usage">&nbsp;</div>
46+
47+
Usage
48+
-----
49+
50+
*Work in progress…*
51+
52+
53+
54+
55+
<div id="/license">&nbsp;</div>
56+
57+
License
58+
-------
59+
60+
[MIT][] © [Tomek Wiszniewski][]
61+
62+
[MIT]: ./License.md
63+
[Tomek Wiszniewski]: https://github.com/tomekwi

_bootstrap.fish

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/usr/bin/fish
2+
3+
if begin
4+
test (count $argv) -lt 2
5+
or test $argv[1] = '--help'
6+
end
7+
echo 'Usage: ./_bootstrap.sh NAME DESCRIPTION [TITLE [REPO]]'
8+
exit 0
9+
end
10+
11+
set name $argv[1]
12+
set description $argv[2]
13+
14+
if test (count $argv) -lt 3; set title $name
15+
else; set title $argv[3]
16+
end
17+
18+
if test (count $argv) -lt 4; set repo "[email protected]:tomekwi/$name"
19+
else; set repo $argv[4]
20+
end
21+
22+
echo \n'Doing the initial commit…'
23+
git remote rename origin boilerplate
24+
git remote add origin $repo
25+
and if test (count (git branch --list master)) -gt 0
26+
git branch -D master
27+
else; true
28+
end
29+
and git checkout --orphan master
30+
and git commit -m 'Boom!'
31+
and echo '…done.'
32+
or echo '…failed!'
33+
34+
echo \n'Updating name and description…'
35+
for file in package.json Readme.md
36+
sed --in-place \
37+
-e "s|<\!--name-->|$name|g" \
38+
-e "s|<\!--description-->|$description|g" \
39+
-e "s|<\!--title-->|$title|g" \
40+
-e 's|<\!--title-underline-->|'(echo -n $title | sed s/./=/g)'|g' \
41+
-e "s|<\!--repo-->|$repo|g" \
42+
$file
43+
end
44+
and git commit -m 'Update name and description' package.json Readme.md
45+
and echo '…done.'
46+
or echo '…failed!'
47+
48+
echo \n'Bootstrapping dependencies…'
49+
npm run _bootstrap
50+
and git commit -m 'Bootstrap dependencies' package.json
51+
and echo '…done.'
52+
or echo '…failed!'
53+
54+
echo \n'Removing the bootstrap script…'
55+
git rm _bootstrap.fish
56+
and git commit -m 'Remove the bootstrap script'
57+
and echo '…done.'
58+
or echo '…failed!'
59+
60+
echo \n'Done! Don’t forget to add some keywords to the `package.json`.'

module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from './module/index';

0 commit comments

Comments
 (0)