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

New loco cli generator #980

Merged
merged 45 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f42ae9e
new loco cli generator
kaplanelad Nov 6, 2024
ff1e056
testing v1
kaplanelad Nov 7, 2024
a7c96ee
testing v2
kaplanelad Nov 7, 2024
c7fc853
adding ci test
kaplanelad Nov 7, 2024
954b079
temp remove needs ci
kaplanelad Nov 10, 2024
7fecead
docs: first pass updating "loco-cli"
jondot Nov 10, 2024
8949328
order of instructions similar to loco-cli
jondot Nov 10, 2024
dada9fa
sync templates
jondot Nov 10, 2024
d42e9c0
loco version support local and normal
jondot Nov 13, 2024
171a64c
loco version support local and normal
jondot Nov 13, 2024
31b62a5
loco version support local and normal
jondot Nov 13, 2024
7f62347
loco version support local and normal
jondot Nov 13, 2024
aeb8e2b
loco version support local and normal
jondot Nov 13, 2024
5255d03
loco version support local and normal
jondot Nov 13, 2024
6683ddb
loco version support local and normal
jondot Nov 13, 2024
124badc
loco version support local and normal
jondot Nov 13, 2024
9722f15
loco version support local and normal
jondot Nov 13, 2024
52a2ae0
loco version support local and normal
jondot Nov 13, 2024
01fd0ec
support clientside
jondot Nov 13, 2024
62a36bb
lint
jondot Nov 13, 2024
d95661a
lint
jondot Nov 13, 2024
443513f
lint
jondot Nov 13, 2024
37ddf1c
lint
jondot Nov 13, 2024
599a6f3
lint
jondot Nov 13, 2024
724713f
lint
jondot Nov 13, 2024
8bc5130
lint
jondot Nov 13, 2024
a29d3ee
ci
jondot Nov 14, 2024
085c5b9
ci
jondot Nov 14, 2024
1e0c42b
adjust crate location
jondot Nov 14, 2024
a5cc0fe
migrate gen to loco-new
jondot Nov 14, 2024
1e7463c
migrate gen to loco-new
jondot Nov 14, 2024
7678200
migrate gen to loco-new
jondot Nov 14, 2024
c618c5f
migrate gen to loco-new
jondot Nov 14, 2024
f7f1567
migrate gen to loco-new
jondot Nov 14, 2024
dd1b7fd
migrate gen to loco-new
jondot Nov 14, 2024
756cf2f
migrate gen to loco-new
jondot Nov 14, 2024
dc817ad
new deprecation message
jondot Nov 14, 2024
da60aed
starters test
jondot Nov 14, 2024
697e060
test
jondot Nov 14, 2024
255e779
test
jondot Nov 14, 2024
febcf26
test
jondot Nov 14, 2024
dbf32f4
clippy
jondot Nov 14, 2024
64e5edb
clippy
jondot Nov 14, 2024
24e952b
Merge branch 'master' into new-loco-cli-generator
jondot Nov 14, 2024
0abe489
loco version support local and normal
jondot Nov 13, 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
105 changes: 0 additions & 105 deletions .github/workflows/loco-cli-e2e-master.yaml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/loco-cli-e2e.yaml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/loco-gen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ jobs:
uses: Swatinem/rust-cache@v2

- run: |
cargo install --path ../loco-cli
cargo install --path ../loco-new

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features
env:
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
28 changes: 21 additions & 7 deletions .github/workflows/loco-cli.yml → .github/workflows/loco-new.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: "[loco-cli:ci]"
name: "[loco-new:ci]"

on:
push:
branches:
- master
paths:
- "loco-new/**"
pull_request:
paths:
- "loco-new/**"

env:
RUST_TOOLCHAIN: stable
Expand All @@ -27,13 +31,13 @@ jobs:
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
working-directory: ./loco-cli
working-directory: ./loco-new
- name: Run cargo clippy
run: cargo clippy --all-features -- -D warnings -W clippy::pedantic -W clippy::nursery -W rust-2018-idioms
working-directory: ./loco-cli
working-directory: ./loco-new

test:
needs: [style]
# needs: [style]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -53,8 +57,18 @@ jobs:
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Run cargo test
run: cargo test --all-features --all
working-directory: ./loco-cli
run: cargo test --all-features -- --test-threads 1
working-directory: ./loco-new
env:
LOCO_CI_MODE: 1
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
# NOTE NOTE NOTE: this is for optimizing build and may result in strange behavior
CARGO_TARGET_DIR: /tmp/shared-target
2 changes: 1 addition & 1 deletion .github/workflows/loco-rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace --exclude loco-gen
args: --all-features --workspace --exclude loco-gen --exclude loco
84 changes: 0 additions & 84 deletions .github/workflows/starter-lightweight-service.yml

This file was deleted.

Loading
Loading