Skip to content

Commit 5520e91

Browse files
committed
Merge branch 'dev' into main
2 parents fa666d7 + d8bc8f9 commit 5520e91

File tree

99 files changed

+20257
-1
lines changed

Some content is hidden

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

99 files changed

+20257
-1
lines changed

.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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
## [1.0.0] - 2020-10-06
9+
10+
- Initial release
11+
12+
## [0.1.0] - 2020-10-06
13+
14+
- Beta release

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
# FicusJS script loader
22

3-
FicusJS script loader for lazy loading ES modules and ES5 scripts or both based on dynamic paths
3+
<img src="img/ficusjs.svg" alt="FicusJS" width="150" align="right">
4+
5+
Lightweight script loader for lazy loading ES modules and ES5 scripts or both based on dynamic paths.
6+
7+
## Documentation
8+
9+
See the [full documentation](https://script.ficusjs.org).
10+
11+
---
12+
13+
## FicusJS
14+
15+
Looking for a set of lightweight functions for developing applications using web components?
16+
17+
- A function for creating fast, lightweight web components
18+
- A function for creating fast, lightweight stores for application state
19+
- A function for creating a fast, lightweight publish/subscribe event bus
20+
21+
[Try FicusJS!](https://docs.ficusjs.org)
22+
23+
## FicusJS router
24+
25+
Looking for a lightweight standalone client-side router that supports history and hash routing?
26+
27+
[Try FicusJS router!](https://router.ficusjs.org)

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+
})

0 commit comments

Comments
 (0)