Skip to content

Commit 09a7cd5

Browse files
author
Anton
committed
initialise package
1 parent 088d2e0 commit 09a7cd5

10 files changed

+123
-3
lines changed

.eslintrc.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"parserOptions": {
8+
"ecmaVersion": 2017,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"indent": [
13+
"error",
14+
4
15+
],
16+
"linebreak-style": [
17+
"error",
18+
"unix"
19+
],
20+
"quotes": [
21+
"error",
22+
"single"
23+
],
24+
"semi": [
25+
"error",
26+
"never"
27+
],
28+
"comma-dangle": [
29+
"error",
30+
"always-multiline"
31+
],
32+
"quote-props": [
33+
"error",
34+
"as-needed"
35+
],
36+
"padded-blocks": [
37+
"error",
38+
"never"
39+
]
40+
}
41+
};

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ typings/
5656

5757
# dotenv environment variables file
5858
.env
59-

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 27 March 2018
2+
3+
## 1.0.0
4+
5+
- Create `hottie` with `mnp`
6+
- [repo]: `test`, `src`

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Sobesednik Media
3+
Copyright (c) 2018 Sobesednik
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
# hottie
2-
A hot reload for your hot website.
2+
3+
`hottie` is a new Node.js npm package.
4+
5+
## `hottie():void`
6+
7+
Call this function to get a result you want.
8+
9+
```js
10+
const hottie = require('hottie')
11+
12+
hottie()
13+
```
14+
15+
---
16+
17+
(c) [Sobesednik][1] 2018
18+
19+
[1]: https://mnpjs.org

example.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const hottie = require('./')
2+
3+
hottie()

package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "hottie",
3+
"version": "1.0.0",
4+
"description": "A hot reload for your hot website.",
5+
"main": "src/index.js",
6+
"scripts": {
7+
"test": "zoroaster test/spec",
8+
"test-watch": "zoroaster test/spec --watch"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git://github.com/Sobesednik/hottie.git"
13+
},
14+
"keywords": ["hottie"],
15+
"author": "Anton <[email protected]>",
16+
"license": "MIT",
17+
"bugs": {
18+
"url": "https://github.com/Sobesednik/hottie/issues"
19+
},
20+
"homepage": "https://github.com/Sobesednik/hottie#readme",
21+
"devDependencies": {
22+
"zoroaster": "0.5.3"
23+
}
24+
}

src/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Invoke package's main function
3+
*/
4+
function hottie() {
5+
console.log('hottie called')
6+
}
7+
8+
module.exports = hottie

test/context/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
async function Context () {
2+
3+
}
4+
5+
module.exports = Context

test/spec/index.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { equal, assert } = require('zoroaster/assert')
2+
const context = require('../context')
3+
const hottie = require('../..')
4+
5+
const hottieTestSuite = {
6+
context,
7+
'should be a function'() {
8+
equal(typeof hottie, 'function')
9+
},
10+
'should call package without error'() {
11+
assert.doesNotThrow(() => {
12+
hottie()
13+
})
14+
},
15+
}
16+
17+
module.exports = hottieTestSuite

0 commit comments

Comments
 (0)