codify-images 1.4.2 → 1.4.5

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/README.md CHANGED
@@ -2,17 +2,16 @@
2
2
 
3
3
  [![License][License Badge]](LICENSE)
4
4
  [![Version][Version Badge]][Version Package]
5
- [![CI][CI Badge]][CI Workflow]
6
5
  [![Release][Release Badge]][Release Workflow]
7
6
  [![Coverage][Coverage Badge]][Coverage Report]
8
7
  [![Vulnerabilities][Vulnerabilities Badge]][Vulnerabilities Report]
9
- [![Node Version][Node Version Badge]](package.json#L45)
8
+ [![Node Version][Node Version Badge]](package.json#L44)
10
9
 
11
10
  Quick and easy tool for converting a set of images into inline JavaScript.
12
11
 
13
12
  ## Installation
14
13
 
15
- ```sh
14
+ ```console
16
15
  npm i -D codify-images
17
16
  ```
18
17
 
@@ -69,7 +68,7 @@ const images = {
69
68
 
70
69
  Below is the output of `codify-images --help`.
71
70
 
72
- ```sh
71
+ ```console
73
72
  Usage: codify-images [options] <input path>
74
73
 
75
74
  Arguments:
@@ -97,7 +96,7 @@ latest LTS version is tested against.
97
96
 
98
97
  Install dependencies via `npm`.
99
98
 
100
- ```sh
99
+ ```console
101
100
  npm i
102
101
  ```
103
102
 
@@ -105,7 +104,7 @@ npm i
105
104
 
106
105
  Execute linters via `npm`.
107
106
 
108
- ```sh
107
+ ```console
109
108
  # git, javascript and markdown
110
109
  npm run lint
111
110
 
@@ -123,7 +122,7 @@ npm run lint:md
123
122
 
124
123
  Execute tests via `npm`.
125
124
 
126
- ```sh
125
+ ```console
127
126
  # lint and unit tests
128
127
  npm test
129
128
 
@@ -135,7 +134,7 @@ npm run test:unit
135
134
 
136
135
  Execute formatters via `npm`.
137
136
 
138
- ```sh
137
+ ```console
139
138
  # javascript and markdown
140
139
  npm run format
141
140
 
@@ -150,7 +149,7 @@ npm run format:md
150
149
 
151
150
  Run a build via `npm`.
152
151
 
153
- ```sh
152
+ ```console
154
153
  npm run build
155
154
  ```
156
155
 
@@ -159,8 +158,6 @@ npm run build
159
158
  [Version Badge]: https://img.shields.io/npm/v/codify-images?label=Version
160
159
  [Version Package]: https://www.npmjs.com/codify-images
161
160
  [Node Version Badge]: https://img.shields.io/node/v/codify-images
162
- [CI Badge]: https://github.com/devpow112/codify-images/actions/workflows/ci.yml/badge.svg?branch=main
163
- [CI Workflow]: https://github.com/devpow112/codify-images/actions/workflows/ci.yml?query=branch%3Amain
164
161
  [Release Badge]: https://github.com/devpow112/codify-images/actions/workflows/release.yml/badge.svg?branch=main
165
162
  [Release Workflow]: https://github.com/devpow112/codify-images/actions/workflows/release.yml?query=branch%3Amain
166
163
  [Coverage Badge]: https://img.shields.io/coveralls/github/devpow112/codify-images/main?label=Coverage
package/dist/cli.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var _commander=require("commander");var _coa=require("./coa.js");(0,_coa.setUpProgram)(_commander.program);_commander.program.parseAsync(process.argv).catch(()=>process.exit(1));
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jbGkuanMiXSwibmFtZXMiOlsicHJvZ3JhbSIsInBhcnNlQXN5bmMiLCJwcm9jZXNzIiwiYXJndiIsImNhdGNoIiwiZXhpdCJdLCJtYXBwaW5ncyI6IkFBQUE7YUFFQSxvQ0FDQSw2QkFFQSxzQkFBYUEsa0JBQWIsRUFFQUEsbUJBQ0dDLFVBREgsQ0FDY0MsT0FBTyxDQUFDQyxJQUR0QixFQUVHQyxLQUZILENBRVMsSUFBTUYsT0FBTyxDQUFDRyxJQUFSLENBQWEsQ0FBYixDQUZmIiwic291cmNlc0NvbnRlbnQiOlsiIyEvdXNyL2Jpbi9lbnYgbm9kZVxuXG5pbXBvcnQgeyBwcm9ncmFtIH0gZnJvbSAnY29tbWFuZGVyJztcbmltcG9ydCB7IHNldFVwUHJvZ3JhbSB9IGZyb20gJy4vY29hLmpzJztcblxuc2V0VXBQcm9ncmFtKHByb2dyYW0pO1xuXG5wcm9ncmFtXG4gIC5wYXJzZUFzeW5jKHByb2Nlc3MuYXJndilcbiAgLmNhdGNoKCgpID0+IHByb2Nlc3MuZXhpdCgxKSk7XG4iXX0=
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "codify-images",
3
- "version": "1.4.2",
3
+ "version": "1.4.5",
4
4
  "description": "Quick and easy tool for converting a set of images into inline JavaScript",
5
5
  "main": "dist/codify-images.js",
6
6
  "bin": {
7
- "codify-images": "./bin/codify-images"
7
+ "codify-images": "./dist/cli.js"
8
8
  },
9
9
  "scripts": {
10
10
  "prebuild": "rimraf dist/",
@@ -18,7 +18,7 @@
18
18
  "format:md": "npm run -s lint:md -- --fix",
19
19
  "pretest": "rimraf test/.temp/",
20
20
  "test": "run-s -s lint test:unit",
21
- "test:unit": "nyc mocha test/*.test.js"
21
+ "test:unit": "nyc mocha test/unit/*.test.js"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -35,7 +35,6 @@
35
35
  },
36
36
  "homepage": "https://github.com/devpow112/codify-images#readme",
37
37
  "files": [
38
- "bin/**/*",
39
38
  "dist/**/*.js"
40
39
  ],
41
40
  "directories": {
@@ -49,30 +48,25 @@
49
48
  "chalk": "^4.1.2",
50
49
  "commander": "^9.0.0",
51
50
  "lodash.camelcase": "^4.3.0",
52
- "mini-svg-data-uri": "^1.4.3",
51
+ "mini-svg-data-uri": "^1.4.4",
53
52
  "mkdirp": "^1.0.4"
54
53
  },
55
54
  "devDependencies": {
56
- "@babel/cli": "^7.16.8",
57
- "@babel/core": "^7.16.12",
58
- "@babel/preset-env": "^7.16.11",
59
- "@babel/register": "^7.16.9",
60
- "@commitlint/cli": "^16.1.0",
61
- "@commitlint/config-conventional": "^16.0.0",
62
- "@devpow112/eslint-config": "^1.0.3",
63
- "@semantic-release/git": "^10.0.1",
64
- "babel-plugin-add-module-exports": "^1.0.4",
55
+ "@babel/cli": "^7.17.6",
56
+ "@babel/register": "^7.17.0",
57
+ "@commitlint/cli": "^16.2.1",
58
+ "@devpow112/babel-config": "^1.0.2",
59
+ "@devpow112/commitlint-config": "^1.0.0",
60
+ "@devpow112/eslint-config": "^1.1.2",
61
+ "@devpow112/semantic-release-config": "^1.1.0",
65
62
  "chai": "^4.3.6",
66
- "conventional-changelog-conventionalcommits": "^4.6.3",
67
- "eslint": "^8.7.0",
68
- "eslint-plugin-chai-friendly": "^0.7.2",
69
- "eslint-plugin-mocha": "^10.0.3",
70
- "markdownlint-cli": "^0.30.0",
71
- "mocha": "^9.2.0",
63
+ "eslint": "^8.10.0",
64
+ "markdownlint-cli": "^0.31.1",
65
+ "mocha": "^9.2.1",
72
66
  "npm-run-all": "^4.1.5",
73
67
  "nyc": "^15.1.0",
74
68
  "rimraf": "^3.0.2",
75
69
  "semantic-release": "^19.0.2",
76
- "sinon": "^13.0.0"
70
+ "sinon": "^13.0.1"
77
71
  }
78
72
  }
package/bin/codify-images DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { setUpProgram } = require('../dist/coa.js');
4
- const { program } = require('commander');
5
-
6
- setUpProgram(program);
7
-
8
- program
9
- .parseAsync(process.argv)
10
- .catch(() => process.exit(1));