Skip to content

Commit 9ba72bc

Browse files
committed
feat: implementation
1 parent fdceea0 commit 9ba72bc

98 files changed

Lines changed: 20228 additions & 0 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = false
6+
trim_trailing_whitespace = true
7+
indent_size = 2
8+
indent_style = space
9+
charset = utf-8

.github/workflows/dev.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test and deploy to Surge
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
name: Deploying to Surge
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set-up NodeJS
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: npm install -g surge
17+
- run: npm install
18+
- run: npm test
19+
- run: npm install
20+
working-directory: ./site/app
21+
- run: npm run build
22+
working-directory: ./site/app
23+
- run: surge ./site/app/dist ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}

.github/workflows/master.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to Github pages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
name: Deploying to Github pages
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
- name: Set-up NodeJS
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- run: npm install
20+
working-directory: ./site/app
21+
- run: npm run build
22+
working-directory: ./site/app
23+
- name: Deploy
24+
uses: JamesIves/github-pages-deploy-action@releases/v3
25+
with:
26+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
27+
BRANCH: gh-pages
28+
FOLDER: site/app/dist

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
test/snapshots
3+
.DS_Store
4+
.idea
5+
.vscode
6+
*.log

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.github
2+
site
3+
test
4+
examples
5+
cypress
6+
img
7+
.editorconfig
8+
.idea
9+
.vscode
10+
cypress.json
11+
favicon.ico

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0] - 2020-10-06
9+
10+
- Beta release

cypress.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"reporter": "junit",
3+
"reporterOptions": {
4+
"mochaFile": "cypress/reports/junit/ci-test-output-[hash].xml",
5+
"jenkinsMode": true,
6+
"rootSuiteTitle": "FicusJS Script Integration Tests",
7+
"testsuitesTitle": "Cypress Tests"
8+
}
9+
}

cypress/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
videos
2+
screenshots
3+
reports

cypress/integration/script.spec.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* global describe cy before it */
2+
describe('Script loader', () => {
3+
before(() => {
4+
cy.visit('http://localhost:8080/test/e2e')
5+
})
6+
7+
it('name is loaded', () => {
8+
cy.get('#name')
9+
.should('have.text', 'Name ESM')
10+
})
11+
12+
it('address is loaded', () => {
13+
cy.get('#address')
14+
.should('have.text', 'Address ESM')
15+
})
16+
17+
it('postcode is loaded', () => {
18+
cy.get('#postcode')
19+
.should('have.text', 'Postcode ES5')
20+
})
21+
22+
it('phone is loaded', () => {
23+
cy.get('#phone')
24+
.should('have.text', 'Phone ESM')
25+
})
26+
})

cypress/plugins/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/// <reference types="cypress" />
2+
// ***********************************************************
3+
// This example plugins/index.js can be used to load plugins
4+
//
5+
// You can change the location of this file or turn off loading
6+
// the plugins file with the 'pluginsFile' configuration option.
7+
//
8+
// You can read more here:
9+
// https://on.cypress.io/plugins-guide
10+
// ***********************************************************
11+
12+
// This function is called when a project is opened or re-opened (e.g. due to
13+
// the project's config changing)
14+
15+
/**
16+
* @type {Cypress.PluginConfig}
17+
*/
18+
module.exports = (on, config) => {
19+
// `on` is used to hook into various events Cypress emits
20+
// `config` is the resolved Cypress config
21+
}

0 commit comments

Comments
 (0)