Comments (9)
Or some other way to tell bankai to inherit the config of browserify, like ava does for babel config:
"ava" {
"babel": "inherit"
}
from bankai.
💯 this would be great
from bankai.
Nice idea! I'm not sure if it is optimal to seize the browserify
key, though. Can we achieve the same convenience if we read config from the usual places under a bankai
key? We could do this easily with e.g. cosmiconfig
from bankai.
For reference / parity, budo works with the config in the browserify field. If we go with the proposed bankai key, it would still be useful to have it fallback to the browserify key when a bankai specific one is not present.
from bankai.
I think the browserify
key makes most sense because:
- It works the same as with
browserify
, meaning there's nothing new to learn - It provides parity with
wzrd
,budo
andbeefy
, further reducing friction - It's easier to upgrade to
bankai
from any other tool
The less special we make bankai
the better I reckon
from bankai.
Okay, then as a general rule of thumb browserify => bankai.js
holds true.
I assume we want to allow file based config of all bankai features at some point, so that would mean bankai
and browserify
keys can coexist in certain scenarios.
The precedence chain should be bankai.js > browserify
, bankai[format] > format-tool
in general, I guess.
from bankai.
yeah, sounds alright. Though I wonder if we'll ever arrive at a point where we need bankai
specific config; if we ever reach that point I feel it would be good to take a step back and reflect on what we're doing and if couldn't simplify it hah
from bankai.
Doesn't this already happen? I set up the basic example to demonstrate this I thought? https://github.com/yoshuawuyts/bankai/tree/master/example/basic
from bankai.
I think this should work; if not passing { basedir: __dirname }
or something to browserify (js:
) in the constructor should probs resolve it - closing for now
from bankai.
Related Issues (20)
- Bankai's forced TLS makes developing for Beaker Browser difficult HOT 3
- Question: Deployment On AWS HOT 4
- Feature request: generate csp headers for inlined scripts and style
- Using a proxy in front of Bankai fails due to too many 301 redirects
- Production build served from a subfolder HOT 1
- Server Side Rendering Skipped due to error: window is not defined HOT 4
- bundle.js & bundle.css are in hashed folders
- bankai.documents doesn't actually take an options parameter HOT 1
- 🔦 Static exports? HOT 1
- Seamless HTTPS without certificate warnings: integrate nodecert/https-server HOT 3
- Test #163 failing (on Ubuntu 18.10, Node v10.14.2) HOT 3
- 🙋Use Custom HTML Body for Server Side Rendering for non-Choo apps
- problem bundling hypercore: 'require is not defined' HOT 4
- Babel 7 support HOT 2
- Error: choo.mount: could not query selector HOT 1
- 🐛 `.documents`: Documented API missing HOT 1
- experimental prefetch help
- SSL key too small, project doesn't start HOT 6
- nanohtml transform is not applied to code transpiled from Typescript with esModuleInterop
- import scss files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bankai.