Commit graph

30 commits

Author SHA1 Message Date
Araq
ee3ad4353e fixes a 'break search loop' bug; got rid of most compiler warnings 2016-11-06 23:06:37 +01:00
Dominik Picheta
65dbd97269 Moves nimbleVersion to common.nim and uses it in .nimble file. 2016-10-09 15:19:42 +02:00
Aidan Steele
8abf18633d Package names are case insensitive (#190) 2016-04-11 10:39:10 +10:00
Dominik Picheta
42ef358459 Various optimisations to PackageInfo reading and bug fixes.
* PackageInfo objects are now cached because NimScript evaluation is expensive.
* before/after hooks now return `true` by default.
* Bugfix: when hooks weren't found Nimble would still think that a hook told it
  to skip an action.
* PackageInfo now includes info about which hooks are defined to prevent
  unnecessary execution of those hooks.
* Probably more.
2015-12-30 19:43:20 +00:00
Dominik Picheta
835157ce34 Implements configurable package list URLs. Implements #75. 2015-12-29 13:43:05 +00:00
Dominik Picheta
ca99ad7d21 Moved Nimble-specific Nimscript definitions to nimscriptapi module.
* Moved package info reading procedures to a packageparser module. This is to prevent recu
rsive dependencies between nimscriptsupport and packageinfo modules.
* Passed the Options object to all procedures which read package info (necessary for nimscriptsupport module, to find the path of the nimscriptapi module)
* Introduced an ``isInstalled`` field to the ``PackageInfo`` type. This is a bug fix for g
etRealDir: it no longer uses the ``src`` field in the path it returns for installed packag
es' PackageInfo objects.
* Improved error reporting from NimScript evaluator.
* Renamed compiler/options import to ``compiler_options`` in ``nimscriptsupport`` module.
* Backward compatibility for .babel packages in getNameVersion proc.
* Introduced a getInstalledPkgsMin procedure which does not read package info, but only pr
ovides minimal info instead.
2015-12-28 16:33:34 +00:00
Dominik Picheta
84f371982b Implemented flags and arguments for NimScript's setCommand. 2015-12-25 16:32:46 +00:00
Dominik Picheta
e5573f0096 Make ValidationError for inconsistent nimble project names a warning. 2015-12-24 20:20:19 +00:00
Dominik Picheta
0a1b583392 Fixed tests. 2015-12-24 17:54:58 +00:00
Dominik Picheta
98045ea39c Better error message when an installed package fails validation.
Fixes #175.
2015-12-24 17:46:46 +00:00
Dominik Picheta
96ddb12da8 Fixes #126. 2015-12-24 10:26:36 +00:00
Dominik Picheta
20d4a59609 Fixes small bugs introduced by nimscript. 2015-12-24 00:12:04 +00:00
Dominik Picheta
7d5428be19 Improved the init command. Fixes #96. 2015-12-23 22:40:14 +00:00
Dominik Picheta
dbd478bc20 The .nimble extension is now used for both ini and nims .nimble files.
This is done by parsing the .nimble file using the ini parser first, then if that fails evaluating it using nimscript.
2015-12-23 20:48:05 +00:00
Dominik Picheta
6fcbffd1cc Merge branch 'master' of https://github.com/Araq/nimble into Araq-master 2015-11-07 16:01:19 +00:00
Araq
ffbd5f5b3e hotfix: nimble builds with devel again 2015-10-13 10:17:02 +02:00
Araq
2cf03313fd first implementation of NimScript support 2015-09-03 01:50:55 +02:00
Araq
68c1266a44 implemented 'nimble publish' 2015-08-18 12:27:07 +02:00
Dominik Picheta
4ffcdf141e Fix installation (default output dir changed). 2015-06-04 18:33:38 +01:00
Dominik Picheta
e42b04b329 Fix incorrect type name in packageinfo module. 2015-06-04 18:03:17 +01:00
Dominik Picheta
11f710819c Rename buildDir to binDir. 2015-06-04 17:57:06 +01:00
Dominik Picheta
ca9a09f07b Merge branch 'master' of https://github.com/minciue/nimble into minciue-master
Conflicts:
	developers.markdown
	src/nimble.nim
2015-06-04 17:53:48 +01:00
Jean Cavallo
4a56ac60d9 Use str.len-1 rather than -1 2015-03-31 12:21:22 +02:00
Jean Cavallo
87d6f908cc Fix #110 : use '^' rather than '-' for list negative indexes 2015-03-30 12:19:51 +02:00
Louis Berube
ceb1e48a80 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/nimble.nim
2015-01-03 19:04:09 -05:00
Louis Berube
521ee1f696 - Converted types from the old T/P convention
- Deleted compat.nim
2014-12-31 10:13:23 -05:00
Louis Berube
383e0f2a4c Updated source to eliminate stuff deprecated by nim 0.10.2 2014-12-29 15:38:16 -05:00
Eugen Minciu
70f03b2c9b Output build to the base directory by default.
Make nimble build output to the directory where the .nimble file resides
by default.
2014-12-28 21:46:57 +02:00
Eugen Minciu
cce58bd981 Add a builddir option. 2014-12-28 19:47:14 +02:00
Dominik Picheta
adbc30c22e Renamed babel to nimble. 2014-10-11 22:38:44 +01:00
Renamed from src/babelpkg/packageinfo.nim (Browse further)