Skip to content

Commit c108af8

Browse files
committed
lerna: more path updates
1 parent 4ac3a49 commit c108af8

10 files changed

Lines changed: 46 additions & 44 deletions

File tree

crossbow.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
tasks:
2+
cy: cypress/setup/bs.js
3+
4+
options:
5+
cy:
6+
_default:
7+
action: run
8+
file-watching-ignore:
9+
config: cypress/configs/file-watching-ignore.js
10+
spec: cypress/integration/file-watching-ignore.js
11+
file-reloading:
12+
config: cypress/configs/file-reloading.js
13+
spec: cypress/integration/file-reloading.js
14+
no-notify:
15+
config: cypress/configs/no-notify.js
16+
spec: cypress/integration/no-notify.js
17+
css-overlay:
18+
config: cypress/configs/css-overlay-notify.js
19+
spec: cypress/integration/css-overlay-notify.js
20+
css-console-notify:
21+
config: cypress/configs/css-console-notify.js
22+
spec: cypress/integration/css-console-notify.js
23+
connection-notify:
24+
config: cypress/configs/file-reloading.js
25+
spec: cypress/integration/connection-notify.js
26+
log-prefix:
27+
config: cypress/configs/logPrefix.js
28+
spec: cypress/integration/logPrefix.js
29+
ui-remote-debug:
30+
config: cypress/configs/file-reloading.js
31+
spec: cypress/integration/ui-remote-debug.js

cypress/configs/file-reloading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
server: 'test/fixtures',
2+
server: 'packages/browser-sync/test/fixtures',
33
open: false,
44
watch: true,
55
online: false,

cypress/integration/css-console-notify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('CSS console notification', function() {
55
it('should log message when css injected', function() {
66
cy.window().then((win) => {
77
const spy = cy.spy(win.console, "log");
8-
cy.exec('touch test/fixtures/**/style.css');
8+
cy.exec('touch packages/browser-sync/test/fixtures/**/style.css');
99
cy.wait(1000).then(() => {
1010
expect(spy.getCall(0).args.slice(-1)[0]).to.equal('[LinkReplace] style.css');
1111
})
@@ -14,7 +14,7 @@ describe('CSS console notification', function() {
1414
it('should log 2 messages when 2 css files injected', function() {
1515
cy.window().then((win) => {
1616
const spy = cy.spy(win.console, "log");
17-
cy.exec('touch test/fixtures/**/*.css');
17+
cy.exec('touch packages/browser-sync/test/fixtures/**/*.css');
1818
cy.wait(1000).then(() => {
1919
expect(spy.callCount).to.equal(2);
2020
const calls = new Set([spy.getCall(0).args.slice(-1)[0], spy.getCall(1).args.slice(-1)[0]]);

cypress/integration/css-overlay-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('CSS overlay notification', function() {
33
cy.visit(Cypress.env('BS_URL'));
44
});
55
it('should flash messages when css injected', function() {
6-
cy.exec('touch test/fixtures/**/style.css');
6+
cy.exec('touch packages/browser-sync/test/fixtures/**/style.css');
77
cy.wait(500);
88
cy.get('#__bs_notify__').should(function($elems) {
99
expect($elems.length).to.equal(1);

cypress/integration/file-reloading.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ describe('Reloading files', function() {
44
cy.visit(Cypress.env('BS_URL'));
55
});
66
it('should reload single <link>', function() {
7-
cy.exec('touch test/fixtures/**/style.css');
7+
cy.exec('touch packages/browser-sync/test/fixtures/**/style.css');
88
cy.get('[id="css-style"]').should($link => {
99
const url = new URL($link.attr('href'));
1010
expect(url.search).to.contain('?browsersync=');
1111
});
1212
});
1313
it('should reload 2 css files', function() {
14-
cy.exec('touch test/fixtures/**/*.css');
14+
cy.exec('touch packages/browser-sync/test/fixtures/**/*.css');
1515
cy.get('link').should($links => {
1616
$links.each((i, elem) => {
1717
const url = new URL(elem.href);
@@ -57,7 +57,7 @@ describe('Reloading files', function() {
5757
const href = firstStyle.sheet.cssRules[0].href;
5858
expect(href).to.not.contain('?browsersync=');
5959
});
60-
cy.exec('touch test/fixtures/assets/import.css');
60+
cy.exec('touch packages/browser-sync/test/fixtures/assets/import.css');
6161
cy.get('style').eq(0).should((style) => {
6262
const href = style[0].sheet.cssRules[0].href;
6363
expect(href).to.contain('?browsersync=');
@@ -69,7 +69,7 @@ describe('Reloading files', function() {
6969
const href = doc.styleSheets[0].cssRules[0].href;
7070
expect(href).to.not.contain('?browsersync=');
7171
});
72-
cy.exec('touch test/fixtures/assets/import2.css');
72+
cy.exec('touch packages/browser-sync/test/fixtures/assets/import2.css');
7373
cy.get('link').eq(0).should((link) => {
7474
const href = link[0].sheet.cssRules[0].href;
7575
expect(href).to.contain('?browsersync=');
@@ -81,7 +81,7 @@ describe('Reloading files', function() {
8181
cy.visit(Cypress.env('BS_URL') + '/images.html');
8282
});
8383
it('should reload single <img src>', function() {
84-
cy.exec('touch test/fixtures/**/cam-secure.png');
84+
cy.exec('touch packages/browser-sync/test/fixtures/**/cam-secure.png');
8585
cy.get('[id="img-src-attr"]').should($link => {
8686
const url = new URL($link.attr('src'));
8787
expect(url.search).to.contain('?browsersync=');
@@ -93,7 +93,7 @@ describe('Reloading files', function() {
9393
});
9494
});
9595
it('should reload single style backgroundImage style property', function() {
96-
cy.exec('touch test/fixtures/**/cam-secure-02.png');
96+
cy.exec('touch packages/browser-sync/test/fixtures/**/cam-secure-02.png');
9797
cy.get('[id="img-src-attr"]').should($link => {
9898
expect($link.attr('src')).not.to.contain('?browsersync=');
9999
});
@@ -104,7 +104,7 @@ describe('Reloading files', function() {
104104
});
105105
});
106106
it('should reload both images', function() {
107-
cy.exec('touch test/fixtures/**/*.png');
107+
cy.exec('touch packages/browser-sync/test/fixtures/**/*.png');
108108
cy.get('[id="img-src-attr"]').should($link => {
109109
const url = new URL($link.attr('src'));
110110
expect(url.search).to.contain('?browsersync=');

cypress/integration/file-watching-ignore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('Watching folders', function() {
44
cy.visit(Cypress.env('BS_URL') + '/bower.html');
55
});
66
it('should reload single <link>', function () {
7-
cy.exec('touch test/fixtures/bower_components/app.css');
7+
cy.exec('touch packages/browser-sync/test/fixtures/bower_components/app.css');
88
cy.get('[id="css-style"]').should($link => {
99
const url = new URL($link.attr('href'));
1010
expect(url.search).to.contain('?browsersync=');

cypress/integration/logPrefix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Connection notification (with logPrefix)', function() {
1212
it('should log prefixed message when css is injected', function() {
1313
cy.window().then((win) => {
1414
const spy = cy.spy(win.console, "log");
15-
cy.exec('touch test/fixtures/**/style.css');
15+
cy.exec('touch packages/browser-sync/test/fixtures/**/style.css');
1616
cy.wait(1000).then(() => {
1717
expect(spy.getCall(0).args.slice(-1)[0]).to.equal('[LinkReplace] style.css');
1818
expect(spy.getCall(0).args.indexOf('WSK') > -1).to.be.true;

cypress/integration/no-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('disabled notification', function() {
77
cy.get('#__bs_notify__').should('have.length', 0);
88
});
99
it('should not flash messages when css injected', function() {
10-
cy.exec('touch test/fixtures/**/style.css');
10+
cy.exec('touch packages/browser-sync/test/fixtures/**/style.css');
1111
cy.wait(500);
1212
cy.get('#__bs_notify__').should('have.length', 0);
1313
});

cypress/setup/bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function(opts, ctx) {
1313
const json = require(join(ctx.config.cwd, opts.config));
1414

1515
return Observable.create(obs => {
16-
const bs = require('../../').create();
16+
const bs = require('../../packages/browser-sync').create();
1717
const instance = bs.init(json, function(err, bs) {
1818
if (err) {
1919
return obs.error(err);

packages/browser-sync/crossbow.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,8 @@ tasks:
3636
--write --tab-width 4
3737
3838
cli: cypress/setup/bs-cli.js
39-
bs: cypress/setup/bs.js
4039

4140
options:
42-
bs:
43-
_default:
44-
action: run
45-
file-watching-ignore:
46-
config: cypress/configs/file-watching-ignore.js
47-
spec: cypress/integration/file-watching-ignore.js
48-
file-reloading:
49-
config: cypress/configs/file-reloading.js
50-
spec: cypress/integration/file-reloading.js
51-
no-notify:
52-
config: cypress/configs/no-notify.js
53-
spec: cypress/integration/no-notify.js
54-
css-overlay:
55-
config: cypress/configs/css-overlay-notify.js
56-
spec: cypress/integration/css-overlay-notify.js
57-
css-console-notify:
58-
config: cypress/configs/css-console-notify.js
59-
spec: cypress/integration/css-console-notify.js
60-
connection-notify:
61-
config: cypress/configs/file-reloading.js
62-
spec: cypress/integration/connection-notify.js
63-
log-prefix:
64-
config: cypress/configs/logPrefix.js
65-
spec: cypress/integration/logPrefix.js
66-
ui-remote-debug:
67-
config: cypress/configs/file-reloading.js
68-
spec: cypress/integration/ui-remote-debug.js
69-
7041
cli:
7142
file-watching-ignore:
7243
method: 'run'

0 commit comments

Comments
 (0)