-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdenoify.node.txt
52 lines (38 loc) · 2.61 KB
/
denoify.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
┏━━━━━━━━━━━━━┓
┃ DENOIFY ┃
┗━━━━━━━━━━━━━┛
VERSION ==> #1.6.17
denoify #Transform Node to Deno code
IMPORTS ==> #Are transformed:
# - omitted index.js or file extensions -> added
# - core Node -> node:* (polyfills)
# - 'NPM_MODULE' -> 'npm:NPM_MODULE@VERSION' or deno.land (if available)
# - others: GitHub
# - using package.json repository field
TRANSFORMS ==> #Also transforms some global variables:
# - process.env -> Deno.env
*.deno.ts #Copied to *.ts during transpilation
#Should be ignored from tsconfig.json
// @denoify-ignore #Ignore this file
// @denoify-line-ignore #Ignore next line, i.e. do not include it
ENVVAR DRY_RUN=1 #
LIMITATIONS ==> #Only for TypeScript+ESM source files
#Ignore dynamic imports|reads
CONFIG #At ROOT/denoify.config.json|js
--project|-p #Root 'DIR', including package.json and tsconfig.json
--src #'DIR' of source files (def: src|lib)
--index|-i
CONFIG.index #'PATH' to main file (def: package.json main)
--out|-o
CONFIG.out #'DIR' of output (def: deno_DIR, with DIR being TSCONF.outDir)
CONFIG.includes #STR|INCLUDES_ARR (def: ['README.md', 'LICENSE']). Additional files to copy
INCLUDES.src #'GLOB' in source
INCLUDES.destDir #'DIR' in output
INCLUDES.destBasename #'FILENAME' in output
tsconfig.json #TSCONF.exclude is used to exclude files from copying
CONFIG.ports.MODULE #'URL' or 'GITHUB_USER/REPO' to replace with
CONFIG.replacer #'PATH' to a file to customize imports transformation
# - not documented yet
# - there is a makeThisModuleAnExecutableReplacer() module to simplify writing those
#Built-in ones for react[-dom], rxjs, graphql, fast-xml-parser, ipaddr.js
# - e.g. to use URLs on other CDNs like jspm.io