|
8 | 8 | "author": "Firebase <[email protected]> (https://firebase.google.com/)",
|
9 | 9 | "scripts": {
|
10 | 10 | "build": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js && yarn build:lite && yarn build:exp",
|
11 |
| - "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts", |
| 11 | + "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'", |
12 | 12 | "build:release": "rollup -c rollup.config.es2017.js && rollup -c rollup.config.es5.js",
|
13 | 13 | "build:deps": "lerna run --scope @firebase/'{app,firestore}' --include-dependencies build",
|
14 | 14 | "build:console": "node tools/console.build.js",
|
|
24 | 24 | "gendeps:exp": "../../scripts/exp/extract-deps.sh --types ./exp-types/index.d.ts --bundle ./dist/exp/tmp.js --output ./exp/dependencies.json",
|
25 | 25 | "pregendeps:lite": "node scripts/build-bundle.js --input ./lite/index.ts --output ./dist/lite/tmp.js",
|
26 | 26 | "gendeps:lite": "../../scripts/exp/extract-deps.sh --types ./lite-types/index.d.ts --bundle ./dist/lite/tmp.js --output ./lite/dependencies.json",
|
27 |
| - "test:lite": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'lite/test/**/*.test.ts' --require ts-node/register --file lite/index.ts --config ../../config/mocharc.node.js", |
| 27 | + "test:lite": "node ./scripts/run-tests.js --emulator --main=lite/index.ts 'lite/test/**/*.test.ts'", |
28 | 28 | "test:lite:browser": "karma start --single-run --lite",
|
29 | 29 | "test:lite:browser:debug": "karma start --single-run --lite --auto-watch",
|
30 |
| - "test:exp": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/integration/api/*.test.ts' --file exp/index.ts --config ../../config/mocharc.node.js", |
31 |
| - "test:exp:persistence": "USE_MOCK_PERSISTENCE=YES TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/integration/api/*.test.ts' --require ts-node/register --require exp/index.ts --require test/util/node_persistence.ts --config ../../config/mocharc.node.js", |
| 30 | + "test:exp": "node ./scripts/run-tests.js --emulator --main=exp/index.ts test/integration/api/*.test.ts", |
| 31 | + "test:exp:persistence": "node ./scripts/run-tests.js --emulator --persistence --main=exp/index.ts test/integration/api/*.test.ts", |
32 | 32 | "test:exp:browser": "karma start --single-run --exp",
|
33 | 33 | "test:exp:browser:debug": "karma start --single-run --exp --auto-watch",
|
34 | 34 | "test": "run-s lint test:all",
|
35 | 35 | "test:ci": "node ../../scripts/run_tests_in_ci.js",
|
36 | 36 | "test:all": "run-p test:browser test:lite:browser test:exp:browser test:travis test:minified test:exp test:lite",
|
37 | 37 | "test:browser": "karma start --single-run",
|
38 | 38 | "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
|
39 |
| - "test:node": "FIRESTORE_EMULATOR_PORT=8080 FIRESTORE_EMULATOR_PROJECT_ID=test-emulator TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js", |
40 |
| - "test:node:prod": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js", |
41 |
| - "test:node:persistence": "FIRESTORE_EMULATOR_PORT=8080 FIRESTORE_EMULATOR_PROJECT_ID=test-emulator USE_MOCK_PERSISTENCE=YES TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --require ts-node/register --require index.node.ts --require test/util/node_persistence.ts --config ../../config/mocharc.node.js", |
42 |
| - "test:node:persistence:prod": "USE_MOCK_PERSISTENCE=YES TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --require ts-node/register --require index.node.ts --require test/util/node_persistence.ts --config ../../config/mocharc.node.js", |
| 39 | + "test:node": "node ./scripts/run-tests.js --main=index.node.ts --emulator 'test/{,!(browser)/**/}*.test.ts'", |
| 40 | + "test:node:prod": "node ./scripts/run-tests.js --main=index.node.ts 'test/{,!(browser)/**/}*.test.ts'", |
| 41 | + "test:node:persistence": "node ./scripts/run-tests.js --main=index.node.ts --persistence --emulator 'test/{,!(browser)/**/}*.test.ts'", |
| 42 | + "test:node:persistence:prod": "node ./scripts/run-tests.js --main=index.node.ts --persistence 'test/{,!(browser)/**/}*.test.ts'", |
43 | 43 | "test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
|
44 | 44 | "test:minified": "(cd ../../integration/firestore ; yarn test)",
|
45 | 45 | "prepare": "yarn build:release"
|
|
0 commit comments