Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit fca2710

Browse files
committed
we are lift off
1 parent b1db2b6 commit fca2710

File tree

6 files changed

+46
-15
lines changed

6 files changed

+46
-15
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ providing the flexibility needed to achieve our mission
1111
### Getting Started
1212

1313
You can use this starter template to playaround with it
14-
[backpack-starter](https://github.com/codebenderhq/backpack-starter)
14+
[backpack-frame](https://github.com/codebenderhq/backpack-frame)
1515

1616
### sauveur cloud
1717

@@ -34,6 +34,7 @@ deno install
3434
deno task sdk will be for people who would like to import their packages beforehand by specifying it there without the npm
3535

3636
### grape cli
37+
Grape is an innovative CLI that helps you quickly connect your community with apps you created. It offers powerful tools to build your perfect app, plus features to easily create, manage, and deploy it. With Grape, building and sharing your app is easy.
3738
```create `type` `name` for `instance```
3839

3940
page

frame-starter/LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>

frame-starter/deno.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
"dev-unsecure" : "deno run -A grape.js tw & export LOCAL=./src && deno run -A --unsafely-ignore-certificate-errors --watch=./src/ index.js",
44
"dev" : "deno run -A grape.js tw & export LOCAL=./src && deno run -A --watch=./src/ index.js",
55
"run" : "deno run -A grape.js build & export LOCAL=./src && deno run -A --watch=./src/ index.js",
6-
"test": " deno task build && deno test ./qa --allow-run --allow-net --allow-env --allow-read --import-map ./src/import_map.json ",
7-
"bundle": "deno bundle --watch ./src/_server/index.js server.js ",
8-
"reload": "deno cache --import-map ./src/import_map.json --reload ./src/server/index.js",
9-
"init": "chmod +x style && ./style",
10-
"setup": "curl -sLO https://github.com/codebenderhq/backpack/releases/latest/download/binary.zip && unzip binary.zip",
11-
"tag": "git tag -a"
6+
"init": "chmod +x style && ./style"
127
}
138
}

frame-starter/readme.md

Whitespace-only changes.

frame-starter/style

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
echo 'downloading ' & \
4+
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64 && \
5+
6+
echo 'configuring' && mv tailwindcss-macos-arm64 tailwindcss && \
7+
8+
echo 'finalizing ' && chmod +x tailwindcss

grape.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ const cmdRun = async(command,msg) => {
1010

1111
const {code} = await p.status
1212
// const rawOutput = await p.output();
13-
const rawError = await p.stderrOutput();
14-
console.log(msg)
13+
const rawError = await p.stderrOutput();
14+
// console.log(msg)
1515

16+
console.log(code)
1617
if (code === 0) {
1718
// await Deno.stdout.write(rawOutput);
1819
} else {
19-
const errorString = new TextDecoder().decode(rawError);
20-
console.log(errorString);
20+
// const errorString = new TextDecoder().decode(rawError);
21+
// console.log(errorString);
2122
}
2223
}
2324
const upgrade = async () => {
@@ -91,12 +92,14 @@ const prodServe = async () => {
9192

9293
}
9394

94-
const new_project = async () => {
95-
const frame_installer = 'curl -sLO https://github.com/codebenderhq/backpack/releases/latest/download/binary.zip'
96-
const unzip_installer = 'unzip binary.zip'
95+
const new_project = async (name) => {
96+
const frame_installer = 'curl -sLO https://github.com/codebenderhq/backpack-frame/archive/refs/heads/main.zip'
97+
const unzip_installer = `unzip -q main.zip`
98+
const rename_zip = `mv backpack-frame-main ${name}`
9799

98100
await cmdRun(frame_installer,'FRAME installed')
99101
await cmdRun(unzip_installer,'FRAME ready to be used')
102+
await cmdRun(rename_zip,'FRAME ready to be used')
100103
}
101104

102105
const deno_task = async (arg) => {
@@ -157,7 +160,7 @@ if (import.meta.main) {
157160
{
158161
switch (args[0]) {
159162
case "new":
160-
await new_project()
163+
await new_project(args[1])
161164
break;
162165
case "create":
163166
await generate(args)

0 commit comments

Comments
 (0)