Skip to content

Commit

Permalink
WIP - NX NPM scripts (#18)
Browse files Browse the repository at this point in the history
* (chore): init commit for opening a wip pr

* (refactor): replaced pnpm exec in npm scripts to adhere to nx's docs with nx run app:script format

* (refactor): removed start: prefix from npm scripts to ensure consistency across npm scripts

* (build): added npm scripts expected from a monorepo to the root's package.json
  • Loading branch information
Omri-Levy committed Oct 27, 2022
1 parent 05e699d commit 464395c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
30 changes: 18 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,24 @@
"version": "0.1.0",
"main": "index.js",
"scripts": {
"web-sdk:dev": "pnpm exec nx dev web-sdk",
"web-sdk:build": "pnpm exec nx build web-sdk",
"web-sdk:example": "pnpm exec nx example web-sdk",
"web-sdk:format": "pnpm exec nx format web-sdk",
"web-sdk:lint": "pnpm exec nx lint web-sdk",
"web-sdk:lint:fix": "pnpm exec nx lint:fix web-sdk",
"format": "pnpm exec nx run-many --target=format",
"lint": "pnpm exec nx run-many --target=lint",
"lint:fix": "pnpm exec nx run-many --target=lint:fix",
"start:backoffice:dev": "echo \"Error: no test specified\" && exit 1",
"start:workflow-builder:dev": "echo \"Error: no test specified\" && exit 1",
"start:web-ui:dev": "echo \"Error: no test specified\" && exit 1",
"format": "nx affected --target=format",
"lint": "nx affected --target=lint",
"lint:fix": "nx affected --target=lint:fix",
"test": "nx affected --target=test",
"test:e2e": "nx affected --target=test:e2e",
"dev": "nx run-many --target=dev --projects=web-sdk",
"start": "nx run-many --target=start --projects=web-sdk",
"build": "nx affected --target=build",
"web-sdk:dev": "nx run web-sdk:dev",
"web-sdk:start": "nx run web-sdk:start",
"web-sdk:build": "nx run web-sdk:build",
"web-sdk:example": "nx run web-sdk:example",
"web-sdk:lint": "nx run web-sdk:lint",
"web-sdk:lint:fix": "nx run web-sdk:lint:fix",
"web-sdk:format": "nx run web-sdk:format",
"backoffice:dev": "echo \"Error: no test specified\" && exit 1",
"workflow-builder:dev": "echo \"Error: no test specified\" && exit 1",
"web-ui:dev": "echo \"Error: no test specified\" && exit 1",
"commit": "git add . && git-cz",
"prepare": "husky install",
"changeset": "changeset",
Expand Down
4 changes: 3 additions & 1 deletion sdks/web-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"build": "vite build",
"commit": "git add . && git-cz",
"deprecated:build:sdk": "rollup --config",
"preview": "vite preview",
"start": "vite preview",
"test": "echo \"Not yet implemented\"",
"test:e2e": "echo \"Not yet implemented\"",
"check": "svelte-check --tsconfig ./tsconfig.json",
"format": "prettier --write \"./src/**/*.{js,svelte,html,ts}\"",
"lint": "eslint \"./src/**/*.{js,ts,svelte}\"",
Expand Down
1 change: 1 addition & 0 deletions sdks/web-sdk/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ConfigurationProvider from './ConfigurationProvider.svelte';
import { BallerineSDK } from './types/BallerineSDK';
import {
setFlowCallbacks,
updateConfiguration,
Expand Down

0 comments on commit 464395c

Please sign in to comment.