Skip to content

Commit 7399d37

Browse files
authored
Merge pull request #2064 from usablica/restructure
Restructure the project and public APIs
2 parents b51910f + 772bc40 commit 7399d37

File tree

150 files changed

+6249
-4700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+6249
-4700
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- run: npm install
20+
- run: npm ci
2121
- run: npm run build
22-
- run: npm test
22+
- run: npm run test
2323
env:
2424
CI: true

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dist/
3737
.changelog
3838

3939
# Tests
40-
tests/cypress/setup/dist
41-
tests/cypress/videos/
42-
tests/cypress/snapshots/actual
43-
tests/cypress/snapshots/diff
40+
cypress/setup/dist
41+
cypress/videos/
42+
cypress/snapshots/actual
43+
cypress/snapshots/diff

cypress.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineConfig } from "cypress";
2+
import { configureVisualRegression } from "cypress-visual-regression";
3+
4+
module.exports = defineConfig({
5+
trashAssetsBeforeRuns: true,
6+
env: {
7+
failSilently: false,
8+
},
9+
e2e: {
10+
screenshotsFolder: "./cypress/snapshots/actual",
11+
supportFile: "./cypress/support/index.ts",
12+
specPattern: "**/*.*cy.*",
13+
setupNodeEvents(on, config) {
14+
configureVisualRegression(on);
15+
16+
return config;
17+
},
18+
},
19+
});

cypress/plugins/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = (on, config) => {
2+
const getCompareSnapshotsPlugin = require("cypress-visual-regression/dist/plugin");
3+
getCompareSnapshotsPlugin(on, config);
4+
};

tests/cypress/setup/index.html renamed to cypress/setup/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
crossorigin="anonymous"
1515
/>
1616

17-
<link href="./dist/introjs.css" rel="stylesheet" />
17+
<link href="http://localhost:10001/dist/introjs.css" rel="stylesheet" />
18+
<link href="http://host.docker.internal:10001/dist/introjs.css" rel="stylesheet" />
1819

1920
<link rel="preconnect" href="https://fonts.gstatic.com" />
2021
<link
@@ -156,7 +157,7 @@ <h2 data-intro="fourth header step" data-hint="secondary header">
156157
class="pt-3 mt-4 text-muted border-top"
157158
data-hint="this is the footer"
158159
>
159-
&copy; 2021
160+
&copy; YEAR
160161
</footer>
161162
</div>
162163
</main>
@@ -178,6 +179,7 @@ <h2 data-intro="fourth header step" data-hint="secondary header">
178179
console.log(3);
179180
};
180181
</script>
181-
<script type="text/javascript" src="./dist/intro.js"></script>
182+
<script type="text/javascript" src="http://localhost:10001/dist/intro.js"></script>
183+
<script type="text/javascript" src="http://host.docker.internal:10001/dist/intro.js"></script>
182184
</body>
183185
</html>

0 commit comments

Comments
 (0)