-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.todo
180 lines (143 loc) · 11.9 KB
/
.todo
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[TODO]
- [D] Add support to fetch single remote files using requireurls function
- [D] Add support to fetch single remote file and dependent files recursively using requireurls function
- [D] Add support to fetch package.json file
- [P] Fetch `package.json` file, fetch all files of repository, and install all dependencies
- [D] Add support to fetch remote files using `import()` function in Commonjs using loader file
- [D] Add support to fetch remote files using `import { default } from 'x'` in ES using loader file
- [D] Add support to fetch remote files using `import()` function in ES using loader file
- [D] Add caching support for all remote url imports in `.jscache` folder
- [P] Naming of folders based on
- [] `domain > user@repo > SHA`
- [D] `domain > user@repo > commit`
- [] `domain > user@repo > tag`
- [D] `domain > user@repo > branch`
- [] Add `recursive` imports and cacheing for remote files. Minor changes needed
- [] Add support for package.json import
- [] Options to import a remote published or unpublished package using `https://remoteurl/.../package.json` pack of repository
- [] Add support for .ts (typescript) files import with transpiling dynamically during import
- [T] Add support for .coffee (coffeescript) files import with transpiling dynamically during import
- [] Add changes to .jscache folder naming - use smaller name versions
- [D] Add changes to .jscache folder naming
- use smaller naming for git path store (from github.com > user > repo pathing to github > user@repo)
- [] Add changes to .jscache folder naming
- use commit numbers as folder names for repo instead of sha hash number, NEXT VERSION of indexnew.js
- [T] Add changes to .jscache folder naming - when commit number not present then "store as-is" (for ftp support)
- [] Add changes to .jscache folder naming - when "store as-is" (for ftp), never allow options.forceUpdate.
- [] Add changes to .jscache folder naming - when "store as-is" options.forceUpdate use --update command for running file "node demo.js --update"
- [] Add FTP support
- [] Add SVN support
- [] Add Mercurial support
- [T] Consider support for S3.
- [T] Consider support for Google Cloud.
- [T] Consider support for Google Drive.
- [] Consider adding support for docker style naming (node:14.19.2-slim) to fetch remote urls
- Use URL in URL Fetch
- [] requireurls("https://github.com/ganeshkbhat/requireurl/")
- [] requireurls("https://github.com/ganeshkbhat/requireurl/blob/main/index.js")
- [] requireurls("https://github.com/ganeshkbhat/requireurl/blob/main/package.json")
- [] requireurls("https://github.com/ganeshkbhat/requireurl/blob/main/")
- [] requireurls("https://raw.githubusercontent.com/npm/lock-verify/latest/cli.js)
- [] requireurls("https://raw.githubusercontent.com/ganeshkbhat/requireurl/main/index.js")
- [] requireurls("https://raw.githubusercontent.com/ganeshkbhat/requireurl/main/package.json")
- [] requireurls("https://raw.githubusercontent.com/ganeshkbhat/requireurl/main/")
- Use SHA URL in URL Fetch
- [] requireurls("https://github.com/ganeshkbhat/requireurl/blob/a34a222d761bb70d51ff3267c8530f40918db53e/index.js")
- [] requireurls("https://github.com/ganeshkbhat/requireurl/blob/a34a222d761bb70d51ff3267c8530f40918db53e/package.json")
- [] requireurls("https://raw.githubusercontent.com/ganeshkbhat/requireurl/8d8681c4a28d64f23fb473064fa86880a0b930ff/index.js")
- [] requireurls("https://raw.githubusercontent.com/ganeshkbhat/requireurl/8d8681c4a28d64f23fb473064fa86880a0b930ff/package.json")
- Use SHA in URL Fetch
- [] (NEW NPM SUPPORT) requireurls("github:ganeshkbhat/requireurls")
- [] requireurls("github:ganeshkbhat@requireurls")
- [] requireurls("github:ganeshkbhat@requireurls:packages/my-subfolder")
- [] requireurls("github:ganeshkbhat@requireurls:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:src/package.json")
- [] requireurls("github:ganeshkbhat/requireurls:packages/my-subfolder") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:src/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:src/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat@requireurls:sha")
- [] requireurls("github:ganeshkbhat@requireurls:sha:packages/my-subfolder")
- [] requireurls("github:ganeshkbhat@requireurls:sha:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:sha:src/package.json")
- [] requireurls("github:ganeshkbhat/requireurls:sha") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:sha:packages/my-subfolder") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:sha:src/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:sha:src/package.json") (AFTER NPM SUPPORT OF SHORT)
- Use Branch in URL Fetch
- [] (NEW NPM SUPPORT) requireurls("github:ganeshkbhat/requireurls")
- [] requireurls("github:ganeshkbhat@requireurls")
- [] requireurls("github:ganeshkbhat@requireurls:main")
- [] requireurls("github:ganeshkbhat@requireurls:main:packages/my-subfolder")
- [] requireurls("github:ganeshkbhat@requireurls:main:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:main:src/package.json")
- [] requireurls("github:ganeshkbhat/requireurls:main") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:main:packages/my-subfolder") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:main:src/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:main:src/package.json") (AFTER NPM SUPPORT OF SHORT)
- Use commit in URL fetch (ADD NPM SHORT SUPPORT - NEW)
- [] requireurls("{git|svn|mercurial|ftp}-{domain}:{username}@{repository}:{commit|tag|sha|release}:{path})
- [] (NEW NPM SUPPORT) requireurls("{github|gitlab|bitbucket|gist|{git|svn|mercurial|ftp}-{domain}}:{username}/{repository}:{commit|tag|sha|release}:{path})
- [] commit examples
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1")
- [] requireurls("gitlab:ganeshkbhat@requireurls:1c0mm1t1")
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1:index.js")
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1:package.json")
- commit with domain examples
- [] requireurls("git-gitdomain:ganeshkbhat@requireurls:1c0mm1t1")
- [] requireurls("svn-svndomain:ganeshkbhat@requireurls:1c0mm1t1")
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1")
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:1c0mm1t1:src/package.json")
- commit with default as github examples
- [] requireurls(":ganeshkbhat@requireurls:1c0mm1t1")
will be default github:...@...:1c0mm1t1:{index.js|main.js}
- [] requireurls(":ganeshkbhat@requireurls:1c0mm1t1:src/index.js")
will be default github:...@...:1c0mm1t1:src/index.js
- commit with username and repository with default as github and latest (commit/tag/sha) examples
- [] requireurls(":ganeshkbhat@requireurls")
will be default github:...@...:latest:{index.js|main.js}
- [] requireurls(":ganeshkbhat@requireurls::src/index.js")
will be default github:...@...:latest:src/index.js
- Use tags in URL fetch (ADD NPM SHORT SUPPORT - NEW)
- [] requireurls("github:ganeshkbhat@requireurls:tag")
- [] requireurls("github:ganeshkbhat@requireurls:tag:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:tag:src/package.json")
- [] requireurls("github:ganeshkbhat/requireurls:tag") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:tag:src/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:tag:src/package.json") (AFTER NPM SUPPORT OF SHORT)
- Use releases in URL fetch (ADD NPM SHORT SUPPORT - NEW)
- [] requireurls("github:ganeshkbhat@requireurls:release")
- [] requireurls("github:ganeshkbhat@requireurls:release:src/index.js")
- [] requireurls("github:ganeshkbhat@requireurls:release:src/package.json")
- [] requireurls("github:ganeshkbhat/requireurls:release") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:release:src/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:release:src/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] JS File
- [] requireurls("github:ganeshkbhat@requireurls:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat@requireurls:sha:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat@requireurls:main:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:main:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:sha:packages/my-subfolder/index.js") (AFTER NPM SUPPORT OF SHORT)
- [] PACKAGE.JSON File
- [] requireurls("github:ganeshkbhat@requireurls:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat@requireurls:sha:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat@requireurls:main:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:main:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
- [] requireurls("github:ganeshkbhat/requireurls:sha:packages/my-subfolder/package.json") (AFTER NPM SUPPORT OF SHORT)
// // // Strategies:
// // requireurl - url (single file)
- require.resolve("urlpath"), requireurls("urlpath"), import("urlpath"), import { default as x } from "urlpath",
// // requireurl - url (recursive)
// // Concurrent Fetch support
- require.resolve("urlpath"), ...
// // requireurl - github package url (recursive)
// // Concurrent Fetch support
- require.resolve("packageurl"), ...
// // requireurl - github package.json url (recursive)
// // Concurrent Fetch support
- require.resolve("packagejsonurl"), ...
// // requireurl - url to require entire package using package.json fetch (recursive)
// // Concurrent Fetch support
- require.resolve("urlpath"), ...