Skip to content

Commit

Permalink
Merge pull request #21 from Financial-Times/uptade-to-main
Browse files Browse the repository at this point in the history
chore: rename master to main
  • Loading branch information
umbobabo committed Sep 22, 2021
2 parents 016ddf9 + c764b33 commit cfe1d51
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
28 changes: 12 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# template: component

references:

container_config_node8: &container_config_node8
working_directory: ~/project/build
docker:
Expand All @@ -13,36 +12,35 @@ references:
docker:
- image: lambci/lambda:build-nodejs8.10

workspace_root: &workspace_root
~/project
workspace_root: &workspace_root ~/project

attach_workspace: &attach_workspace
attach_workspace:
at: *workspace_root

npm_cache_keys: &npm_cache_keys
keys:
- v2-dependency-npm-{{ checksum "package.json" }}-
- v2-dependency-npm-{{ checksum "package.json" }}
- v2-dependency-npm-
- v2-dependency-npm-{{ checksum "package.json" }}-
- v2-dependency-npm-{{ checksum "package.json" }}
- v2-dependency-npm-

cache_npm_cache: &cache_npm_cache
save_cache:
key: v2-dependency-npm-{{ checksum "package.json" }}-{{ epoch }}
paths:
key: v2-dependency-npm-{{ checksum "package.json" }}-{{ epoch }}
paths:
- ./node_modules/

restore_npm_cache: &restore_npm_cache
restore_cache:
<<: *npm_cache_keys
<<: *npm_cache_keys

filters_only_master: &filters_only_master
filters_only_main: &filters_only_main
branches:
only: master
only: main

filters_ignore_master: &filters_ignore_master
filters_ignore_main: &filters_ignore_main
branches:
ignore: master
ignore: main

filters_ignore_tags: &filters_ignore_tags
tags:
Expand All @@ -58,7 +56,6 @@ references:
version: 2

jobs:

build:
<<: *container_config_node8
steps:
Expand Down Expand Up @@ -121,7 +118,6 @@ jobs:
command: .circleci/shared-helpers/helper-npm-version-and-publish-public

workflows:

version: 2

build-test:
Expand Down Expand Up @@ -154,7 +150,7 @@ workflows:
- schedule:
cron: "0 0 * * *"
filters:
<<: *filters_only_master
<<: *filters_only_main
jobs:
- build:
context: next-nightly-build
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# n-search-parser

[![CircleCI](https://img.shields.io/circleci/project/github/Financial-Times/n-search-parser/master.svg)](https://circleci.com/gh/Financial-Times/n-search-parser) [![NPM version](https://img.shields.io/npm/v/@financial-times/n-search-parser.svg)](https://www.npmjs.com/package/@financial-times/n-search-parser)
[![CircleCI](https://img.shields.io/circleci/project/github/Financial-Times/n-search-parser/main.svg)](https://circleci.com/gh/Financial-Times/n-search-parser) [![NPM version](https://img.shields.io/npm/v/@financial-times/n-search-parser.svg)](https://www.npmjs.com/package/@financial-times/n-search-parser)

This parser is not that smart, but that's OK. You don't need to know about [parsing expression grammar][1] (and subsequently [the tools][2] surrounding it) or anything like that. It's written in sane JavaScript, is very fast, and consists of a tokenizer and an expression tree builder.

Expand All @@ -21,7 +21,7 @@ $ npm i -S @financial-times/n-search-parser
First include the module in your code:

```js
const parser = require('@financial-times/n-search-parser');
const parser = require("@financial-times/n-search-parser");
```

This module will export three methods...
Expand Down

0 comments on commit cfe1d51

Please sign in to comment.