Skip to content

Commit

Permalink
Merge pull request #16 from fioprotocol/develop
Browse files Browse the repository at this point in the history
Develop > Master
  • Loading branch information
trukhilio authored Oct 25, 2024
2 parents 10848a0 + f42bff7 commit 52f4964
Show file tree
Hide file tree
Showing 42 changed files with 29,748 additions and 1,668 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ docs-build/
#cypress artifacts
cypress/screenshots/
cypress/videos/
cypress/downloads/
reports/
coverage/

#editors
.idea
.vscode
.fleet
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ env:
sudo: false
language: node_js
node_js:
- '10.0.0'
- '18.15.0'
before_install:
- npm i -g npm@6.4.1
- npm i -g npm@9.6.7
- yarn global add typescript
- yarn global add webpack
- yarn global add webpack
before_script:
- source ./scripts/is_latest.sh
script:
Expand All @@ -17,14 +17,14 @@ script:
deploy:
- provider: script
skip_cleanup: true
script:
script:
- ./scripts/publish-edge.sh
on:
on:
branch: develop
- provider: script
skip_cleanup: true
script:
script:
- ./scripts/publish-tag.sh $PUBLISH_NPM_LATEST_FROM
on:
on:
tags: true
condition: $TRAVIS_IS_LATEST_TAG = true # sourced from ./scripts/is_latest.sh
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ Make sure to install typescript by running, this command in terminal:

sudo npm install -g typescript

# Publishing to Node Package Manager (npm)
To publish to npm.
1. Update the version number, for this release. In 'package.json'
2. Publish to npm:

cd fiosdk_typescript
yarn
tsc
npm test
npm publish --access public

Further details:
http://npmjs.com/
https://docs.npmjs.com/creating-and-publishing-scoped-public-packages

# Using the SDK

# Import if installing manually
Expand Down
20 changes: 20 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineConfig } from "cypress";

export default defineConfig({
video: true,
fixturesFolder: false,
reporter: "mochawesome",

reporterOptions: {
reportDir: "reports",
overwrite: false,
},

userAgent: "Chrome cypress",

e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
12 changes: 0 additions & 12 deletions cypress.json

This file was deleted.

File renamed without changes.
37 changes: 37 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/// <reference types="cypress" />
// ***********************************************
// This example commands.ts shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//
// declare global {
// namespace Cypress {
// interface Chainable {
// login(email: string, password: string): Chainable<void>
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
20 changes: 20 additions & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')
Loading

0 comments on commit 52f4964

Please sign in to comment.