Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for pmg #3

Merged
merged 17 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:12

jobs:
build:
<<: *defaults
steps:
- checkout
- run:
name: Installing dependencies
command: npm install
- run:
name: Building package
command: npm run build
- persist_to_workspace:
root: ~/
paths: .

unit-tests:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run:
name: "Running unit tests"
command: npm run test

lint-check:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run:
name: "Linting the code with tslint"
command: npm run lint

deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run:
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: git config user.email "[email protected]"
- run: git config user.name "Github Bot"
- run:
name: Bumping package version
command: npm version patch -m "[skip ci] updated to v%s. published to npm." --yes
- run:
name: Push changes to Github
command: git push -u origin && git push --tags
- run:
name: Publishing packages to npm
command: npm publish


workflows:
version: 2
build-test-lint-deploy:
jobs:
- build:
context:
- node
- unit-tests:
requires:
- build
- lint-check:
requires:
- build
- deploy:
context:
- npm-publish
requires:
- lint-check
- unit-tests
filters:
branches:
only:
- master
- 0.x
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea
node_modules
.vscode
**/node_modules
**/lib
25 changes: 0 additions & 25 deletions lib/index.d.ts

This file was deleted.

218 changes: 0 additions & 218 deletions lib/index.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/index.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions lib/query/QueryCompiler.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions lib/query/QueryCompiler.js

This file was deleted.

Loading