obscr 0.1.2 → 0.2.1

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/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "obscr",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "Encrypt and hide your secure data",
5
5
  "main": "bin/index.js",
6
6
  "bin": {
7
7
  "obscr": "./bin/index.js"
8
8
  },
9
9
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
10
+ "test": "jest --coverage",
11
+ "test:watch": "jest --watch",
12
+ "test:unit": "jest test/unit",
13
+ "test:integration": "jest test/integration"
11
14
  },
12
15
  "publishConfig": {
13
16
  "registry": "https://registry.npmjs.org"
@@ -23,10 +26,27 @@
23
26
  "crypto"
24
27
  ],
25
28
  "dependencies": {
29
+ "boxen": "^5.1.2",
26
30
  "chalk": "^4.1.2",
31
+ "cli-progress": "^3.12.0",
27
32
  "crypto-js": "^4.1.1",
28
33
  "inquirer": "^8.0.0",
34
+ "ora": "^5.4.1",
29
35
  "pngjs": "^6.0.0",
30
36
  "yargs": "^17.5.1"
37
+ },
38
+ "devDependencies": {
39
+ "jest": "^29.7.0"
40
+ },
41
+ "jest": {
42
+ "testEnvironment": "node",
43
+ "coverageDirectory": "coverage",
44
+ "collectCoverageFrom": [
45
+ "bin/**/*.js",
46
+ "!bin/index.js"
47
+ ],
48
+ "testMatch": [
49
+ "**/test/**/*.test.js"
50
+ ]
31
51
  }
32
- }
52
+ }
@@ -1,18 +0,0 @@
1
- name: Publish Package to npmjs
2
- on:
3
- release:
4
- types: [created]
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v3
10
- # Setup .npmrc file to publish to npm
11
- - uses: actions/setup-node@v3
12
- with:
13
- node-version: "16.x"
14
- registry-url: "https://registry.npmjs.org"
15
- - run: npm ci
16
- - run: npm publish
17
- env:
18
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}