Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / Makefile
Size: Mime:
SHELL := /bin/bash

dev_ts:
	$(MAKE) clean && NODE_ENV=development IS_STANDALONE_GRAPHQL=true API_LAYER='stream' SHOULD_USE_LOWERCASE_STORE_ID=false SHOULD_USE_PLAYGROUND=true BASE_URL='http://localhost:4000' PORT=4000 npx ts-node-dev --respawn --transpileOnly src/index.ts

compile:
	$(MAKE) clean && npx tsc --project tsconfig.json || true

debug_stream:
	$(MAKE) compile && NODE_ENV=development IS_STANDALONE_GRAPHQL=true API_LAYER='stream' SHOULD_USE_LOWERCASE_STORE_ID=true SHOULD_USE_PLAYGROUND=true BASE_URL='http://localhost:4000' PORT=4000 npx ndb node dist/index


run_dev_ts:
	NODE_ENV=development IS_STANDALONE_GRAPHQL=true API_LAYER='orchestration' SHOULD_USE_LOWERCASE_STORE_ID=true SHOULD_USE_PLAYGROUND=true BASE_URL='http://localhost:4000' PORT=4000 node dist/index

cross_streams:
	NODE_ENV=development IS_STANDALONE_GRAPHQL=true API_LAYER='stream' SHOULD_USE_LOWERCASE_STORE_ID=true SHOULD_USE_PLAYGROUND=true BASE_URL='http://localhost:4000' PORT=4000 node dist/index

dev:
	$(MAKE) dev_ts
	# yarn run cross-env NODE_ENV=development IS_STANDALONE_GRAPHQL=true  API_LAYER='orchestration'  SHOULD_USE_LOWERCASE_STORE_ID=true SHOULD_USE_PLAYGROUND=true BASE_URL='http://localhost:4000' PORT=4000 webpack --watch & $(MAKE) watch_graphql

watch_graphql:
	node scripts/dev

mock_dev:
	yarn run cross-env USE_MOCKS=true $(MAKE) dev

mock_start:
	yarn run cross-env USE_MOCKS=true $(MAKE) start

# @todo it needs to rimraf
prebuild:
	node ./scripts/deploy/index.js

build:
	$(MAKE) prebuild && yarn run cross-env NODE_ENV=production webpack

build_prod:
	$(MAKE) prebuild && yarn run webpack --config webpack.config.prod.js

start:
	yarn run build && yarn run cross-env NODE_ENV=production IS_STANDALONE_GRAPHQL=true BASE_URL='http://localhost:4000' HOST=localhost node dist/server.js

clean:
	npx rimraf dist

copy:
	cp -R src dist/;
babel:
	yarn run babel src --out-dir dist

tests:
	NODE_ENV=testing BASE_URL='http://localhost:4000' PORT=4000 SERVER_URL='http://localhost:4000' yarn run jest

coverage:
	NODE_ENV=testing BASE_URL='http://localhost:4000' PORT=4000 SERVER_URL='http://localhost:4000' yarn run jest --coverage

tdd:
	yarn run jest -- --watch --lastCommit --onlyChanged

tddcart:
	yarn run jest -- src/endpoints/cartAndCheckout/orchestration/* --watch --lastCommit --onlyChanged

build_gql:
	npx ts-node scripts/generate

build_schema:
	yarn run graphql prepare -p skava-graphql -o src/generated --bundle --save

build_fragments:
	yarn run graphql generate-fragments -p skava-graphql -o src/generated -g graphql --save --verbose

build_types:
	yarn run graphql prepare

build_generated:
	$(MAKE) build_schema && $(MAKE) build_fragments && $(MAKE) build_types

publish:
	$(MAKE) clean && $(MAKE) build_generated || true && $(MAKE) compile