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
a0fd6b565e
update nixpkgs
2022-02-27 15:21:00 +07:00
DavHau
2a3c4c40c8
add .envrc
2022-02-27 15:20:11 +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
DavHau
10bbe80f13
refactor: tlib
-> dlib.translators
2022-02-23 19:25:52 +07:00
DavHau
b78958849d
remove dependency nix-parsec
2022-02-23 19:12:33 +07:00
DavHau
ae3172315e
new yarn parser (supports yarn2)
2022-02-23 19:06:08 +07:00
DavHau
5ad9714afd
reword readme example flake
2022-02-23 17:50:02 +07:00
DavHau
6a46a26700
extend translator templates with projectName
2022-02-23 17:40:19 +07:00
DavHau
485eb0be73
feature: allow omitting pname
on makeFlakeOutputs
2022-02-23 17:35:01 +07:00
DavHau
7e78d8b37b
move some translator funcs to system independent lib
2022-02-23 16:51:47 +07:00
DavHau
8f2fd2afed
rename: compatiblePaths -> compatible
2022-02-23 15:29:53 +07:00
DavHau
02eb4a1cf4
refactor: source instead of inputDirectories/Files
2022-02-23 15:26:34 +07:00
DavHau
b4fef5baf0
make some translator functions system independent
...
- introduce `dlib` - system independent lib
- refactor all translators, to make functions extraArgs and conpatiblePaths system independent
2022-02-23 14:59:42 +07:00
DavHau
3e19b05b9a
fix: sourceOverrides not applied to path sources
2022-02-23 12:15:27 +07:00
DavHau
59754b406d
nodejs: fix 2 bugs in granular builder
...
1. package.json dependencies can be a list
2. bin symlinking for namespace packages
2022-02-23 12:13:50 +07:00
DavHau
d1cbbaaf46
add override for nodejs: simple-git-hooks
2022-02-23 12:11:46 +07:00
DavHau
d19ec4932b
fix --no-default-nix description
2022-02-23 12:11:25 +07:00
DavHau
a40142359a
Merge pull request #90 from nix-community/impure-via-flakes
...
Support impure translation via flakes (no more CLI)
2022-02-22 21:17:54 +07:00
DavHau
195d0a7e03
fix bug when translatorArgs contained integer
2022-02-22 21:00:40 +07:00
DavHau
a1449936ff
fix projectRoot config missing
2022-02-22 20:24:53 +07:00
DavHau
767db79095
raname: riseAndShine -> make[Flake]Outputs
2022-02-22 20:21:33 +07:00
DavHau
d8300cb909
Always build from dream-lock.json if exists
...
- add an invalidationHash to dream-lock.json
- always evaluate dream-lock.json if exists
- warn user if dream-lock.json doesn't exist
2022-02-22 18:23:49 +07:00
DavHau
ba967fcbe0
remove (most) interactivity of CLI
2022-02-22 15:10:01 +07:00
DavHau
2772c26105
integrate impure translation with flakes
...
Now if dream2nix is used via flakes and impure translation is required, the user will be isntructed to `nix run ...` something to generate the missing dream-lock.
2022-02-22 15:04:16 +07:00
DavHau
24c42d3eb3
fix flake.nix lib initialization
2022-02-22 15:00:32 +07:00