bigotillo 0.0.1 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true,
5
+ "node": true,
6
+ "mocha": true,
7
+ "jasmine": true,
8
+ "jest": true
9
+ },
10
+ "extends": "eslint:recommended",
11
+ "parserOptions": {
12
+ "ecmaVersion": 8,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "indent": [
17
+ "error",
18
+ "tab",
19
+ {"SwitchCase": 1}
20
+ ],
21
+ "linebreak-style": [
22
+ "error",
23
+ "unix"
24
+ ],
25
+ "quotes": [
26
+ "error",
27
+ "single"
28
+ ],
29
+ "semi": [
30
+ "error",
31
+ "always"
32
+ ],
33
+ "no-console": "warn",
34
+ "no-alert": "warn",
35
+ "no-unused-vars": "warn",
36
+ "keyword-spacing": ["error", { "before": true, "after": true }],
37
+ "space-infix-ops": ["error", {"int32Hint": false}],
38
+ "comma-spacing": ["error"],
39
+ "arrow-spacing": ["error"],
40
+ "semi-spacing": ["error"],
41
+ "space-before-function-paren": ["error"],
42
+ "no-multi-spaces": "error",
43
+ "no-magic-numbers": ["warn", { "ignoreArrayIndexes": true }],
44
+ "valid-typeof": "error"
45
+ }
46
+ }
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx --no -- commitlint --edit $1
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npm run lint
package/README.md CHANGED
@@ -1 +1,5 @@
1
- # Bigotillo
1
+ # Bigotillo
2
+
3
+ ### How to use:
4
+
5
+ `npx bigotillo`
package/bin/index.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ const { bold, yellow, bgBlack } = require('colorette');
3
+
4
+ const newline = '\n';
5
+ const bigotilloText = `${yellow(bold(bgBlack(' Bigotillo { } ')))}`;
6
+
7
+ const output = newline + bigotilloText + newline;
8
+
9
+ console.log(output); // eslint-disable-line no-console
@@ -0,0 +1 @@
1
+ module.exports = { extends: ['@commitlint/config-conventional'] };
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "bigotillo",
3
- "version": "0.0.1",
3
+ "version": "0.0.7",
4
4
  "description": "A NPM package just for the lol",
5
- "main": "dist/index.js",
5
+ "bin": {
6
+ "bigotillo": "./bin/index.js"
7
+ },
6
8
  "scripts": {
7
- "start": "node .",
8
- "dev": "node src/",
9
- "build": "npx babel src/index.js --out-file dist/index.js --presets=es2015"
9
+ "dev": "nodemon bin",
10
+ "lint": "eslint --ext .js .",
11
+ "prepare": "husky install"
10
12
  },
11
13
  "keywords": [
12
14
  "bigotillo"
@@ -17,9 +19,14 @@
17
19
  "url": "https://github.com/didaquis/bigotillo.git"
18
20
  },
19
21
  "license": "MIT",
22
+ "dependencies": {
23
+ "colorette": "^2.0.16"
24
+ },
20
25
  "devDependencies": {
21
- "babel-cli": "^6.26.0",
22
- "babel-preset-es2015": "^6.24.1",
23
- "babelcli": "0.0.2-security"
26
+ "@commitlint/cli": "^15.0.0",
27
+ "@commitlint/config-conventional": "^15.0.0",
28
+ "eslint": "^8.4.1",
29
+ "husky": "^7.0.4",
30
+ "nodemon": "^2.0.15"
24
31
  }
25
32
  }
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- console.log('bigotillo');
package/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- 'use strict'
2
-
3
- console.log('bigotillo')