project: move env and /scripts to root
This commit is contained in:
parent
04ecdfc7b7
commit
7968bf7194
@ -9,8 +9,6 @@
|
||||
"lint:fix": "next lint -- --fix",
|
||||
"start": "next start",
|
||||
"graphql:codegen": "graphql-codegen --config .graphqlrc.yml",
|
||||
"graphql:download-schema": "dotenv -e .env.local node ./scripts/graphql-download-schema.js",
|
||||
"graphql:update": "yarn graphql:codegen & yarn graphql:download-schema",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -52,10 +50,8 @@
|
||||
"@types/react": "^18.0.26",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"dotenv-cli": "^6.0.0",
|
||||
"eslint": "^8.31.0",
|
||||
"eslint-config-custom": "*",
|
||||
"gql-sdl": "^1.0.0",
|
||||
"jest": "^29.3.1",
|
||||
"jest-environment-jsdom": "^29.3.1",
|
||||
"msw": "^0.49.2",
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
web:
|
||||
container_name: web
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./apps/web/Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
- app_network
|
||||
|
||||
# Define a network, which allows containers to communicate
|
||||
# with each other, by using their container name as a hostname
|
||||
networks:
|
||||
app_network:
|
||||
external: true
|
||||
@ -9,18 +9,20 @@
|
||||
"scripts": {
|
||||
"build": "turbo run build",
|
||||
"clean": "turbo run clean",
|
||||
"dev": "turbo run dev --parallel",
|
||||
"dev": "dotenv -e .env.local turbo run dev --parallel",
|
||||
"format": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
|
||||
"lint": "turbo run lint",
|
||||
"lint:fix": "turbo run lint:fix",
|
||||
"test": "turbo run test",
|
||||
"test": "dotenv -e .env.local turbo run test",
|
||||
"prepare": "husky install",
|
||||
"precommit": "yarn format && yarn lint:fix && yarn test"
|
||||
"precommit": "yarn format && yarn lint:fix && yarn test",
|
||||
"graphql:download-schema": "dotenv -e .env.local node ./scripts/graphql-download-schema.js"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"dotenv-cli": "^6.0.0",
|
||||
"eslint-config-custom": "*",
|
||||
"gql-sdl": "^1.0.0",
|
||||
"husky": "^8.0.3",
|
||||
"prettier": "^2.8.2",
|
||||
"turbo": "latest"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const { exec } = require('child_process');
|
||||
|
||||
const { URL_CRM_GRAPHQL_DIRECT } = process.env;
|
||||
const PATH_CRM_GRAPHQL_SCHEMA = './graphql/crm.schema.graphql';
|
||||
const PATH_CRM_GRAPHQL_SCHEMA = './apps/web/graphql/crm.schema.graphql';
|
||||
|
||||
const command = ['gql-sdl ', URL_CRM_GRAPHQL_DIRECT, ' ', '-o', PATH_CRM_GRAPHQL_SCHEMA].join('');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user