-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1047 from neon-bindings/create-neon-refactor
refactor(create-neon): control flow cleanup
- Loading branch information
Showing
22 changed files
with
468 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[workspace] | ||
members = ["crates/{{package.name}}"] | ||
members = ["crates/{{crate.name}}"] | ||
resolver = "2" |
4 changes: 0 additions & 4 deletions
4
pkgs/create-neon/data/templates/ci/github/manifest/scripts.json.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
pkgs/create-neon/data/templates/manifest/base/default.json.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Creator, ProjectOptions } from "./creator.js"; | ||
|
||
export class AppCreator extends Creator { | ||
constructor(options: ProjectOptions) { | ||
super(options); | ||
} | ||
|
||
scripts(): Record<string, string> { | ||
return { | ||
test: "cargo test", | ||
"cargo-build": "cargo build --message-format=json > cargo.log", | ||
"cross-build": "cross build --message-format=json > cross.log", | ||
"postcargo-build": "neon dist < cargo.log", | ||
"postcross-build": "neon dist -m /target < cross.log", | ||
debug: "npm run cargo-build --", | ||
build: "npm run cargo-build -- --release", | ||
cross: "npm run cross-build -- --release", | ||
}; | ||
} | ||
} |
Oops, something went wrong.