Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Check dependencies
run: node_modules/.bin/packster check --all --error
Expand All @@ -58,7 +58,7 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Check dependencies
run: node_modules/.bin/syncpack-list-mismatches
Expand Down Expand Up @@ -112,10 +112,10 @@ jobs:
cache-max-size: 3g

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Build packages
run: npm run build
run: node_modules/.bin/ultra -r --build

- name: Setup local network
run: npm run configure
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
cache-max-size: 3g

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Run ESLinter
run: npm run lint

- name: Build packages
run: npm run build
run: node_modules/.bin/ultra -r --build

- name: Setup local network
run: npm run configure
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Build packages
run: npm run build
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Build packages
run: npm run build # TODO: Build only for Drive and deps
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci
run: npm ci --no-audit

- name: Build packages
run: npm run build # TODO: Build only for DAPI and deps
Expand Down Expand Up @@ -272,3 +272,5 @@ jobs:
tags: ${{ steps.drive_docker_meta.outputs.tags }}
labels: ${{ steps.drive_docker_meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

# TOOD: release test suite docker image
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
${{ runner.os }}-node-

- name: Install NPM dependencies
run: npm ci # TODO: Run only for specified package
run: npm ci --no-audit

- name: Run ESLinter
run: npm run lint -w ${{ inputs.package }} --if-present

- name: Build package
run: npm run build # TODO: Run only for specified package and deps
run: node_modules/.bin/ultra -r --build --filter "+${{ inputs.package }}"

- name: Setup dotenv files
run: npm run configure:dotenv
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ node_modules
.nyc_output

*.log

# Ultra runner build cache
.ultra.cache.json
3 changes: 3 additions & 0 deletions packages/dapi-grpc/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ clients/*/v*/python
clients/*/v*/java

node_modules

# Ultra runner build cache
.ultra.cache.json
1 change: 1 addition & 0 deletions packages/feature-flags-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.1",
"description": "Data Contract to store Dash Platform feature flags",
"scripts": {
"build": "",
"lint": "eslint .",
"test": "npm run test:unit",
"test:unit": "mocha 'test/unit/**/*.spec.js'"
Expand Down
3 changes: 3 additions & 0 deletions packages/js-dapi-client/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ node_modules

# ignore generated code coverage output
.nyc_output

# Ultra runner build cache
.ultra.cache.json
4 changes: 2 additions & 2 deletions packages/js-dapi-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
"lib"
],
"scripts": {
"build": "webpack",
"build:web": "webpack",
"lint": "eslint .",
"test": "npm run test:coverage && npm run test:browsers",
"test:unit": "mocha './test/unit/**/*.spec.js'",
"test:integration": "mocha './test/integration/**/*.spec.js'",
"test:node": "NODE_ENV=test mocha",
"test:browsers": "karma start ./karma.conf.js --single-run",
"test:coverage": "NODE_ENV=test nyc --check-coverage --stmts=98 --branch=98 --funcs=98 --lines=95 mocha 'test/unit/**/*.spec.js' 'test/integration/**/*.spec.js'",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build:web"
},
"license": "MIT"
}
4 changes: 4 additions & 0 deletions packages/js-dash-sdk/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules

.DS_Store

# Ultra runner build cache
.ultra.cache.json
4 changes: 2 additions & 2 deletions packages/js-dash-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"types": "dist/src/index.d.ts",
"scripts": {
"start:dev": "nodemon --exec 'npm run build && npm run test:unit'",
"build": "npm run build:web",
"build": "npm run build:ts",
"build:web": "npm run build:ts && webpack --stats-error-details",
"build:ts": "tsc",
"test": "npm run test:unit && npm run test:functional && npm run test:browsers",
"test:browsers": "karma start ./karma.conf.js --single-run",
"test:unit": "TS_NODE_COMPILER_OPTIONS='{\"target\":\"es6\"}' mocha -r ts-node/register/transpile-only \"src/**/*.spec.ts\"",
"test:functional": "npm run build && mocha --recursive tests/functional/**/*.js",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run build:web",
"prepare": "npm run build"
},
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions packages/js-dpp/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# do not track dependencies
node_modules

# Ultra runner build cache
.ultra.cache.json
4 changes: 2 additions & 2 deletions packages/js-dpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"scripts": {
"lint": "eslint .",
"test": "npm run test:coverage && npm run test:browsers",
"build": "webpack --stats-error-details",
"build:web": "webpack --stats-error-details",
"test:node": "NODE_ENV=test mocha",
"test:browsers": "karma start ./karma.conf.js --single-run",
"test:coverage": "NODE_ENV=test nyc --check-coverage --stmts=98 --branch=94 --funcs=95 --lines=98 mocha 'test/unit/**/*.spec.js' 'test/integration/**/*.spec.js'",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build:web"
},
"main": "lib/DashPlatformProtocol.js",
"contributors": [
Expand Down
1 change: 1 addition & 0 deletions packages/js-grpc-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Common GRPC library",
"main": "index.js",
"scripts": {
"build": "",
"lint": "eslint .",
"test": "npm run test:coverage",
"test:coverage": "nyc --check-coverage --stmts=95 --branch=95 --funcs=95 --lines=95 mocha 'test/unit/**/*.spec.js' 'test/integration/**/*.spec.js'",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-test-suite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /
RUN npm config set unsafe-perm true

COPY package.json package-lock.json ./
RUN npm ci --production
RUN npm ci --loglevel info --no-audit --production

FROM node:16-alpine

Expand Down
4 changes: 2 additions & 2 deletions packages/wallet-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"main": "src/index.js",
"unpkg": "dist/wallet-lib.min.js",
"scripts": {
"build": "webpack --stats-error-details",
"build:web": "webpack --stats-error-details",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test:unit": "nyc mocha 'src/**/*.spec.js'",
"test:functional": "nyc mocha 'tests/functional/*.js'",
"test:integration": "nyc mocha 'tests/integration/**/*.spec.js'",
"test:browsers": "karma start ./karma.conf.js --single-run",
"test": "npm run test:unit && npm run test:integration && npm run test:functional && npm run test:browsers",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build:web"
},
"files": [
"dist",
Expand Down