Skip to content

Commit bd53cf6

Browse files
committed
build: bump project v1.7.0
1 parent 9b0a944 commit bd53cf6

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

gistr.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,54 +31,54 @@
3131
- npm run env-version
3232
*/
3333

34-
const fs = require('fs');
35-
const { v5: uuid } = require('uuid');
34+
const fs = require('fs')
35+
const { v5: uuid } = require('uuid')
3636

3737
/*
3838
* declrations > package.json
3939
*/
4040

41-
const { version, repository } = JSON.parse(fs.readFileSync('package.json'));
42-
const args = process.argv.slice(2, process.argv.length);
43-
const action = args[0];
41+
const { version, repository } = JSON.parse(fs.readFileSync('package.json'))
42+
const args = process.argv.slice(2, process.argv.length)
43+
const action = args[0]
4444
// const a = args[ 1 ];
4545
// const b = args[ 2 ];
4646

4747
if (action === 'guid') {
48-
console.log(`${process.env.GUID}`);
48+
console.log(`${process.env.GUID}`)
4949
} else if (action === 'setup') {
5050
fs.writeFileSync('.env', '', (err) => {
5151
if (err) {
52-
console.error(err);
52+
console.error(err)
5353
} else {
54-
console.log(`Wrote to .env successfully`);
54+
console.log(`Wrote to .env successfully`)
5555
}
56-
});
56+
})
5757
} else if (action === 'generate') {
58-
const buildGuid = uuid(`${repository.url}`, uuid.URL);
59-
const buildUuid = uuid(version, buildGuid);
58+
const buildGuid = uuid(`${repository.url}`, uuid.URL)
59+
const buildUuid = uuid(version, buildGuid)
6060

6161
const ids = `
6262
VERSION=${version}
6363
GUID=${buildGuid}
6464
UUID=${buildUuid}
65-
`;
65+
`
6666

67-
console.log(version);
68-
console.log(buildGuid);
69-
console.log(buildUuid);
67+
console.log(version)
68+
console.log(buildGuid)
69+
console.log(buildUuid)
7070

7171
fs.writeFileSync('.env', ids, (err) => {
7272
if (err) {
73-
console.error(`Could not write env vars: ${err}`);
73+
console.error(`Could not write env vars: ${err}`)
7474
} else {
75-
console.log(`Wrote env vars to .env`);
75+
console.log(`Wrote env vars to .env`)
7676
}
77-
});
77+
})
7878
} else if (action === 'uuid') {
79-
console.log(`${process.env.UUID}`);
79+
console.log(`${process.env.UUID}`)
8080
} else {
81-
console.log(version);
81+
console.log(version)
8282
}
8383

84-
process.exit(0);
84+
process.exit(0)

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"id": "gistr",
33
"name": "Gistr",
4-
"version": "1.6.8",
4+
"version": "1.7.0",
55
"minAppVersion": "1.0.0",
66
"description": "Integrate Opengist and Github gists into your notes, allowing you to create, update, and share between your notes and gist services",
77
"author": "Aetherinox",
88
"authorUrl": "https://github.com/Aetherinox",
99
"isDesktopOnly": false
10-
}
10+
}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gistr",
3-
"version": "1.6.8",
3+
"version": "1.7.0",
44
"description": "Integrate Opengist and Github gists into your notes, allowing you to create, update, and share between your notes and gist services",
55
"author": "Aetherinox",
66
"license": "MIT",

0 commit comments

Comments
 (0)