Skip to content

Commit

Permalink
📦 v1.2.0 : Mejor release
Browse files Browse the repository at this point in the history
  • Loading branch information
PtPrashantTripathi committed Apr 23, 2022
1 parent 1900091 commit eadc18f
Show file tree
Hide file tree
Showing 96 changed files with 327 additions and 288 deletions.
3 changes: 2 additions & 1 deletion .editorconfig
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
indent_size = 2
singleQuote = true
Empty file modified .eslintignore
100644 → 100755
Empty file.
86 changes: 32 additions & 54 deletions .eslintrc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,57 +1,35 @@
{
"plugins": [
"prefer-arrow-functions"
"env": {
"commonjs": true
},
"rules": {
"comma-dangle": ["error", "never"],
"semi": ["error", "always"],
"indent": ["error", 2],
"quotes": ["error", "single"],
"no-multi-spaces": [
"error",
{
"exceptions": {
"ImportDeclaration": true
}
}
],
"extends": [
"standard"
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"env": {
"commonjs": true
},
"rules": {
"comma-dangle": [
"error",
"never"
],
"semi": [
"error",
"always"
],
"indent": [
"error",
2
],
"quotes": [
"error",
"single"
],
"no-multi-spaces": [
"error",
{
"exceptions": {
"ImportDeclaration": true
}
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-trailing-spaces": [
"error"
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var": [
"error"
]
}
}
"no-trailing-spaces": ["error"],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var": ["error"]
}
}
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/FUNDING.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.md
100644 → 100755
Empty file.
Binary file modified .github/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
node_modules/
.vscode/
tests/
logs/
tmp/
release/
build/

# Packages #
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules/
.vscode/
docs/
tests/
coverage/
coverage/
build/
sample/
Empty file modified .npmrc
100644 → 100755
Empty file.
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion LICENSE
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 vedicscript
Copyright (c) 2022 Vedic

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
32 changes: 11 additions & 21 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
<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>
<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>
<p align="center">
<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>
<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>
<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>
<a href="https://github.com/vedicscript/vedicscript/"><img src="https://img.shields.io/github/stars/vedicscript/vedicscript?style=flat-square" alt="Stars"></a>
<a href="https://github.com/vedicscript/vedicscript/watchers"><img src="https://img.shields.io/github/watchers/vedicscript/vedicscript?style=flat-square" alt="Watches"></a>
<a href="LICENSE.md"><img src="https://img.shields.io/github/license/vedicscript/vedicscript?style=flat-square" alt="License"></a>
<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>
<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>
</p>
<p align="center">
<a href="https://vedicscript.github.io/download">Download</a>·
<a href="https://vedicscript.github.io/">Documentation</a>·
<a href="https://vedicscript.github.io/vedic-ide">Online Ide</a>
<a href="https://vedic-lang.github.io/download">Download</a> ·
<a href="https://vedic-lang.github.io/">Documentation</a> ·
<a href="https://vedic-lang.github.io/vedic-ide">Online Ide</a>
</p>
<p align="center">
<i>Loved the tool? Please consider <a href="https://paypal.me/ptprashanttripathi/10">donating</a> to help it improve!</i><br>
<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>
<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>
<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>
<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>
<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>
</p>

> VedicScript is World first Programming launguage in Sanskrit
> Vedic is World first Programming launguage in Sanskrit
## 📖 Documentation

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

## 👨‍💻 How To Use

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

## 👤 Author

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

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

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

## 🤝 Contributing

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

## 👍 Show your support

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

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

***

Expand Down
52 changes: 52 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#/usr/bin/bash

# variables
PKG_NAME=`node -p "require('./package.json').name"`
PKG_VERSION=`node -p "require('./package.json').version"`
PKG_DESC=`node -p "require('./package.json').description"`
NAME=${PKG_NAME}_${PKG_VERSION}

# creating dir
rm -rf vedic release
mkdir vedic release

# install pkg
if [ "$(pkg -v)" = '' ];
then
echo 'Error: pkg is not installed.'
npm i -g pkg
fi

# build linux binary
echo "Building Linux binary"
pkg -t node14-linux ./main.js --compress GZip --output ./vedic/vedic
tar -czvf ./release/${NAME}_linux.tar.gz ./vedic/vedic

# build deb packages
echo "Building deb packages"
mkdir -p ./vedic/${NAME}/DEBIAN
mkdir -p ./vedic/${NAME}/usr/local/bin/
cp ./vedic/vedic ./vedic/${NAME}/usr/local/bin/vedic
cat << __EOF__ > ./vedic/$NAME/DEBIAN/control
Package: $PKG_NAME
Version: $PKG_VERSION
Section: custom
Priority: optional
Architecture: all
Essential: no
Maintainer: https://github.com/vedic-lang
Description: $PKG_DESC
__EOF__
dpkg-deb --build ./vedic/${NAME}
mv ./vedic/${NAME}.deb ./release/${NAME}.deb


# build windows binary
echo "Building windows binary"
pkg -t node14-win ./main.js --compress GZip --output ./vedic/vedic.exe
zip -r -Z bzip2 ./release/${NAME}_windows.zip . -i ./vedic/vedic.exe

# build macos binary
echo "Building macos binary"
pkg -t node14-mac ./main.js --compress GZip --output ./vedic/vedic
zip -r -Z bzip2 ./release/${NAME}-macos.zip . -i ./vedic/vedic
File renamed without changes.
21 changes: 10 additions & 11 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "vedicscript",
"name": "vedic",
"version": "1.2.0",
"description": "VedicScript is World first Programming launguage in Sanskrit",
"description": "Vedic is World first Programming launguage in Sanskrit",
"license": "MIT",
"repository": "https://github.com/vedicscript/vedicscript",
"repository": "https://github.com/vedic-lang/vedic",
"author": {
"name": "ptprashanttripathi",
"email": "[email protected]",
Expand All @@ -13,27 +13,26 @@
"node": ">=12.x"
},
"keywords": [
"VedicScript",
"Vedic",
"VedicJS"
],
"main": "main.js",
"unpkg": "./dist/vedicscript.js",
"jsdelivr": "./dist/vedicscript.js",
"unpkg": "./dist/vedic.js",
"jsdelivr": "./dist/vedic.js",
"bin": {
"vsc": "main.js",
"vedic": "main.js"
},
"scripts": {
"test": "./test.sh",
"build": "browserify src/interpreter --standalone vedic | uglifyjs -cm > dist/vedicscript.js",
"build": "browserify src/interpreter --standalone vedic | uglifyjs -cm > dist/vedic.js",
"lint": "eslint ./src --fix",
"prettier": "prettier src --write"
"prettier": "prettier src --single-quote --write"
},
"bugs": {
"url": "https://github.com/vedicscript/vedicscript/issues"
"url": "https://github.com/vedic-lang/vedic/issues"
},
"homepage": "https://github.com/vedicscript/vedicscript#readme",
"npmurl": "https://www.npmjs.com/package/vedicscript",
"homepage": "https://github.com/vedic-lang/vedic#readme",
"dependencies": {
"chalk": "^4.0.1",
"yargs-parser": "^21.0.1"
Expand Down
Empty file modified sample/avahan.ved
100644 → 100755
Empty file.
Empty file modified sample/chakram.ved
100644 → 100755
Empty file.
Empty file modified sample/nirdesa.ved
100644 → 100755
Empty file.
Empty file modified sample/operators.ved
100644 → 100755
Empty file.
Empty file modified sample/paryantam.ved
100644 → 100755
Empty file.
Empty file modified sample/simpleinterest.ved
100644 → 100755
Empty file.
Empty file modified sample/suchi.ved
100644 → 100755
Empty file.
Empty file modified sample/sutra.ved
100644 → 100755
Empty file.
Empty file modified sample/viram.ved
100644 → 100755
Empty file.
Empty file modified sample/yadiath.ved
100644 → 100755
Empty file.
34 changes: 23 additions & 11 deletions src/cli/cli.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ const chalk = require('chalk');
module.exports = {
showWelcomeMsg: () => {
console.log(`
${chalk.hex('#ff9933').inverse.bold(' VedicScript ')} ${chalk.hex('#FFF').bold('v' + pkgJSON.version)}
${chalk.hex('#ff9933').inverse.bold(' Vedic ')} ${chalk
.hex('#FFF')
.bold('v' + pkgJSON.version)}
${chalk.hex('#FFF').bold('Use:')} ${chalk.green('vedic')} ${chalk.cyan('[path/to/script.ved]')}
${chalk.hex('#FFF').bold('Use:')} ${chalk.green('vedic')} ${chalk.cyan(
'[path/to/script.ved]'
)}
❯ To see help run command ${chalk.green('vedic')} ${chalk.yellow('--help')}
❯ To see help run command ${chalk.green('vedic')} ${chalk.yellow(
'--help'
)}
`);
},
Expand All @@ -24,15 +30,19 @@ module.exports = {
},
showHelp: () => {
console.log(`
${chalk.hex('#ff9933').inverse.bold(' VedicScript ')}
${chalk.hex('#ff9933').inverse.bold(' Vedic ')}
${chalk.hex('#FFF').bold(' Version :')} ${chalk.whiteBright(pkgJSON.version)}
${chalk.hex('#FFF').bold(' Version :')} ${chalk.whiteBright(
pkgJSON.version
)}
${chalk.hex('#FFF').bold(' Description: ')}
${chalk.whiteBright(pkgJSON.description)}
${chalk.hex('#FFF').bold(' Usage: ')}
${chalk.green('vedic')} ${chalk.cyan('[path/to/script.ved]')} ${chalk.yellow('[--options]')}
${chalk.green('vedic')} ${chalk.cyan(
'[path/to/script.ved]'
)} ${chalk.yellow('[--options]')}
${chalk.hex('#FFF').bold(' Options: ')}
${chalk.yellow('-d --debug')} Run in Debug Mod
Expand All @@ -43,7 +53,9 @@ module.exports = {
${chalk.green('vedic')} ${chalk.cyan('script.ved')}
❯ You can also run command + option at once:
${chalk.green('vedic')} ${chalk.cyan('script.ved')} ${chalk.yellow('-d')}
${chalk.green('vedic')} ${chalk.cyan('script.ved')} ${chalk.yellow(
'-d'
)}
`);
},
end: () => {
Expand All @@ -53,15 +65,15 @@ module.exports = {
alias: {
help: ['h'],
version: ['v'],
debug: ['d']
debug: ['d'],
},
boolean: ['help', 'version', 'debug'],
// string: [{ key: 'output' }],
default: {
help: false,
version: false,
log: false,
debug: false
}
})
debug: false,
},
}),
};
10 changes: 7 additions & 3 deletions src/cli/index.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ if (!cli.input._[0]) {
try {
if (!Extensions.includes(cli.input._[0].split('.').pop())) {
console.log(
chalk.hex('#f44336').inverse.bold(' ERROR: ') + '\n\n' +
chalk.bold('This file type not supported.\n\nSupported file types: ') +
chalk.yellow('[\'v\', \'ved\', \'veda\']') + '\n\n'
chalk.hex('#f44336').inverse.bold(' ERROR: ') +
'\n\n' +
chalk.bold(
'This file type not supported.\n\nSupported file types: '
) +
chalk.yellow("['v', 'ved', 'veda']") +
'\n\n'
);
cli.end();
}
Expand Down
Loading

0 comments on commit eadc18f

Please sign in to comment.