DavHau
f49f05e943
improve nodejs builders and translators
...
- add buildPackageWithOtherBuilder helper
- do not delete cyclic dependencies by default
- always delete devDependencies in package.json
- fix handling of source type `path`
- yarn-lock: handle missing name
- update utils.dreamLock interface
- add `createMissingSource` capability to simpleTranslator
2021-10-26 15:25:35 +07:00
DavHau
70cf6c2723
new builder interface:
...
- dream lock interface via utils.readDreamLock
- improve granular builder for nodejs
- support fetching urls with sha1 hash
- add jsonschema for source type path
2021-10-23 18:50:36 +07:00
DavHau
9ac7e462f3
improve granular nodejs builder
2021-10-22 23:10:14 +07:00
DavHau
b79343b398
finalize conditional overrides
2021-10-22 23:05:20 +07:00
DavHau
8a5108a602
fix combined hashing mode
2021-10-22 16:29:29 +07:00
DavHau
72c435b8a8
yarn-lock: use git fetcher instead of github
2021-10-22 15:55:45 +07:00
DavHau
38f1725a24
fix dream-lock-schema.json
2021-10-22 15:52:20 +07:00
DavHau
68f38ac988
remove option allowBuiltinFetchers
2021-10-22 15:52:06 +07:00
DavHau
055102e698
use utils.writePureShellScript for all translators
2021-10-22 14:56:56 +07:00
DavHau
6a4a1da0f1
refactor dream.lock sources structure:
...
- now accessed like sources.{name}.{version}
2021-10-22 14:29:38 +07:00
DavHau
3cbac60c4d
add: support git URLs in package-lock parser
2021-10-21 13:45:49 +07:00
DavHau
39b3851ceb
fix: extractSource
2021-10-20 21:36:22 +07:00
DavHau
850dc71568
fix python translator+fetcher+builder
2021-10-20 16:39:11 +07:00
DavHau
bf4b807e34
add: update
cli app for automatic package update
2021-10-19 00:23:48 +07:00
DavHau
5083a88e4c
rename: npmlock2nix -> package-lock
2021-10-18 00:16:13 +07:00
DavHau
99cee262e5
refactor npmlock2nix to use simpleTranslate
2021-10-18 00:15:54 +07:00
DavHau
0867db4b8a
move translator yarn-lock-2 -> yarn-lock
2021-10-17 23:08:08 +07:00
DavHau
35a806264f
remove old yarn-lock parser
2021-10-17 23:07:18 +07:00
DavHau
353cc807be
refine simpleTranslate
2021-10-17 23:03:55 +07:00
DavHau
9677c12e9e
add: simpleTranslate helper function for translators
2021-10-17 15:48:32 +07:00
DavHau
7e00121e33
Merge remote-tracking branch 'raghu/main' into dev
2021-10-13 22:52:25 +07:00
DavHau
8ef88fc523
add justBuild (simplified interface)
2021-10-12 23:16:00 +07:00
DavHau
788134d4e8
cli: add option --default-nix
2021-10-12 22:25:06 +07:00
DavHau
7edf7cbf1d
granular nodejs builder
2021-10-09 18:33:45 +07:00
DavHau
f7472d096b
WIP: conditional overrides
2021-10-09 18:33:19 +07:00
raghuram
441f10fd64
moved specifications folder
2021-10-08 15:29:45 +00:00
raghuram
0ca35d09ad
moved src
2021-10-08 15:12:55 +00:00
DavHau
5be5ae49a5
readDreamLock: revert autmatic top-level packages
2021-10-08 11:38:09 +07:00
DavHau
f9752da027
yarn-lock: add flags dev, optional, peer
2021-10-08 11:37:20 +07:00
DavHau
35f9cec8d0
fix github dependency for yarn v1
2021-10-08 00:43:46 +07:00
DavHau
74bff7571b
fix: top-lvl deps for package-lock and yarn-lock
2021-10-07 17:07:52 +07:00
DavHau
d5801d1804
bugfix in parseDreamLock
2021-10-07 17:06:09 +07:00
DavHau
d06519bce0
fix parsing CRLF formatted files
2021-10-07 16:25:28 +07:00
DavHau
1c48002dfc
fix bugs
2021-10-07 14:38:19 +07:00
happysalada
fb372a0f51
translators: yarn: add parsing of links
2021-10-07 15:07:05 +09:00
DavHau
40d3a3e46b
different improvements:
...
- templating for default.nix
- templates for translators
- fixup nodejs translators
2021-10-07 12:07:28 +07:00
DavHau
e99e002920
Squashed commit of add_yarn_lock:
...
commit 3415d7f6f834dc3e52cf6898ec02b58ac7df4089
Merge: fca3973
daa71d3
Author: DavHau <hsngrmpf+github@gmail.com>
Date: Wed Oct 6 10:33:52 2021 +0700
Merge remote-tracking branch 'happysalada/add_yarn_lock' into dev
commit daa71d3e53
Author: happysalada <raphael@megzari.com>
Date: Wed Oct 6 00:01:26 2021 +0900
yarn.lock: initial translator
commit 8f4632ab5e
Author: happysalada <raphael@megzari.com>
Date: Tue Oct 5 20:52:00 2021 +0900
translators: add yarn.lock
2021-10-07 11:52:51 +07:00
DavHau
8264abe9c1
remove old cli entry
2021-10-06 10:16:00 +07:00
DavHau
7f19e0662f
finalize new CLI
2021-10-06 10:16:00 +07:00
DavHau
66c1ce3c0d
add finders for finding new package versions
2021-10-06 10:16:00 +07:00
DavHau
9adf141700
simplify git shortcut + add versionField
2021-10-06 10:16:00 +07:00
DavHau
aa6c0c7027
introduce fetcher modules
2021-10-06 10:16:00 +07:00
DavHau
15ae842a7b
WIP revamp cli using cleo
2021-10-06 10:16:00 +07:00
happysalada
1f3b7713a7
fix typo
2021-10-05 16:37:04 +09:00
DavHau
ed145173f5
fix some strings and comments
2021-09-30 01:35:46 +01:00
DavHau
f3444c90f7
add app 'contribute' to initialize templates
2021-09-24 14:19:48 +01:00
DavHau
8d4cf7565a
add templates for adding translators
2021-09-23 11:05:25 +01:00
DavHau
e4b9717fa2
fix node2nix builder
2021-09-22 00:30:56 +01:00
DavHau
35eeba24df
feature: remove cyclic dependencies
2021-09-20 22:09:14 +01:00
DavHau
f685e44d59
Add builder for nodejs
...
- python builder support application
- add version to dream.lock
- allowBuiltinsFetchers config option
- node2nix builder
- handle github sources without hash
2021-09-20 20:52:31 +01:00
DavHau
33c7912037
rename: generic lock -> dream lock
2021-09-18 18:08:08 +01:00
DavHau
aa7902a09e
improve translators:
...
- translator flags
- translatedBy
- translatorParams
2021-09-18 01:06:48 +01:00
DavHau
d23fb76ef6
feature: sourceOverrides
2021-09-17 13:12:07 +01:00
DavHau
76ae17fc27
support 'unknown' source type
2021-09-17 12:18:39 +01:00
DavHau
042d203237
feature: special arguments for translators
2021-09-17 10:46:03 +01:00
DavHau
7dccfd6e3b
separate handling of input files and input dirs
2021-09-16 19:33:31 +01:00
DavHau
b6dfa1dbd4
feature: autoselect translator ( #4 )
2021-09-16 15:05:31 +01:00
DavHau
a1a3e57e05
add translator: npmlock2nix
2021-09-14 03:00:29 +01:00
DavHau
d83d76d5ef
improve handling of translator modules
2021-09-13 18:08:28 +01:00
DavHau
4a00410a2b
add support for opt-in FOD fetching
...
- will ommit storing individual hashes, reducing lock file size
2021-09-11 00:06:48 +02:00
DavHau
72bbad7d9d
minor fixes
2021-09-10 10:15:44 +02:00
DavHau
7ef59b51d5
move translator cli to src/apps
2021-09-10 09:44:45 +02:00
DavHau
2ce1ddb6f3
implement UI and examples:
...
- generic translator CLI exposed as flake app
- flake app 'install' to install the framework
- generic fetcher
- simple translator for python
- simple builer for python
2021-09-09 23:42:56 +02:00