mirror of
https://github.com/chenasraf/search-ast-parser-js.git
synced 2026-05-17 17:48:09 +00:00
build: update config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
||||
coverage
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
|
||||
build/
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Chen Asraf
|
||||
Copyright (c) 2022 Chen Asraf <contact@casraf.dev>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -90,11 +90,11 @@ const result = [
|
||||
|
||||
## How to use
|
||||
|
||||
Simply pass a string to the parse to get the result.
|
||||
Simply pass a string to the parse function to get the results.
|
||||
|
||||
```js
|
||||
import { parse } from 'search-query-parser'
|
||||
const result = parse('(mango banana lemon) OR apple -pineapple')
|
||||
const results = parse('(mango banana lemon) OR apple -pineapple')
|
||||
```
|
||||
|
||||
## Supported operators
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "jest",
|
||||
"build": "tsc && yarn copy-files && yarn package",
|
||||
"copy-files": "cp README.md LICENSE build/",
|
||||
"package": "jq 'del(.scripts, .devDependencies)' < package.json > build/package.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{
|
||||
"files": [
|
||||
"./src/index.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"__tests__/**/*",
|
||||
],
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||
/* Projects */
|
||||
@@ -39,7 +45,7 @@
|
||||
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
||||
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
||||
/* Emit */
|
||||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||
@@ -90,6 +96,6 @@
|
||||
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
||||
/* Completeness */
|
||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user