Skip to content

Instantly share code, notes, and snippets.

View ppcano's full-sized avatar

Pepe Cano ppcano

View GitHub Profile
@ppcano
ppcano / script.js
Last active February 12, 2020 10:33
import { check, sleep } from 'k6';
import http from 'k6/http';
export let options = {
vus: 50,
duration: "3s"
};
export default function() {
let res = http.get("https://test.k6.io/");
@ppcano
ppcano / footer.md
Last active January 29, 2020 11:24
import { check, sleep } from 'k6';
import http from 'k6/http';
export let options = {
duration: "1m",
vus: 100
}
export default function() {
let res;
import { sleep } from "k6";
import http from "k6/http";
export let options = {
duration: "1m",
vus: 50,
thresholds: {
http_req_duration: ["p(95)<500"]
}
};
@ppcano
ppcano / my-performance-test.js
Created October 4, 2019 11:39
Performance test example
import http from "k6/http";
import { sleep } from "k6";
export let options = {
duration: '45s',
thresholds: {
"http_req_duration": ["p(99)<500"]
}
};
import {sleep} from "k6";
import mainPageUserFlow from "../cases/main-page";
import billingUserFlow from "../cases/billing";
export let options = {
thresholds: {
"group_duration{group:::mainPageGroup}": ["p(99)<300"],
"group_duration{group:::billingGroup}": ["p(99)<300"]
}
};
diff --git i/lib/broccoli/default-packager.js w/lib/broccoli/default-packager.js
index 1228226ee..af184f6db 100644
--- i/lib/broccoli/default-packager.js
+++ w/lib/broccoli/default-packager.js
@@ -845,46 +845,33 @@ module.exports = class DefaultPackager {
annotation: 'Tests To Process',
});
-
if (this.isModuleUnificationEnabled) {
diff --git i/lib/models/addon.js w/lib/models/addon.js
index 2f9de9d00..1734e3604 100644
--- i/lib/models/addon.js
+++ w/lib/models/addon.js
@@ -298,6 +298,10 @@ let addonProto = {
public: 'public',
};
+ if (this.isModuleUnification()) {
+ this.treePaths.styles = 'src/ui/styles';

I have reviewed the ember-octane-blueprint project and I have some thoughts that I would like to share:

The ember-octane-blueprint duplicates code from the ember-cli/module-unification-app blueprint; If we want to create tests for the ember-octane-blueprint project, we may end up duplicating the existing MU tests and having to maintain two similar MU app blueprints.

I wonder if a better strategy would be to figure out how the octane-blueprint project could reuse the existing module-unification-app blueprint.

@ppcano
ppcano / components.my-component.js
Last active November 2, 2018 13:18
New Twiddle
import Ember from 'ember';
import layout from '../templates/components/other-template';
export default Ember.Component.extend({
layout
});