sliftutils 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builders/webBuildRun.js +1 -1
- package/package.json +1 -1
- package/spec.txt +22 -8
package/builders/webBuildRun.js
CHANGED
package/package.json
CHANGED
package/spec.txt
CHANGED
|
@@ -4,10 +4,6 @@ TODO:
|
|
|
4
4
|
4) New project with:
|
|
5
5
|
|
|
6
6
|
We need bins and entry points for the common types of builds
|
|
7
|
-
extension
|
|
8
|
-
copy manifest.json
|
|
9
|
-
build background.ts, copy it
|
|
10
|
-
build content.ts, copy it
|
|
11
7
|
site
|
|
12
8
|
build site, copy it
|
|
13
9
|
electron
|
|
@@ -15,15 +11,30 @@ TODO:
|
|
|
15
11
|
build render process, copy it
|
|
16
12
|
copy the json config file?
|
|
17
13
|
|
|
18
|
-
build-nodejs
|
|
19
|
-
build-electron
|
|
20
|
-
build-extension
|
|
21
14
|
build-web
|
|
15
|
+
- I guess it's the same as the Node.js build.
|
|
16
|
+
- index.html file, which is optional.
|
|
17
|
+
- Assets folder, which is optional.
|
|
18
|
+
build-electron
|
|
22
19
|
|
|
23
20
|
watch helper script in bin
|
|
24
21
|
- And have it automatically ignore .gitignored files
|
|
25
22
|
- And have it also watch .watchignore
|
|
23
|
+
- accepts port argument to broadcast when the build changes
|
|
26
24
|
|
|
25
|
+
watcher port, and helper function for hot reloading (watchHotReload)
|
|
26
|
+
- accepts port argument
|
|
27
|
+
- if in the browser, refreshes
|
|
28
|
+
- warns if it can't connect to the socket, specifying the watch script that should be used
|
|
29
|
+
- in nodejs, instead use socket-function hot reloading
|
|
30
|
+
- import { onHotReload, watchFilesAndTriggerHotReloading } from "socket-function/hot/HotReloadController";
|
|
31
|
+
- in electron watches and refreshes (no per file reloading)
|
|
32
|
+
- in chrome extension
|
|
33
|
+
- errors if called in content script (must be called in background script)
|
|
34
|
+
- reloads extension
|
|
35
|
+
- option to refresh content script pages in overall watch function
|
|
36
|
+
- On load, if reloaded in the last 10s, tells any pages which loaded content script to refresh their page
|
|
37
|
+
|
|
27
38
|
- HELPER bin to setup the project with:
|
|
28
39
|
(Only if the files don't exist)
|
|
29
40
|
tsconfig.json
|
|
@@ -37,8 +48,11 @@ TODO:
|
|
|
37
48
|
- socket-function
|
|
38
49
|
- typesafecss
|
|
39
50
|
- typedev
|
|
40
|
-
|
|
51
|
+
add the basic entry points for Node.js, the browser, the browser HTML file, and even some files for a Chrome extension, and even for an Electron app.
|
|
52
|
+
- We'll make Electron optional though, and so they'll have to manually install Electron if they want to make an Electron app. We can check for this and warn if they try to build electron without having electron installed.
|
|
41
53
|
Add build and type commands to package.json
|
|
54
|
+
- We have the binaries for the build commands, but adding them to packs.json makes it a lot more discoverable.
|
|
55
|
+
- And it's just very good practice to add the type command to package.json. That way you could just say, what does this command do to the AI? and it'll tell you exactly what it does, instead of nesting
|
|
42
56
|
|
|
43
57
|
EXPOSE our helpers in our main export, in an index.ts file?
|
|
44
58
|
- Will this let us just import them? Hmm...
|