Skip to content

Commit eadc18f

Browse files
📦 v1.2.0 : Mejor release
1 parent 1900091 commit eadc18f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+327
-288
lines changed

.editorconfig

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ end_of_line = lf
55
charset = utf-8
66
trim_trailing_whitespace = true
77
indent_style = space
8-
indent_size = 2
8+
indent_size = 2
9+
singleQuote = true

.eslintignore

100644100755
File mode changed.

.eslintrc

100644100755
+32-54
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,35 @@
11
{
2-
"plugins": [
3-
"prefer-arrow-functions"
2+
"env": {
3+
"commonjs": true
4+
},
5+
"rules": {
6+
"comma-dangle": ["error", "never"],
7+
"semi": ["error", "always"],
8+
"indent": ["error", 2],
9+
"quotes": ["error", "single"],
10+
"no-multi-spaces": [
11+
"error",
12+
{
13+
"exceptions": {
14+
"ImportDeclaration": true
15+
}
16+
}
417
],
5-
"extends": [
6-
"standard"
18+
"no-multiple-empty-lines": [
19+
"error",
20+
{
21+
"max": 1
22+
}
723
],
8-
"env": {
9-
"commonjs": true
10-
},
11-
"rules": {
12-
"comma-dangle": [
13-
"error",
14-
"never"
15-
],
16-
"semi": [
17-
"error",
18-
"always"
19-
],
20-
"indent": [
21-
"error",
22-
2
23-
],
24-
"quotes": [
25-
"error",
26-
"single"
27-
],
28-
"no-multi-spaces": [
29-
"error",
30-
{
31-
"exceptions": {
32-
"ImportDeclaration": true
33-
}
34-
}
35-
],
36-
"no-multiple-empty-lines": [
37-
"error",
38-
{
39-
"max": 1
40-
}
41-
],
42-
"no-trailing-spaces": [
43-
"error"
44-
],
45-
"no-unused-vars": [
46-
"error",
47-
{
48-
"vars": "all",
49-
"args": "after-used",
50-
"ignoreRestSiblings": false
51-
}
52-
],
53-
"no-var": [
54-
"error"
55-
]
56-
}
57-
}
24+
"no-trailing-spaces": ["error"],
25+
"no-unused-vars": [
26+
"error",
27+
{
28+
"vars": "all",
29+
"args": "after-used",
30+
"ignoreRestSiblings": false
31+
}
32+
],
33+
"no-var": ["error"]
34+
}
35+
}

.gitattributes

100644100755
File mode changed.

.github/FUNDING.yml

100644100755
File mode changed.

.github/ISSUE_TEMPLATE/bug_report.md

100644100755
File mode changed.

.github/ISSUE_TEMPLATE/feature_request.md

100644100755
File mode changed.

.github/logo.png

100644100755
-796 Bytes
Loading

.gitignore

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
node_modules/
55
.vscode/
66
tests/
7-
logs/
7+
tmp/
8+
release/
89
build/
910

1011
# Packages #

.npmignore

100644100755
+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ node_modules/
22
.vscode/
33
docs/
44
tests/
5-
coverage/
5+
coverage/
6+
build/
7+
sample/

.npmrc

100644100755
File mode changed.

CODE_OF_CONDUCT.md

100644100755
File mode changed.

CONTRIBUTING.md

100644100755
File mode changed.

LICENSE

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 vedicscript
3+
Copyright (c) 2022 Vedic
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

100644100755
+11-21
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,30 @@
1-
<p align="center"><a href="https://vedicscript.github.io"><img alt="VedicScript" src="https://raw.githubusercontent.com/vedicscript/vedicscript/HEAD/.github/logo.png" width="300vw"/></a></p>
1+
<p align="center"><a href="https://vedic-lang.github.io"><img alt="Vedic" src="https://raw.githubusercontent.com/vedic-lang/vedic/HEAD/.github/logo.png" width="300vw"/></a></p>
22
<p align="center">
3-
<a href="https://www.npmjs.com/package/vedicscript"><img src="https://img.shields.io/npm/v/vedicscript.svg?style=flat-square" alt="NPM Version"></a>
4-
<a href="https://npmjs.org/package/vedicscript"><img src="https://img.shields.io/npm/dt/vedicscript.svg?style=flat-square" alt="NPM Monthly Downloads"></a>
5-
<a href="https://github.com/vedicscript/vedicscript/network/members"><img src="https://img.shields.io/github/forks/vedicscript/vedicscript?style=flat-square" alt="Forks"></a>
6-
<a href="https://github.com/vedicscript/vedicscript/"><img src="https://img.shields.io/github/stars/vedicscript/vedicscript?style=flat-square" alt="Stars"></a>
7-
<a href="https://github.com/vedicscript/vedicscript/watchers"><img src="https://img.shields.io/github/watchers/vedicscript/vedicscript?style=flat-square" alt="Watches"></a>
8-
<a href="LICENSE.md"><img src="https://img.shields.io/github/license/vedicscript/vedicscript?style=flat-square" alt="License"></a>
9-
<a href="https://vedicscript.github.io"><img src="https://img.shields.io/website/https/vedicscript.github.io.svg?down_message=Down&amp;up_message=Online&amp;style=flat-square" alt="Website Status"></a>
10-
<a href="https://github.com/vedicscript/vedicscript/commits/"><img src="https://img.shields.io/github/last-commit/vedicscript/vedicscript?style=flat-square" alt="Last Commit"></a>
11-
</p>
12-
<p align="center">
13-
<a href="https://vedicscript.github.io/download">Download</a>·
14-
<a href="https://vedicscript.github.io/">Documentation</a>·
15-
<a href="https://vedicscript.github.io/vedic-ide">Online Ide</a>
3+
<a href="https://vedic-lang.github.io/download">Download</a> ·
4+
<a href="https://vedic-lang.github.io/">Documentation</a> ·
5+
<a href="https://vedic-lang.github.io/vedic-ide">Online Ide</a>
166
</p>
177
<p align="center">
188
<i>Loved the tool? Please consider <a href="https://paypal.me/ptprashanttripathi/10">donating</a> to help it improve!</i><br>
199
<a href="https://paypal.me/PtPrashantTripathi"><img height='23' src="https://img.shields.io/badge/support-PayPal-blue?logo=PayPal&style=flat-square&label=Donate" alt="Donate"/></a>
2010
<a href='https://ko-fi.com/ptprashanttripathi' target='_blank'><img height='23' width="100" src='https://cdn.ko-fi.com/cdn/kofi3.png?v=2' alt='Buy Coffee for ptprashanttripathi' /></a>
2111
<a href="https://www.buymeacoffee.com/ptprashant09" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="23" width="100" style="border-radius:1px" /></a>
22-
<a href="https://ptprashanttripathi.github.io/VedicScript?pa=pt1997@ybl&pn=Pt.+Prashant+Tripati" target="_blank"><img src="https://raw.githubusercontent.com/ptprashanttripathi/linkpe/main/img/linkpebadge.svg" alt="Support Via UPI" height="23" style="border-radius:1px" /></a>
12+
<a href="https://ptprashanttripathi.github.io/Vedic?pa=pt1997@ybl&pn=Pt.+Prashant+Tripati" target="_blank"><img src="https://raw.githubusercontent.com/ptprashanttripathi/linkpe/main/img/linkpebadge.svg" alt="Support Via UPI" height="23" style="border-radius:1px" /></a>
2313
</p>
2414

25-
> VedicScript is World first Programming launguage in Sanskrit
15+
> Vedic is World first Programming launguage in Sanskrit
2616
2717
## 📖 Documentation
2818

29-
VedicScript Documentation are available at [vedicscript.github.io](https://vedicscript.github.io/)
19+
Vedic Documentation are available at [vedic-lang.github.io](https://vedic-lang.github.io/)
3020

3121
## 👨‍💻 How To Use
3222

33-
Vedic Script is very easy to set up, just follow the [Install Instructions](hhttps://vedicscript.github.io/how-to-use) for your system
23+
Vedic Script is very easy to set up, just follow the [Install Instructions](hhttps://vedic-lang.github.io/how-to-use) for your system
3424

3525
## 👤 Author
3626

37-
<p><a href="https://github.com/vedicscript"><img width="60" src="https://avatars2.githubusercontent.com/u/26687933?s=200&v=4"/></a></p>
27+
<p><a href="https://github.com/vedic"><img width="60" src="https://avatars2.githubusercontent.com/u/26687933?s=200&v=4"/></a></p>
3828

3929
[**Pt. Prashant Tripathi**](https://github.com/ptprashanttripathi)
4030

@@ -45,7 +35,7 @@ Vedic Script is very easy to set up, just follow the [Install Instructions](hhtt
4535

4636
## 🤝 Contributing
4737

48-
Contributions, issues and feature requests are welcome!<br />Feel free to check [Contributing Guide](https://github.com/vedicscript/vedicscript/blob/main/CONTRIBUTING.md).
38+
Contributions, issues and feature requests are welcome!<br />Feel free to check [Contributing Guide](https://github.com/vedic-lang/vedic/blob/main/CONTRIBUTING.md).
4939

5040
## 👍 Show your support
5141

@@ -56,7 +46,7 @@ Give a ⭐️ if this project helped you!
5646
## 📝 License
5747

5848
Copyright © 2022 [Pt. Prashant Tripathi](https://github.com/ptprashanttripathi).<br />
59-
This project is [MIT](https://github.com/vedicscript/vedicscript/blob/main/LICENSE) licensed.
49+
This project is [MIT](https://github.com/vedic-lang/vedic/blob/main/LICENSE) licensed.
6050

6151
***
6252

build.sh

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#/usr/bin/bash
2+
3+
# variables
4+
PKG_NAME=`node -p "require('./package.json').name"`
5+
PKG_VERSION=`node -p "require('./package.json').version"`
6+
PKG_DESC=`node -p "require('./package.json').description"`
7+
NAME=${PKG_NAME}_${PKG_VERSION}
8+
9+
# creating dir
10+
rm -rf vedic release
11+
mkdir vedic release
12+
13+
# install pkg
14+
if [ "$(pkg -v)" = '' ];
15+
then
16+
echo 'Error: pkg is not installed.'
17+
npm i -g pkg
18+
fi
19+
20+
# build linux binary
21+
echo "Building Linux binary"
22+
pkg -t node14-linux ./main.js --compress GZip --output ./vedic/vedic
23+
tar -czvf ./release/${NAME}_linux.tar.gz ./vedic/vedic
24+
25+
# build deb packages
26+
echo "Building deb packages"
27+
mkdir -p ./vedic/${NAME}/DEBIAN
28+
mkdir -p ./vedic/${NAME}/usr/local/bin/
29+
cp ./vedic/vedic ./vedic/${NAME}/usr/local/bin/vedic
30+
cat << __EOF__ > ./vedic/$NAME/DEBIAN/control
31+
Package: $PKG_NAME
32+
Version: $PKG_VERSION
33+
Section: custom
34+
Priority: optional
35+
Architecture: all
36+
Essential: no
37+
Maintainer: https://github.com/vedic-lang
38+
Description: $PKG_DESC
39+
__EOF__
40+
dpkg-deb --build ./vedic/${NAME}
41+
mv ./vedic/${NAME}.deb ./release/${NAME}.deb
42+
43+
44+
# build windows binary
45+
echo "Building windows binary"
46+
pkg -t node14-win ./main.js --compress GZip --output ./vedic/vedic.exe
47+
zip -r -Z bzip2 ./release/${NAME}_windows.zip . -i ./vedic/vedic.exe
48+
49+
# build macos binary
50+
echo "Building macos binary"
51+
pkg -t node14-mac ./main.js --compress GZip --output ./vedic/vedic
52+
zip -r -Z bzip2 ./release/${NAME}-macos.zip . -i ./vedic/vedic

dist/vedicscript.js dist/vedic.js

File renamed without changes.

package.json

100644100755
+10-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "vedicscript",
2+
"name": "vedic",
33
"version": "1.2.0",
4-
"description": "VedicScript is World first Programming launguage in Sanskrit",
4+
"description": "Vedic is World first Programming launguage in Sanskrit",
55
"license": "MIT",
6-
"repository": "https://github.com/vedicscript/vedicscript",
6+
"repository": "https://github.com/vedic-lang/vedic",
77
"author": {
88
"name": "ptprashanttripathi",
99
"email": "[email protected]",
@@ -13,27 +13,26 @@
1313
"node": ">=12.x"
1414
},
1515
"keywords": [
16-
"VedicScript",
16+
"Vedic",
1717
"VedicJS"
1818
],
1919
"main": "main.js",
20-
"unpkg": "./dist/vedicscript.js",
21-
"jsdelivr": "./dist/vedicscript.js",
20+
"unpkg": "./dist/vedic.js",
21+
"jsdelivr": "./dist/vedic.js",
2222
"bin": {
2323
"vsc": "main.js",
2424
"vedic": "main.js"
2525
},
2626
"scripts": {
2727
"test": "./test.sh",
28-
"build": "browserify src/interpreter --standalone vedic | uglifyjs -cm > dist/vedicscript.js",
28+
"build": "browserify src/interpreter --standalone vedic | uglifyjs -cm > dist/vedic.js",
2929
"lint": "eslint ./src --fix",
30-
"prettier": "prettier src --write"
30+
"prettier": "prettier src --single-quote --write"
3131
},
3232
"bugs": {
33-
"url": "https://github.com/vedicscript/vedicscript/issues"
33+
"url": "https://github.com/vedic-lang/vedic/issues"
3434
},
35-
"homepage": "https://github.com/vedicscript/vedicscript#readme",
36-
"npmurl": "https://www.npmjs.com/package/vedicscript",
35+
"homepage": "https://github.com/vedic-lang/vedic#readme",
3736
"dependencies": {
3837
"chalk": "^4.0.1",
3938
"yargs-parser": "^21.0.1"

sample/avahan.ved

100644100755
File mode changed.

sample/chakram.ved

100644100755
File mode changed.

sample/nirdesa.ved

100644100755
File mode changed.

sample/operators.ved

100644100755
File mode changed.

sample/paryantam.ved

100644100755
File mode changed.

sample/simpleinterest.ved

100644100755
File mode changed.

sample/suchi.ved

100644100755
File mode changed.

sample/sutra.ved

100644100755
File mode changed.

sample/viram.ved

100644100755
File mode changed.

sample/yadiath.ved

100644100755
File mode changed.

src/cli/cli.js

100644100755
+23-11
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ const chalk = require('chalk');
1111
module.exports = {
1212
showWelcomeMsg: () => {
1313
console.log(`
14-
${chalk.hex('#ff9933').inverse.bold(' VedicScript ')} ${chalk.hex('#FFF').bold('v' + pkgJSON.version)}
14+
${chalk.hex('#ff9933').inverse.bold(' Vedic ')} ${chalk
15+
.hex('#FFF')
16+
.bold('v' + pkgJSON.version)}
1517
16-
${chalk.hex('#FFF').bold('Use:')} ${chalk.green('vedic')} ${chalk.cyan('[path/to/script.ved]')}
18+
${chalk.hex('#FFF').bold('Use:')} ${chalk.green('vedic')} ${chalk.cyan(
19+
'[path/to/script.ved]'
20+
)}
1721
18-
❯ To see help run command ${chalk.green('vedic')} ${chalk.yellow('--help')}
22+
❯ To see help run command ${chalk.green('vedic')} ${chalk.yellow(
23+
'--help'
24+
)}
1925
2026
`);
2127
},
@@ -24,15 +30,19 @@ module.exports = {
2430
},
2531
showHelp: () => {
2632
console.log(`
27-
${chalk.hex('#ff9933').inverse.bold(' VedicScript ')}
33+
${chalk.hex('#ff9933').inverse.bold(' Vedic ')}
2834
29-
${chalk.hex('#FFF').bold(' Version :')} ${chalk.whiteBright(pkgJSON.version)}
35+
${chalk.hex('#FFF').bold(' Version :')} ${chalk.whiteBright(
36+
pkgJSON.version
37+
)}
3038
3139
${chalk.hex('#FFF').bold(' Description: ')}
3240
${chalk.whiteBright(pkgJSON.description)}
3341
3442
${chalk.hex('#FFF').bold(' Usage: ')}
35-
${chalk.green('vedic')} ${chalk.cyan('[path/to/script.ved]')} ${chalk.yellow('[--options]')}
43+
${chalk.green('vedic')} ${chalk.cyan(
44+
'[path/to/script.ved]'
45+
)} ${chalk.yellow('[--options]')}
3646
3747
${chalk.hex('#FFF').bold(' Options: ')}
3848
${chalk.yellow('-d --debug')} Run in Debug Mod
@@ -43,7 +53,9 @@ module.exports = {
4353
${chalk.green('vedic')} ${chalk.cyan('script.ved')}
4454
4555
❯ You can also run command + option at once:
46-
${chalk.green('vedic')} ${chalk.cyan('script.ved')} ${chalk.yellow('-d')}
56+
${chalk.green('vedic')} ${chalk.cyan('script.ved')} ${chalk.yellow(
57+
'-d'
58+
)}
4759
`);
4860
},
4961
end: () => {
@@ -53,15 +65,15 @@ module.exports = {
5365
alias: {
5466
help: ['h'],
5567
version: ['v'],
56-
debug: ['d']
68+
debug: ['d'],
5769
},
5870
boolean: ['help', 'version', 'debug'],
5971
// string: [{ key: 'output' }],
6072
default: {
6173
help: false,
6274
version: false,
6375
log: false,
64-
debug: false
65-
}
66-
})
76+
debug: false,
77+
},
78+
}),
6779
};

src/cli/index.js

100644100755
+7-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ if (!cli.input._[0]) {
3535
try {
3636
if (!Extensions.includes(cli.input._[0].split('.').pop())) {
3737
console.log(
38-
chalk.hex('#f44336').inverse.bold(' ERROR: ') + '\n\n' +
39-
chalk.bold('This file type not supported.\n\nSupported file types: ') +
40-
chalk.yellow('[\'v\', \'ved\', \'veda\']') + '\n\n'
38+
chalk.hex('#f44336').inverse.bold(' ERROR: ') +
39+
'\n\n' +
40+
chalk.bold(
41+
'This file type not supported.\n\nSupported file types: '
42+
) +
43+
chalk.yellow("['v', 'ved', 'veda']") +
44+
'\n\n'
4145
);
4246
cli.end();
4347
}

0 commit comments

Comments
 (0)