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

feat(cli): add migrator for cap3 to cap4 #5762

Merged
merged 31 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
162ed9a
feat(cli): add migrator for cap3 to cap4
IT-MikeS Jul 12, 2022
84db5a9
chore: fmt
IT-MikeS Jul 12, 2022
282c969
chore: verbage
IT-MikeS Jul 12, 2022
18bd9bb
chore: version fix for betas
IT-MikeS Jul 12, 2022
ce89d60
chore: cleanup
IT-MikeS Jul 12, 2022
250fb9d
chore: touch ups for spinners and funcs
IT-MikeS Jul 18, 2022
ce13427
chore: fmt
IT-MikeS Jul 18, 2022
0846e12
chore: modify packagejson replacements
IT-MikeS Jul 20, 2022
7008edc
chore: fmt
IT-MikeS Jul 20, 2022
28a9922
chore: use paths from config object
IT-MikeS Jul 20, 2022
0a9ec7d
chore: get variables from template
IT-MikeS Jul 20, 2022
a9fa88f
Update cli/src/tasks/migrate.ts
IT-MikeS Jul 26, 2022
1e0c399
chore: add android 12 splash and podfile postinstall
IT-MikeS Jul 27, 2022
1bcb6ce
chore: npm install fix
IT-MikeS Jul 27, 2022
046e46f
chore: fmt
IT-MikeS Jul 27, 2022
9c28e49
Merge branch 'main' into feat/cap3-to-cap4-migrator
IT-MikeS Jul 27, 2022
575c142
chore: activity path fix
IT-MikeS Jul 27, 2022
b316fc7
chore: post_install add if already exists
IT-MikeS Jul 27, 2022
2c2999b
chore: remove comment for init()
IT-MikeS Jul 27, 2022
5ffdb6e
chore: path fix for require_relative
IT-MikeS Jul 27, 2022
ebdb36d
chore: look for already migrated post_install
IT-MikeS Jul 27, 2022
0dbdf4b
chore: fmt
IT-MikeS Jul 27, 2022
7c0ccd6
chore: remove unused var
IT-MikeS Jul 27, 2022
bbc77b6
chore: remove more unused
IT-MikeS Jul 27, 2022
9d2de4c
chore: move app build.gradle edit logic
IT-MikeS Jul 27, 2022
a48c123
chore: only add if not exists
IT-MikeS Jul 27, 2022
12148ad
chore: check for each dep
IT-MikeS Jul 27, 2022
98b521e
Update cli/src/tasks/migrate.ts
IT-MikeS Jul 27, 2022
b81a46c
chore: fmt
IT-MikeS Jul 27, 2022
ef2f866
chore: more fmt
IT-MikeS Jul 27, 2022
d9db66e
chore: use latest
IT-MikeS Jul 27, 2022
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
14 changes: 13 additions & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function run(): Promise<void> {
try {
const config = await loadConfig();
runProgram(config);
} catch (e) {
} catch (e: any) {
process.exitCode = isFatal(e) ? e.exitCode : 1;
logger.error(e.message ? e.message : String(e));
}
Expand Down Expand Up @@ -224,6 +224,18 @@ export function runProgram(config: Config): void {
}),
);

program
.command('migrate')
.description(
'Migrate your current Capacitor app to the latest major version of Capacitor.',
)
.action(
wrapAction(async () => {
const { migrateCommand } = await import('./tasks/migrate');
await migrateCommand(config);
}),
);

program.arguments('[command]').action(
wrapAction(async cmd => {
if (typeof cmd === 'undefined') {
Expand Down
Loading