Skip to content

Commit 998af45

Browse files
Prepare the project to publish to npm
1 parent c8cd02d commit 998af45

File tree

8 files changed

+3034
-13
lines changed

8 files changed

+3034
-13
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/node_modules/
1+
/node_modules/
2+
dist

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src
2+
config
3+
.gitignore
4+
package.json
5+
package-lock.json

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Change your alacritty config on the fly!
44

5+
### Installation
6+
7+
```bash
8+
npm install jscritty -g
9+
```
10+
511
### Manual Installation
612

713
```bash

bin/outside

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22

3-
require("../")();
3+
require("../dist")();

package-lock.json

Lines changed: 3002 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22
"name": "jscritty",
33
"version": "1.0.0",
44
"description": "CLI that allows you to change your Alacritty config with one command without editting the config file.",
5-
"main": "index.js",
6-
"bin": {
7-
"outside": "bin/outside"
8-
},
5+
"main": "src/index.js",
6+
"bin": "bin/outside",
97
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1"
8+
"build": "babel src --out-dir dist --presets=@babel/preset-env",
9+
"prepare": "npm run build"
1110
},
1211
"author": "@CodingLeonardo <Leonardo Rivero>",
1312
"license": "MIT",
13+
"repository": {
14+
"url": "https://github.com/CodingLeonardo/jscritty"
15+
},
1416
"dependencies": {
1517
"chalk": "^4.1.0",
1618
"commander": "^6.2.1",
1719
"yaml": "^1.10.0"
20+
},
21+
"devDependencies": {
22+
"@babel/cli": "^7.12.10",
23+
"@babel/core": "^7.12.10",
24+
"@babel/preset-env": "^7.12.11"
1825
}
1926
}

src/cli.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
const { Command } = require("commander");
2-
const chalk = require("chalk");
32
const program = new Command();
43

5-
program.version("0.0.1");
6-
program.name("JSCritty");
4+
program.version("1.0.0");
5+
program.name("jscritty");
76
program.description(
87
"CLI that allows you to change your Alacritty config with one command without editting the config file."
98
);

index.js renamed to src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
const Alacritty = require("./src/alacritty.js");
2-
const { args } = require("./src/cli.js");
1+
#!/usr/bin/env node
2+
3+
const Alacritty = require("./alacritty.js");
4+
const { args } = require("./cli.js");
35

46
module.exports = () => {
57
const alacritty = new Alacritty();

0 commit comments

Comments
 (0)