Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project creation/import #389

Merged
merged 42 commits into from
Sep 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6265983
Clean up
Kitenite Sep 20, 2024
4c1f5fd
Add wheel to carousel
Kitenite Sep 20, 2024
7e55c25
Button transition
Kitenite Sep 20, 2024
1572051
Create folder from project name
Kitenite Sep 20, 2024
eab0837
Clean up
Kitenite Sep 20, 2024
f67bac1
Separate files
Kitenite Sep 20, 2024
a89c867
Merge branch 'main' into features/utils
Kitenite Sep 20, 2024
35462b7
Clean up
Kitenite Sep 20, 2024
3a718a6
Update utils package
Kitenite Sep 20, 2024
9f02516
Abstract create function
Kitenite Sep 20, 2024
41459b7
Save progress
Kitenite Sep 20, 2024
898a8af
Create package
Kitenite Sep 21, 2024
4aa54cf
Working create
Kitenite Sep 21, 2024
1f5d32d
Clean up
Kitenite Sep 21, 2024
d6c1a32
Add docs
Kitenite Sep 21, 2024
081044d
Add degit
Kitenite Sep 21, 2024
dd9bf16
Working create from app
Kitenite Sep 21, 2024
f0b9819
Fully working create flow
Kitenite Sep 21, 2024
1ea4be8
Clean up
Kitenite Sep 21, 2024
a8277d9
Better wheel carousel
Kitenite Sep 21, 2024
8d59ab9
Add verifying step
Kitenite Sep 21, 2024
8e4b561
Update CRA for utils
Kitenite Sep 21, 2024
c482222
Add setup
Kitenite Sep 21, 2024
9771a29
Organize
Kitenite Sep 21, 2024
a7c0ba8
Working verify project
Kitenite Sep 21, 2024
06f143a
Add setup calls
Kitenite Sep 21, 2024
ffe048f
Handle path
Kitenite Sep 21, 2024
234afe5
Working install
Kitenite Sep 22, 2024
90d5c9c
Handle install failed
Kitenite Sep 22, 2024
3f1580b
Clean up
Kitenite Sep 22, 2024
93c04fe
Working @onlook/utils
Kitenite Sep 22, 2024
4385d60
Need to use callback for success and error
Kitenite Sep 22, 2024
61a8f13
Should handle new states
Kitenite Sep 22, 2024
9486fe7
Add states
Kitenite Sep 22, 2024
91213ec
Better verify state
Kitenite Sep 22, 2024
8657583
Better verify states
Kitenite Sep 22, 2024
80c60ce
Working configuration
Kitenite Sep 22, 2024
c5cd21c
Update utils package
Kitenite Sep 22, 2024
d74c865
Merge from main
Kitenite Sep 22, 2024
cd9164f
Update utils package
Kitenite Sep 22, 2024
281efdd
Update random messages
Kitenite Sep 22, 2024
9ce57fa
Clean up
Kitenite Sep 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Organize
Kitenite committed Sep 21, 2024
commit 9771a29d6b9bdf7d69d664b94ded32263314716c
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ export class Framework {
public readonly buildToolName: BUILD_TOOL_NAME
) { }

run = async (): Promise<boolean> => {
setup = async (): Promise<boolean> => {
if (await this.identify()) {
console.log(`This is a ${this.name} project.`);

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions utils/src/setup/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { SetupCallback } from '..';
import { Framework } from './frameworks';
import { Framework } from '../frameworks';

export const setupProject = async (targetPath: string, onProgress: SetupCallback): Promise<void> => {
try {
for (const framework of Framework.getAll()) {
const updated = await framework.run();
const updated = await framework.setup();
if (updated) {
return;
}