Skip to content

Commit 4ef7359

Browse files
Merge pull request #23 from appwrite/upgrade-cli
feat: initial commit
2 parents 345e242 + f17427d commit 4ef7359

File tree

210 files changed

+8903
-4987
lines changed

Some content is hidden

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

210 files changed

+8903
-4987
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/documentation.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build-for-linux-and-windows:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '16.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- name: Setup binfmt with QEMU
15+
run: |
16+
sudo apt install qemu binfmt-support qemu-user-static
17+
update-binfmts --display
18+
- name: Setup ldid
19+
run: |
20+
git clone https://github.com/tpoechtrager/ldid
21+
cd ./ldid
22+
sudo make
23+
sudo make install
24+
- name: Install dependenices and build for Linux and Windows
25+
run: |
26+
npm install
27+
npm run linux-x64
28+
npm run linux-arm64
29+
npm run windows-x64
30+
npm run windows-arm64
31+
npm run mac-x64
32+
npm run mac-arm64
33+
- name: Publish NPM library
34+
run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
- uses: fnkr/github-action-ghr@v1
38+
env:
39+
GHR_PATH: build/
40+
GHR_REPLACE: false
41+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
build/
3+
.DS_Store

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

Formula/appwrite.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require "language/node"
2+
3+
class Appwrite < Formula
4+
desc "CLI is a Node based command-line tool for Appwrite API"
5+
homepage "https://appwrite.io"
6+
license "BSD-3-Clause"
7+
head "https://github.com/appwrite/sdk-for-cli.git", branch: "main"
8+
9+
depends_on "node"
10+
11+
def install
12+
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
13+
bin.install_symlink Dir["#{libexec}/bin/*"]
14+
end
15+
16+
test do
17+
system "true"
18+
end
19+
end
File renamed without changes.

0 commit comments

Comments
 (0)