Project cleanup
This commit is contained in:
parent
18b330eb9c
commit
d95c8dc278
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,9 +1,3 @@
|
||||
/target
|
||||
node_modules
|
||||
*.wasm
|
||||
|
||||
#Added by cargo
|
||||
#
|
||||
#already existing elements were commented out
|
||||
|
||||
#/target
|
||||
|
6
build.rs
Normal file
6
build.rs
Normal file
@ -0,0 +1,6 @@
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=test.js");
|
||||
println!("cargo:rerun-if-changed=package.json");
|
||||
println!("cargo:rerun-if-changed=package-lock.json");
|
||||
std::process::Command::new("npm").arg("install").output().expect("could not install npm dependencies");
|
||||
}
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,6 +1,8 @@
|
||||
{
|
||||
"requires": true,
|
||||
"name": "pivot",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
|
26
package.json
Normal file
26
package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "pivot",
|
||||
"version": "1.0.0",
|
||||
"description": "Pivot is a new programming language built with Rust by Garen Tyler. Pivot is currently in the alpha stage of development.",
|
||||
"main": "test.js",
|
||||
"dependencies": {
|
||||
"webassembly": "^0.11.0"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"clean": "cargo clean && rm -rf node_modules out.wasm",
|
||||
"build": "cargo build",
|
||||
"run": "cargo run && node test.js",
|
||||
"test": "cargo test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ElementG9/pivot.git"
|
||||
},
|
||||
"author": "Garen Tyler",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ElementG9/pivot/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ElementG9/pivot#readme"
|
||||
}
|
14
readme.md
14
readme.md
@ -1,10 +1,14 @@
|
||||
# Pivot
|
||||
|
||||
## Version
|
||||
Pivot is a new programming language built with Rust by Garen Tyler. Pivot is currently in the alpha stage of development.
|
||||
|
||||
---
|
||||
|
||||
### Installation
|
||||
* Download the repo with `git clone https://github.com/ElementG9/pivot`.
|
||||
* Install [Rust](https://www.rust-lang.org/).
|
||||
* Run with `cargo run <filename>`.
|
||||
### Development
|
||||
* Download the repo with `git clone https://github.com/garentyler/pivot`.
|
||||
* Make sure you have [Rust](https://www.rust-lang.org/), [NodeJS](https://nodejs.org/en/), and [NPM](https://www.npmjs.com/) installed.
|
||||
* Scripts:
|
||||
* `npm run clean` to delete dependencies and output files.
|
||||
* `npm run build` to build the project.
|
||||
* `npm run run` to run the example.
|
||||
* `npm run test` to run the tests.
|
||||
|
Loading…
x
Reference in New Issue
Block a user