Skip to content

Commit 26cdf17

Browse files
committed
Error codes numerically increasing starting at 0 with tools to create new and check
1 parent 8b7c3f2 commit 26cdf17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+532
-162
lines changed

packages/firestore/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test:lite:browser": "karma start --lite",
2828
"test:lite:browser:nameddb": "karma start --lite --databaseId=test-db",
2929
"test:lite:browser:debug": "karma start --browsers=Chrome --lite --auto-watch",
30-
"test": "run-s --npm-path npm lint test:all",
30+
"test": "run-s --npm-path npm lint error-code:check test:all",
3131
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all:ci",
3232
"test:all:ci": "run-s --npm-path npm test:browser test:travis test:lite:browser test:browser:prod:nameddb test:lite:browser:nameddb",
3333
"test:all": "run-p --npm-path npm test:browser test:lite:browser test:travis test:minified test:browser:prod:nameddb test:lite:browser:nameddb",
@@ -52,7 +52,11 @@
5252
"api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
5353
"api-report": "run-s --npm-path npm api-report:main api-report:lite && yarn api-report:api-json",
5454
"doc": "api-documenter markdown --input temp --output docs",
55-
"typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts"
55+
"typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts",
56+
"error-code:check": "ts-node scripts/error-code-tool.js --dir=src --check",
57+
"error-code:generate": "ts-node scripts/error-code-tool.js --dir=src --new",
58+
"error-code:list": "ts-node scripts/error-code-tool.js --dir=src --list",
59+
"error-code:find": "ts-node scripts/error-code-tool.js --dir=src --find"
5660
},
5761
"exports": {
5862
".": {

packages/firestore/scripts/error-code-tool.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)