@superfluid-finance/sdk-core
v0.8.0dev
nodemon -e ts -x yarn test
fix
run-s fix:*
cloc
sh tasks/cloc.sh
lint
run-s lint:*
test
hardhat test --tsconfig "tsconfig.test.json"
build
yarn generate && rm -rf dist && run-s build:*
clean
rm -rf node_modules; rm -rf dist; rm -rf src/typechain-types; rm -rf src/typechain; rm -rf src/abi; find . -type f -name '*.generated.ts' -exec rm {} +
pretest
yarn testenv:start
doc:html
typedoc --entryPointStrategy expand ./src --options ./typedoc.js && copyfiles -f ./sf-logo.png ./dist/docs/
generate
run-s generate:*
posttest
yarn testenv:stop
build:umd
mkdir -p dist && browserify src/index.ts -s sdkCore -p [ tsify --noImplicitAny --skipLibCheck ] > dist/index.umd.js
build:main
tsc -p tsconfig.json
fix:eslint
yarn lint:eslint --fix
pre-commit
if [ ! -z "$(git status -s .)" ];then run-s lint:*;else true;fi
start-node
hardhat node
lint:eslint
eslint src --ext .ts
build:module
tsc -p tsconfig.module.json
testenv:stop
tasks/testenv-ctl.sh stop
check-updates
ncu --target minor --dep prod,dev
test-coverage
nyc --reporter=html --reporter=lcov --reporter=json yarn test
testenv:start
tasks/testenv-ctl.sh start
get-graphql-schema
yarn get-graphql-schema:v1
build:typechain-types
./tasks/build-types.sh
get-graphql-schema:v1
get-graphql-schema https://subgraph-endpoints.superfluid.dev/optimism-mainnet/protocol-v1 > src/subgraph/schema.graphql
generate:graphql-types
graphql-codegen --config subgraph-codegen.yml
get-graphql-schema:dev
get-graphql-schema https://subgraph-endpoints.superfluid.dev/optimism-sepolia/protocol-v1 > src/subgraph/schema.graphql
generate:ajv-validations
ts-node scripts/ajv.ts
get-graphql-schema:local
get-graphql-schema http://localhost:8000/subgraphs/name/superfluid-test > src/subgraph/schema.graphql
get-graphql-schema:custom-url
get-graphql-schema $1 > src/subgraph/schema.graphql
set-default-subgraph-release-tag
node scripts/setDefaultSubgraphReleaseTag.js
npm i @superfluid-finance/[email protected]
Metadata
- MIT
- >=12
- Unknown
- released 8/8/2024