Skip to content

Commit

Permalink
feat: add some scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpho93 committed Aug 30, 2022
1 parent 2e35de6 commit 2a47dee
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
name: Build and push production Docker image
command: |
VERSION=$(git describe --tags `git rev-list --tags --max-count=1` | cut -c2-100)
docker build -t ${DOCKER_REPOSITORY}:${VERSION} -t ${DOCKER_REPOSITORY}:latest .
docker build -t ${DOCKER_REPOSITORY}:${VERSION} -t ${DOCKER_REPOSITORY}:latest ./apps/reaction
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker push ${DOCKER_REPOSITORY}:${VERSION}
docker push ${DOCKER_REPOSITORY}:latest
Expand Down
2 changes: 1 addition & 1 deletion .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_
_
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 21 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{
"name": "reaction-monorepos",
"name": "reaction",
"version": "1.0.0",
"description": "",
"description": "Reaction is a modern reactive, real-time event driven ecommerce platform.",
"main": "index.js",
"scripts": {
"start:dev": "npm run start:dev --workspace=apps/reaction",
"start:dev": "npm run start:dev -w=apps/reaction",
"start:meteor-blaze-app": "npm run start -w=apps/meteor-blaze-app",
"build:packages": "npm run build -w=packages/file-collections -w=packages/file-collections-sa-base -w=packages/file-collections-sa-gridfs -w=packages/logger -w=packages/random",
"test": "npm run test -w=packages/api-core",
"test": "npm run test --if-present --ws",
"test:integration:query": "npm run test:integration:query --workspace=apps/reaction",
"test:integration:mutation": "npm run test:integration:mutation --workspace=apps/reaction",
"changeset": "changeset",
"release": "changeset publish",
"lint": "eslint . --resolve-plugins-relative-to .",
"lint:docker": "npx --quiet --package @reactioncommerce/[email protected] lint-dockerfiles --workspace=apps/reaction",
"lint:gql": "npm run lint:gql -w=apps/reaction -w=packages/api-core -w=packages/api-plugin-surcharges",
"postinstall": "npm run build:packages"
"postinstall": "npm run build:packages && is-ci || is-docker || husky install .husky"
},
"homepage": "https://github.com/reactioncommerce/reaction",
"url": "https://github.com/reactioncommerce/reaction",
"email": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/vanpho93/reaction-monorepos.git"
"url": "https://github.com/reactioncommerce/reaction.git"
},
"author": "",
"license": "ISC",
"author": "Reaction Commerce <[email protected]>",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/vanpho93/reaction-monorepos/issues"
"url": "https://github.com/reactioncommerce/reaction/issues"
},
"homepage": "https://github.com/vanpho93/reaction-monorepos#readme",
"workspaces": [
"apps/*",
"packages/*"
Expand Down Expand Up @@ -70,5 +73,13 @@
"types-are-capitalized",
"types-have-descriptions"
]
},
"prettier": {
"arrowParens": "always"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}

0 comments on commit 2a47dee

Please sign in to comment.