Comments (5)
Thanks!
I was toying with the idea of exporting 2 separate packages from the library.
you could require 'shredderjs/api' to only include the programmatic interface
and you could require 'shredderjs' to include the UI package as well.
need to test it out if its feasible.
But in that case it doesn't matter which frontend framework we use since its transparent to the user (we inject ourselves to the page without him needing to configure anything).
which should work with any framework.
If we use flexbox we might have to drop IE10 too unless prefixer knows how to deal with the conversion to the old flexbox model and hope we don't hit any edge cases (we probably will).
I think the simplest solution would be to use bootstrap along with a custom theme that we'll create (or slightly modify) which will make it work anywhere and will generate less work until we are ready for a serious design revision.
from mimic.
Are we going to support loading the library as plain <script>
tags?
How would the split libraries work in that case?
Autoprefixer handles it well, I don't think it's an issue.
The problem with loading 3rd party CSS is that it affects the whole page, unless there's a way to prefix all of Bootstrap in the custom build.
About Angular, it would make the library big, that means it could slow the load time (or not?).
And, does Angular 2 exposes itself to the global scope or is everything imported?
from mimic.
I'm pretty sure you can add prefix to bootstrap classes via scss, all of our css should be prefixed either way.
Currently I setup webpack to output as a commonjs library (it supports <script>
tags as well).
I think we can generate 2 bundle files, 1 with everything and 1 with just the API part.
But don't take my word for it, need to test it out.
from mimic.
So we need to check if we can add Bootstrap with custom prefix to all of it's CSS.
from mimic.
Just to update, I've researched if we can use bootstrap in a way that will never bother the end user or us and it seems the answer is no.
I guess we'll just have to use custom css
from mimic.
Related Issues (20)
- Apply mocks once they are loaded HOT 4
- Dynamic import semiworking with import('mimic'); but working with require('mimic');. HOT 2
- getMatchingMock returns disabled mocks
- add support for sandbox / Iframes
- Keep mimic open on refresh HOT 2
- Set stopwatch to zero HOT 4
- Remote server black screen HOT 2
- Add virtualization to log
- Add reload & record button
- npm install issue HOT 1
- Match dynamic query parameters like dates HOT 1
- Import from postman collection HOT 2
- Added button to clean logs HOT 2
- When duplicating a mock, editing changes the original mock HOT 3
- Use secure connection: http => https
- Set default Content-Type to plain-text if it is not provided in response or request
- Request / Response body JSON validation
- Disable other scenarios
- Error response doesn't work with Angular HOT 3
- Does this support regular expression of request URL ?
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 mimic.