wasp/waspc/test
Anthony Suárez 0cde880f24
Feat: Validate wasp version from spec (#786)
* Add wasp field to AppSpec.App

* Validate app.wasp.version in AppSpec.Valid

* Add app.wasp.version field on .wasp file generated by CreateNewProject

* Add app.wasp.version to .wasp files of e2e tests

* Add app.wasp.version to examples' .wasp files

* Add app.wasp.version to docs

* Change waspc version from 0.6.0.0 to 0.6.0

* Change app.wasp.version validation to use regular semver

* Format code

* Refactor app.wasp.version validation

* Refactor app.wasp.version validation

* Update supported app.wasp.version format in docs

* Add TODO to validateWaspVersion

* Refactor app.wasp.version using toEnum

* Create Wasp.Version module with waspVersion constant

* Fix parseWaspVersionRange regex

Fixed:
  - The regex wasn't checking the string *starts* with ^.
  - The . symbols were not escaped.
  - The $ token is not specified as supported in the regex-tdfa docs.
    \' is used instead.

* Add comment explaining wasp version validation restrictions

* Use Wasp.Version.waspVersion instead of Paths_wasp.version
2022-10-31 23:00:03 +01:00
..
Analyzer Removed duplication between waspls and waspc, made them two packages in the same cabal project (#712) 2022-09-06 14:10:42 +02:00
AppSpec Feat: Validate wasp version from spec (#786) 2022-10-31 23:00:03 +01:00
FilePath Replaced couple of last usages of Path with StrongPath. 2021-07-05 17:47:28 +02:00
Generator Checks for duplicate FileDraft _dstPath during generation (#733) 2022-10-17 10:59:24 -04:00
Psl Renames auth method EmailAndPassword to UsernameAndPassword (#696) 2022-08-24 10:32:46 -04:00
Test Formatted whole codebase with ormolu. 2021-04-28 17:44:00 +02:00
Util Removed duplication between waspls and waspc, made them two packages in the same cabal project (#712) 2022-09-06 14:10:42 +02:00
AnalyzerTest.hs Feat: Validate wasp version from spec (#786) 2022-10-31 23:00:03 +01:00
ErrorTest.hs Replace Wasp with AppSpec and Parser with Analyzer. (#423) 2022-01-20 11:45:14 +01:00
Fixtures.hs Replace Wasp with AppSpec and Parser with Analyzer. (#423) 2022-01-20 11:45:14 +01:00
SemanticVersionTest.hs Make SemanticVersion module more expressive 2022-08-26 16:46:55 +02:00
TastyDiscoverDriver.hs Moved all code into waspc directory. 2020-02-20 12:30:58 +01:00
UtilTest.hs Add support for kebab-case in project name (#590) (#700) 2022-09-02 11:54:25 +02:00
WaspignoreFileTest.hs Moved all src/ modules into Wasp module, and all cli/ modules into Wasp.Cli module. 2021-11-11 13:26:20 +01:00