-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Huge blob commit to drive reactor forward
I don't know why I even do this
- Loading branch information
Showing
43 changed files
with
3,020 additions
and
2,684 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
*.egg-info/ | ||
*.eggs/ | ||
*.log | ||
*.map | ||
*.sqlite3 | ||
dist/ | ||
__pycache__/ | ||
reactor/static/reactor.js* | ||
.pytest_cache/ | ||
reactor/static/reactor.min.* | ||
node_modules/* | ||
*.sqlite3 | ||
.coverage | ||
site/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const esbuild = require('esbuild'); | ||
|
||
const isWatch = process.argv.includes('-w'); | ||
const isBuild = !isWatch; | ||
const mode = isBuild ? 'production' : 'development'; | ||
|
||
|
||
const buildOptions = { | ||
entryPoints: ['reactor/static/reactor/reactor.js'], | ||
define: { | ||
'process.env.NODE_ENV': JSON.stringify(mode), | ||
}, | ||
bundle: true, | ||
sourcemap: true, | ||
minify: isBuild, | ||
incremental: isWatch, | ||
outfile: 'reactor/static/reactor/reactor.min.js', | ||
watch: isWatch, | ||
}; | ||
|
||
esbuild.build(buildOptions); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "reactor", | ||
"version": "1.0.0", | ||
"description": "Brings LiveView from Phoenix framework into Django", | ||
"main": "index.js", | ||
"repository": "[email protected]:edelvalle/reactor.git", | ||
"author": "Eddy Ernesto del Valle Pino <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"morphdom": "^2.6.1", | ||
"reconnecting-websocket": "^4.4.0" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.13.9" | ||
} | ||
} |
Oops, something went wrong.