Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Irfianto committed Apr 10, 2021
0 parents commit 6e53756
Show file tree
Hide file tree
Showing 17 changed files with 1,390 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "link-args=-s"]
12 changes: 12 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 1
update_configs:
- package_manager: "rust:cargo"
directory: "/"
update_schedule: "live"
automerged_updates:
- match:
dependency_type: "development"
update_type: "all"
- match:
dependency_type: "production"
update_type: "all"
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Build files
target

# IDE
.idea

# Key pairs generated by the NEAR shell
neardev

# Misc
.DS_Store

# Dependencies
node_modules
6 changes: 6 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM gitpod/workspace-full

RUN bash -cl "rustup toolchain install stable && rustup target add wasm32-unknown-unknown"

RUN bash -c ". .nvm/nvm.sh \
&& nvm install v12 && nvm alias default v12"
33 changes: 33 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
image:
file: .gitpod.Dockerfile
# Options to prebuild the image after github events and set notifications/badges
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: true
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false

# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- before: nvm use default
init: npm install near-cli -g --no-optional
command: gp open README-Gitpod.md && near dev-deploy --wasmFile ./res/status_message.wasm && source ./neardev/dev-account.env

vscode:
extensions:
- [email protected]:koqDUMWDPJzELp/hdS/lWw==
- [email protected]:Xg+YeZZQiVpVUsIkH+uiiw==
- [email protected]:3QfgGxxYtGHfJKQU7H0nEw==
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
node_js:
- 12.0
os:
- linux
- osx
- windows
before_install:
- curl https://sh.rustup.rs -sSf -m 60 | sh -s -- -y -v --default-toolchain stable
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then HOME="/c/Users/travis"; fi
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup target add wasm32-unknown-unknown
script:
- npm run build
- cargo test --package status-message -- --nocapture
Loading

0 comments on commit 6e53756

Please sign in to comment.