greenkeeper[bot] on semver-7.0.0
chore(package): update semver t… (compare)
greenkeeper[bot] on can-super-model-2.0.0
fix(package): update can-super-… (compare)
greenkeeper[bot] on can-define-rest-model-2.0.0
fix(package): update can-define… (compare)
greenkeeper[bot] on can-define-realtime-rest-model-2.0.0
fix(package): update can-define… (compare)
greenkeeper[bot] on can-connect-ndjson-2.0.0
fix(package): update can-connec… (compare)
greenkeeper[bot] on @octokit
greenkeeper[bot] on @octokit
chore(package): update @octokit… (compare)
greenkeeper[bot] on @octokit
greenkeeper[bot] on @octokit
chore(package): update @octokit… (compare)
@DaveO-Home about the strip in other bundlers you need to code addons for them that simply strip the steal remove comments
@frank-dspeed maybe you know the place in stealjs srcs where I can find how steal detects this comment blocks (I guess there is some regex)? I was going to add webpack loader to my prod build for this, but postponed this.
steal-tools
Guys, I'm working with can.js
+ webpack
and currently trying to create analogs of donejs cli
. I already created generators for canjs + webpack
stack, but there is something that as far as I can see webpack
can't reproduce:
I have plugin
with component
and there is file like:entity-details-component.html
- purpose of this file is demo it's functionality. And in donejs it uses can-autorender
to render component in html without any...entry point.
<script type="text/stache" can-autorender>
<can-import from="<%= module %>/" />
<<%= tag %>></<%= tag %>>
</script>
<script src="<%= root %>node_modules/steal/steal.js"
main="can-view-autorender"></script>
I can't use something like this, because can-autorender
works in steal
builds. (same issue valid for test.html
)
Only way that I can see for now is create..some kind of renderer.js
file and include it to development build:
import stache from 'can-stache';
import './award-details-component';
document.body.appendChild(stache('<entity-details-component entity:from="data"></entity-details-component>')({data}));
and then:
<script src="main.bundle.js"></script>
This works...but this "renderer" file annoys me :) Maybe you can see more elegant way to do this ?
//!steal-remove-start
with web-pack
. I think its possible to write simple loader like this one: https://github.com/jballant/webpack-strip-block/blob/master/index.js (maybe fork) and replace regex
with the same sued here: https://github.com/stealjs/steal-tools/blob/master/lib/build/clean.js
donejs add webpack-component
and go through the same steps.
.save()
is used a PUT request is sent with all the information. How can I force it not to do a PUT but a PATCH and send only changes instead of the whole object? Is this part of can-connect. I define my models using superMap + can-connect-feathers
update: [
context => {
return context.service.patch(context.id, context.data, context.params)
.then(result => {
context.result = result
return context
})
}
],
.save
to try first to do a sort of .update
only on thinks that change
.save