1193 Commits

Author SHA1 Message Date
Francesco Paolo Severino
4d362f391c
Update installation guide (#475)
* Update installation guide

* Update README.md

Co-authored-by: Paul Toffoloni <69189821+ptoffy@users.noreply.github.com>

---------

Co-authored-by: Paul Toffoloni <69189821+ptoffy@users.noreply.github.com>
2025-03-18 18:58:27 +00:00
Francesco Paolo Severino
7998dd4acc
New simplified rewrite of the Vapor Toolbox (#471)
* New simplified rewrite of the Vapor Toolbox

* Fix CI

* Refactor `TemplateRenderer` to dynamically handle Fluent database options

* Align `template` option name to old Toolbox

* Fix command name

* First attempt at dynamic arguments

* Support nested variable conditions for file rendering in `manifest.yml`

* Use Swift 6 language mode

* Remove `Mutex`

* swift format

* Remove redundant calls

* Group mandatory options in help view

* Try using `ubuntu-22.04` in CI

* Try using `latest` Swift in CI

* Add basic tests

* Update Dockerfile

* Update README

* Fix default value to `false` for top level of nested variables

* Fix nested variables bug

* Update README

* First attempt at asking unresolved variables to user

* Add `-n` flag

* Refactor `which` and add more docs

* Dynamically get Toolbox version via Homebrew

* Add test for issue `which` fails on macOS #403

* Remove Ubuntu CodeQL job

* Use new Swift Regex API

* Add unit testing in CI

* Try fixing CI

* Fix CI

* Move entrypoint to `Vapor`

* Improve documentation

* Make option description optional

* Improve documentation

* Add centered prints

* Add `--manifest` flag to specify manifest file path

* Add `--json` flag

* Make the linter happy

* Make it run on Musl

* Rename `--json` to `--dump-variables`

* Improve `which` test

* Update README.md

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>

* Update Sources/VaporToolbox/Util/PrintUtilities.swift

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>

* Remove custom `TemplateManifest.Variable` equality operator

* Handle UTF-8 encoding error when dumping JSON

* Add short lowercase flag for `--template`

* Remove unused `import`s

* Add again uppercase short flag for `--template`

* Update Package.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update README.md

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update README.md

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update New.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update New.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update New.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update New.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update TemplateManifest.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update TemplateRenderer.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update TemplateRenderer.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update TemplateRenderer.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update Vapor.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Update PrintUtilities.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Fix typo

* Remove uppercase template flag

* Add Android and Windows to CI

* Remove CodeQL

* Try fixing Android

* Remove MongoDB integration tests

* Enable MySQL Linux integration in CI

* Disable MySQL Linux integration in CI

* Fix typo in README

* Fix bug in first commit

* Try fixing Windows build

* Remove Windows CI

---------

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
19.0.0
2025-03-17 20:25:05 +00:00
Tim Condon
3e9a23ad47
Update Swift Versions (#456) 2024-05-13 16:59:52 +02:00
dependabot[bot]
f2f2ae2769
Bump the all-dependencies group with 1 update (#453)
Bumps the all-dependencies group with 1 update: [github.com/jpsim/yams](https://github.com/jpsim/Yams).


Updates `github.com/jpsim/yams` from 5.0.6 to 5.1.0
- [Release notes](https://github.com/jpsim/Yams/releases)
- [Commits](https://github.com/jpsim/Yams/compare/5.0.6...5.1.0)

---
updated-dependencies:
- dependency-name: github.com/jpsim/yams
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-30 14:02:34 +00:00
Brandon Maul
fa5cc084c7
Errors are now properly handled in build script (#450) 2024-03-20 17:27:33 +00:00
dependabot[bot]
6e5b78e9d1
Bump the all-dependencies group with 1 update (#452)
Bumps the all-dependencies group with 1 update: [github.com/apple/swift-nio](https://github.com/apple/swift-nio).


Updates `github.com/apple/swift-nio` from 2.63.0 to 2.64.0
- [Release notes](https://github.com/apple/swift-nio/releases)
- [Commits](https://github.com/apple/swift-nio/compare/2.63.0...2.64.0)

---
updated-dependencies:
- dependency-name: github.com/apple/swift-nio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 00:33:44 +00:00
Gwynne Raskind
749ec0dd30
Fix Homebrew workflow 18.7.5 2024-03-03 17:04:53 -06:00
Gwynne Raskind
67177b8bec
Fix Homebrew workflow 2024-03-03 16:50:13 -06:00
Gwynne Raskind
5b903e9e4e
Fix Homebrew workflow 2024-03-03 16:48:35 -06:00
Gwynne Raskind
82bce530ec
Fix Homebrew workflow 2024-03-03 16:43:21 -06:00
Gwynne Raskind
206e8d0c87
Use the new updated Mustache package in vapor-community, fixes building on Arch Linux (#451) 2024-03-03 16:39:55 -06:00
dependabot[bot]
e76439f4c5
Bump the all-dependencies group with 1 update (#448)
Bumps the all-dependencies group with 1 update: [github.com/apple/swift-collections](https://github.com/apple/swift-collections).


Updates `github.com/apple/swift-collections` from 1.0.6 to 1.1.0
- [Release notes](https://github.com/apple/swift-collections/releases)
- [Commits](https://github.com/apple/swift-collections/compare/1.0.6...1.1.0)

---
updated-dependencies:
- dependency-name: github.com/apple/swift-collections
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-14 13:52:50 +00:00
dependabot[bot]
9023a5dd18
Bump the all-dependencies group with 4 updates (#444)
Bumps the all-dependencies group with 4 updates: [github.com/apple/swift-nio](https://github.com/apple/swift-nio), [github.com/apple/swift-collections](https://github.com/apple/swift-collections), [github.com/vapor/console-kit](https://github.com/vapor/console-kit) and [github.com/apple/swift-log](https://github.com/apple/swift-log).


Updates `github.com/apple/swift-nio` from 2.61.1 to 2.63.0
- [Release notes](https://github.com/apple/swift-nio/releases)
- [Commits](https://github.com/apple/swift-nio/compare/2.61.1...2.63.0)

Updates `github.com/apple/swift-collections` from 1.0.5 to 1.0.6
- [Release notes](https://github.com/apple/swift-collections/releases)
- [Commits](https://github.com/apple/swift-collections/compare/1.0.5...1.0.6)

Updates `github.com/vapor/console-kit` from 4.10.1 to 4.14.1
- [Release notes](https://github.com/vapor/console-kit/releases)
- [Commits](https://github.com/vapor/console-kit/compare/4.10.1...4.14.1)

Updates `github.com/apple/swift-log` from 1.5.3 to 1.5.4
- [Release notes](https://github.com/apple/swift-log/releases)
- [Commits](https://github.com/apple/swift-log/compare/1.5.3...1.5.4)

---
updated-dependencies:
- dependency-name: github.com/apple/swift-nio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: github.com/apple/swift-collections
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: github.com/vapor/console-kit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: github.com/apple/swift-log
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2024-01-25 11:52:50 +00:00
dependabot[bot]
8a1eaabc69
Bump the dependencies group with 1 update (#438)
Bumps the dependencies group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).

- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 11:23:23 +00:00
Gwynne Raskind
d0714fd610
[skip ci] Update dependabot.yml 2023-11-15 08:16:40 -06:00
Gwynne Raskind
2d7e11eff0
Revolutionize homebrew bump workflow (#429)
* Revolutionize homebrew bump workflow
* Use correct commit info for Penny
2023-11-11 18:02:54 -06:00
dependabot[bot]
d9d1bc49aa
Bump the dependencies group with 2 updates (#427)
Bumps the dependencies group with 2 updates: [github.com/apple/swift-nio](https://github.com/apple/swift-nio) and [github.com/vapor/console-kit](https://github.com/vapor/console-kit).


Updates `github.com/apple/swift-nio` from 2.59.0 to 2.61.1
- [Release notes](https://github.com/apple/swift-nio/releases)
- [Commits](https://github.com/apple/swift-nio/compare/2.59.0...2.61.1)

Updates `github.com/vapor/console-kit` from 4.9.0 to 4.10.1
- [Release notes](https://github.com/vapor/console-kit/releases)
- [Commits](https://github.com/vapor/console-kit/compare/4.9.0...4.10.1)

---
updated-dependencies:
- dependency-name: github.com/apple/swift-nio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: github.com/vapor/console-kit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-11 12:04:48 -06:00
dependabot[bot]
8780315127
Bump the dependencies group with 1 update (#420)
Bumps the dependencies group with 1 update: [github.com/vapor/console-kit](https://github.com/vapor/console-kit).

- [Release notes](https://github.com/vapor/console-kit/releases)
- [Commits](https://github.com/vapor/console-kit/compare/4.8.1...4.9.0)

---
updated-dependencies:
- dependency-name: github.com/vapor/console-kit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
18.7.4
2023-10-12 07:35:50 -05:00
Łukasz Wieczorek
bb8e83999b
Change commit message in new project generation. (#418) 2023-10-09 14:11:19 +00:00
Gwynne Raskind
9a8f173919
[no ci] Update dependabot.yml 2023-10-09 07:57:57 -05:00
dependabot[bot]
60110a6a4a
Bump the dependencies group with 1 update (#419)
* Bump the dependencies group with 1 update

Bumps the dependencies group with 1 update: [github.com/jpsim/yams](https://github.com/jpsim/Yams).

- [Release notes](https://github.com/jpsim/Yams/releases)
- [Commits](https://github.com/jpsim/Yams/compare/4.0.6...5.0.6)

---
updated-dependencies:
- dependency-name: github.com/jpsim/yams
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add CodeQL run to CI

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
18.7.2 18.7.3
2023-10-09 07:36:31 -05:00
Gwynne Raskind
2e4dfca364
[no ci] Commit an up to date Package.resolved, add Dependabot config, fix a couple minor bits 2023-10-09 05:16:48 -05:00
Gwynne Raskind
eaf58832be
[no ci] Update test.yml 2023-10-09 05:11:13 -05:00
Gwynne Raskind
7dee63c212
[no ci] Delete .github/workflows/projectboard.yml 2023-10-09 05:10:03 -05:00
Gwynne Raskind
339fb04e95
Update test.yml (#417) 2023-08-05 12:32:56 -05:00
Gwynne Raskind
83d35034b1
Switch to using Penny app to get a GH token (#416)
* Switch to using Penny app to get a GH token
* Cleanup CI workflow
* Update projectboard.yml
* Update README.md
* Add CODEOWNERS
2023-07-18 16:38:26 -05:00
Tim Condon
559648a42f
Update Package.swift for Swift 5.5 (#411) 18.7.1 2023-04-30 03:35:12 +01:00
Tim Condon
3e11f77707
Update Toolbox for new Templates (#410)
* Update Swift version

* Add deprecation notices to most commands

* Crude check for executable name in manifest

* Fix warning

* File fixes

* Update test.yml Swift version

* Update CI
18.7.0
2023-04-30 02:38:38 +01:00
Kevin Peng
6000cc53ba
#404 - Add certificates for Docker on Linux (#405) 2022-10-25 18:15:04 +01:00
Kyle
1836e8e98c
Add support for Package.resolved v2 (#402)
* Add Package.resolved v2 decoding support

* Apply suggestions from code review

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
18.6.0
2022-09-12 18:08:35 +01:00
Kyle
a59ec58d64
Fix Package.resolved version decoding issue (#400) 18.5.2 2022-09-12 13:52:12 +01:00
Tim Condon
4356c9c765
Fix missing space in new message 18.5.1 2022-06-16 16:43:03 +01:00
Tim Condon
42cf3620f8
Update Supported Swift Versions (#395)
* Update to 5.4

* Fix Dockerfile
18.5.0
2022-06-08 10:48:01 +01:00
Mike S
b994beb217
Use new API for build script (#394) 2022-06-08 10:10:17 +01:00
Jeffrey-de-Bruijn
c515b616bc
Compatibility with official swift container images (#390)
* Compatibility with official swift container images

Sudo is not available in containers, running sudo breaks `make install`. Solve the issue by checking whether the user is root, and if he is, no need to use sudo.

* Indent fix

line 24 indentation should use tab

* ifneq, else and endif should not be indented in makefiles
2022-06-06 10:57:59 +01:00
Ahmad Yasser
cddcfa9b32
Give a generic message to open the project (#391)
* Give a generic message to open the project

* Update Sources/VaporToolbox/New/New.swift

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2022-05-30 16:41:18 +01:00
Stephen Kockentiedt
dbccf23e87
Allow dynamic file names in template manifest (#385)
* Allow dynamic file names in template manifest

By adding `dynamic_name` parameters to files or folders in
manifest.yml, their destination names can depend on variables or the
name of the new package.

* Only initialize one MustacheRenderer
18.4.1
2022-05-20 10:30:02 +01:00
Stephen Kockentiedt
7c0b3b340f
Allow not adding a Git repo when creating a new project (#388) 18.4.0 2022-05-19 15:29:54 +01:00
BennyDB
6e6e0838ed
Add project board workflow (#387) 2022-05-13 14:22:19 +01:00
BennyDB
e553032be8
Add project board workflow (#384)
Co-authored-by: Tim <0xtimc@gmail.com>
2022-05-03 14:41:38 +01:00
Tim Condon
17cda8484c
Fix CI 2022-05-03 12:57:53 +01:00
Dan Jackson
1639da6f83
Remove backslash from Procfile created by vapor heroku init (#380)
I'm not sure why it was originally there, but it works better without it
18.3.6
2022-03-09 14:16:24 +00:00
Dan Jackson
951cfe0d8b
Update Yams dependency to >= v4 (#379)
Vapor 4 docs say Swift 5.2 is required, this brings Yams up to minimum Swift 5.1 and includes bug fixes.
2022-03-09 14:15:47 +00:00
BennyDB
5ffe48fb40
Add project board workflow (#378) 2022-03-07 14:24:56 +00:00
Alessandro Venturini
1b26e5134b
Removed deprecated --enable-test-discovery flag from build and run commands (#373)
* Removed deprecated --enable-test-discovery flag from build and run commands.

--enable-test-discovery flag is deprecated as now it is the default behaviour.
Removing this flag fixes a warning which appears every time an app is built or run through the toolbox.

* --enable-test-discovery flag is now set only when Swift version is older than 5.4 .

RuntimeSwiftVersion detects user's runtime version of Swift.
Added global function which allows to discriminate whether the --enable-test-discovery flag is needed in the current runtime environment.

* Added test for SwiftRuntimeVersion.

For more info look at the code comments.
18.3.5
2022-03-01 11:16:54 +00:00
dannflor
c55a7e798e
Changing info screen to instruct user to open Package.swift (#372)
* Changing info screen to instruct user to open Package.swift

* Use relative instead of absolute file path

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>

Co-authored-by: Samuel Bishop <sambishop@Bishops-Bomputer.local>
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
2022-02-28 17:12:20 +00:00
BennyDB
8302c1831f
Improve the messaging for the version command (#377)
* Edit framework and note for version command

* Edit spelling mistake
18.3.4
2022-02-28 13:36:56 +00:00
BennyDB
3526af250d
Bug/update ci Update CI to run with swift 5.5 only (#376)
* Update test to use only 2 swift images

* Changed OS to not be a string

* change workflow to use manual testing

This commit is only for testing purposes

* Add comment to help with readability

* Change to try and run the test github action

* Remove getcidata and use only swift 5.5 for test

* Update to test

* reinstate on push branch action

* Turn json into string

* Create json seperately

* Reformat JSON

* Edit JSON

* Remove {} from JSON string

* Remove on push branch for testing
2022-02-28 12:14:23 +00:00
Joachim "Kim" Baran
7575fe2faf
Fixed help text. (#363)
Added punctuation to Heroku/supervisord to match the other lines.
Changed `Supervisord` to `supervisord` to match how it is used
on the supervisord web-site.
2021-07-12 15:45:15 +01:00
marz
4a2b9ed5b7
Add Kebab case support to TemplateScaffolder context (#353)
* Add name_lower_kebab to context

* Use name_kebab and correct kebab case requirements

* Undo Update Sources/VaporToolbox/New/TemplateScaffolder.swift

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>

* Use flatmap

Use flatmap and renamed to kababcased to keep in line with swift naming convention (like lowercased)

Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
18.3.3
2021-04-06 16:52:21 +01:00