Skip to content

Commit dcc44ce

Browse files
Standardize rollup configs with a central config generator (tensorflow#1102)
Add `tools/make_rollup_config.mjs` to standardize rollup configs among models. Use the script to generate Blazeface's config. Additionally, upgrade TypeScript in the root package.json and in Blazeface to 4.9.5. Use node:16 for ci
1 parent 4e8fa79 commit dcc44ce

File tree

29 files changed

+779
-452
lines changed

29 files changed

+779
-452
lines changed

blazeface/cloudbuild.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
steps:
22

33
# Install common dependencies.
4-
- name: 'node:12'
4+
- name: 'node:16'
55
id: 'yarn-common'
66
entrypoint: 'yarn'
77
args: ['install']
88

99
# Install blazeface dependencies.
10-
- name: 'node:12'
10+
- name: 'node:16'
1111
dir: 'blazeface'
1212
entrypoint: 'yarn'
1313
id: 'yarn'
1414
args: ['install']
1515
waitFor: ['yarn-common']
1616

1717
# Lint.
18-
- name: 'node:12'
18+
- name: 'node:16'
1919
dir: 'blazeface'
2020
entrypoint: 'yarn'
2121
id: 'lint'
2222
args: ['lint']
2323
waitFor: ['yarn']
2424

2525
# Build.
26-
- name: 'node:12'
26+
- name: 'node:16'
2727
dir: 'blazeface'
2828
entrypoint: 'yarn'
2929
id: 'build'
3030
args: ['build']
3131
waitFor: ['yarn']
3232

3333
# Run tests.
34-
- name: 'node:12'
34+
- name: 'node:16'
3535
dir: 'blazeface'
3636
entrypoint: 'yarn'
3737
id: 'test'

blazeface/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
"jasmine": "^3.7.0",
2525
"jasmine-core": "^3.7.1",
2626
"rimraf": "~2.6.2",
27-
"rollup": "~0.58.2",
28-
"rollup-plugin-node-resolve": "~3.3.0",
29-
"rollup-plugin-typescript2": "~0.13.0",
30-
"rollup-plugin-uglify": "~3.0.0",
27+
"rollup": "^3.15.0",
3128
"ts-node": "~5.0.0",
3229
"tslint": "~6.1.3",
33-
"typescript": "3.5.3",
30+
"typescript": "^4.9.5",
3431
"yalc": "^1.0.0-pre.50"
3532
},
3633
"scripts": {
@@ -41,5 +38,6 @@
4138
"lint": "tslint -p . -t verbose",
4239
"publish-demo": "./scripts/publish-demo.sh"
4340
},
44-
"license": "Apache-2.0"
41+
"license": "Apache-2.0",
42+
"dependencies": {}
4543
}

blazeface/rollup.config.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

blazeface/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import {makeRollupConfig} from '../tools/make_rollup_config.mjs';
2+
3+
export default makeRollupConfig({name: 'blazeface'});

0 commit comments

Comments
 (0)