-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1900091
commit eadc18f
Showing
96 changed files
with
327 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
node_modules/ | ||
.vscode/ | ||
tests/ | ||
logs/ | ||
tmp/ | ||
release/ | ||
build/ | ||
|
||
# Packages # | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ node_modules/ | |
.vscode/ | ||
docs/ | ||
tests/ | ||
coverage/ | ||
coverage/ | ||
build/ | ||
sample/ |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
0
dist/vedicscript.js → dist/vedic.js
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]", | ||
|
@@ -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" | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.