DavHau
b1b80111d2
automatically add dreamLockPath to discovered projects
2022-03-04 21:24:47 +07:00
DavHau
017b2e0144
WIP: cli2 init
2022-03-04 20:45:43 +07:00
DavHau
c7411e67be
fix: hashPath and hashFile missing nix options
2022-03-04 20:45:33 +07:00
zimbatm
46dd1ab167
use one nixpkgs instance
...
Push the nix configuration into the CLI so we don't need the overlay,
and so we don't need to create another instance of nixpkgs.
This also means that the python CLI can be executed directly as long as
the user has a recent-enough version of nix and make iterations a bit
faster.
For more details, see
https://zimbatm.com/notes/1000-instances-of-nixpkgs
2022-03-04 13:26:16 +01:00
DavHau
848c424c03
fix: don't error out on impure unresolved projects
2022-03-03 15:58:07 +07:00
DavHau
2b6bcb7b75
add settings
argument to lib2.makeFlakeOutputs
2022-03-03 15:48:30 +07:00
DavHau
29741906b2
Handle edge cases with npm workspaces:
...
- fixes #93
- package.json workspaces is an attrset instead of list
- workspaces pointing to non-existent directory
- workspaces pointing to a directory whithout a package.json
2022-03-02 19:00:09 +07:00
DavHau
5b8a09c764
nodejs: execute npm run build
on all workspace packages
2022-03-02 16:03:23 +07:00
DavHau
193b852534
yarn-translator: enable workspace support
2022-03-02 15:33:54 +07:00
DavHau
07a2e7cd9f
fixes for yarn-lock translator
2022-03-02 12:44:12 +07:00
DavHau
54b9d1a61e
fix: single file lookup via prepareSourceTreeInternal
2022-03-02 12:43:46 +07:00
DavHau
95c6595165
yarn-lock translator: use simpleTranslate2
2022-03-02 12:05:43 +07:00
DavHau
97c75df083
introduce simpleTranslate2
...
This is a refined interface improving upon simpleTranslate
2022-03-02 12:05:15 +07:00
DavHau
ff01488c42
update yarn-lock translator to v2 interface (no workspaces yet)
2022-03-01 17:56:42 +07:00
DavHau
021e1ef928
factor out some funcs from package-lock -> nodejsUtils
2022-03-01 15:57:20 +07:00
DavHau
1fc9998b0f
add flake output projectsJson
2022-03-01 14:21:26 +07:00
DavHau
89a0c4f4c3
handle empty yarn.lock correctly
2022-03-01 13:47:01 +07:00
DavHau
e075f98a90
fix: externalDir not copied to store
2022-02-28 12:11:55 +07:00
DavHau
958bdd6699
Squashed commit of the following:
...
commit c580c24b82
Author: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
Date: Sun Feb 27 21:51:58 2022 +0300
feat: expose builders in lib.init
commit 2fe01e1715
Author: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
Date: Sun Feb 27 18:37:39 2022 +0300
fix(rust/crane): make sure cargo only builds the package we want
...(more)
2022-02-28 11:25:39 +07:00
DavHau
e12bc2fef3
fix: no effect when passing builder
to makeFlakeOutputs
2022-02-27 23:59:16 +07:00
DavHau
6cf61ee767
allow selecting builder in makeFlakeOutputs
2022-02-27 23:33:10 +07:00
DavHau
70f30b6eef
fix bug: package-lock translator not detecting devDependencies
2022-02-27 19:48:17 +07:00
DavHau
7ff0d5d0e8
add field _generic.location
to dream-lock
2022-02-27 19:06:38 +07:00
DavHau
6fb2ec0e6a
imrpove nodejs discovery
...
- use dream-lock transaltor for packages without any dependencies
- scan sub-directories of non-project dirs
2022-02-27 18:46:38 +07:00
DavHau
d76407b4cd
expose project discovery via lib2
2022-02-27 17:26:13 +07:00
DavHau
c470172eea
improve realizeProjects & resolveProjectsFromSource
2022-02-27 17:25:24 +07:00
DavHau
6a232399ad
improve error handling when invalid args passed
2022-02-27 15:48:05 +07:00
DavHau
ed9bdd2fa2
small fixes in translators and resolving
2022-02-27 15:37:09 +07:00
DavHau
d8d0856c96
replace transl. package-lock with package-lock2
2022-02-27 15:36:25 +07:00
DavHau
14954c7d14
init translatorV2 downwards compatibility
2022-02-27 14:07:51 +07:00
DavHau
0ba71a6d1b
fix bug when no workspaces in package.json
2022-02-27 00:50:57 +07:00
DavHau
a9f9eaad2a
move some more funcs from utils to dlib
2022-02-27 00:50:15 +07:00
DavHau
79a8805656
filter projects in package-lock2 translator
2022-02-26 20:52:55 +07:00
DavHau
cca2b5c402
introduce realizeProjects
2022-02-26 20:52:26 +07:00
DavHau
35af8a5801
fix getNodeFromPath edge cases
2022-02-26 20:50:44 +07:00
DavHau
fa4998d1f4
nodejs builder: export all packages from dream-lock
2022-02-26 20:49:57 +07:00
DavHau
838db1097e
make V1 translators V2 comaptible
2022-02-26 10:59:06 +07:00
DavHau
4cb3b20aae
proejctRoot default value -> null
2022-02-26 10:57:22 +07:00
DavHau
b1872eb866
fixup resolveAllProjects
2022-02-26 00:54:52 +07:00
DavHau
8fbd1d51a9
fix output of package-lock2 translator
2022-02-25 21:38:08 +07:00
DavHau
57bc7e9c41
WIP: init resolveAllProjects
2022-02-25 21:36:15 +07:00
DavHau
025c4d059f
refactor makeOutputs: init makeOutputsForDreamLock
2022-02-25 18:35:13 +07:00
DavHau
0c7e66d79a
refactor translators: introduce all
2022-02-25 16:44:48 +07:00
DavHau
5004d7eb5a
move parsing helpers from utils to dlib
2022-02-25 16:40:02 +07:00
DavHau
fdaf0589d5
init: package-lock2 translator
2022-02-25 15:11:32 +07:00
DavHau
2afaae4f5b
fix and improve prepareSourceTree
2022-02-25 15:11:15 +07:00
DavHau
42507e645c
remove dreampkgs reference from readme
2022-02-25 12:52:44 +07:00
DavHau
82389dc014
nodejs builder: only export main package
2022-02-25 12:43:44 +07:00
DavHau
fb8928ae0a
implement project discoverer for nodejs
2022-02-25 11:03:50 +07:00
DavHau
afcf7158ae
implement projectName
for most translators
2022-02-23 19:59:25 +07:00