This repository was archived by the owner on Aug 15, 2019. It is now read-only.
File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
.vscode /
2
+ .rpt2_cache /
2
3
demos /
4
+ integration_tests /
3
5
docs /
4
6
scripts /
5
7
src /
Original file line number Diff line number Diff line change @@ -20,6 +20,23 @@ import typescript from 'rollup-plugin-typescript2';
20
20
import commonjs from 'rollup-plugin-commonjs' ;
21
21
import resolve from 'rollup-plugin-node-resolve' ;
22
22
23
+ const PREAMBLE = `/**
24
+ * @license
25
+ * Copyright ${ ( new Date ) . getFullYear ( ) } Google LLC. All Rights Reserved.
26
+ * Licensed under the Apache License, Version 2.0 (the "License");
27
+ * you may not use this file except in compliance with the License.
28
+ * You may obtain a copy of the License at
29
+ *
30
+ * http://www.apache.org/licenses/LICENSE-2.0
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software
33
+ * distributed under the License is distributed on an "AS IS" BASIS,
34
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35
+ * See the License for the specific language governing permissions and
36
+ * limitations under the License.
37
+ * =============================================================================
38
+ */` ;
39
+
23
40
export default {
24
41
input : 'src/index.ts' ,
25
42
plugins : [
@@ -35,7 +52,7 @@ export default {
35
52
] ,
36
53
output : {
37
54
extend : true ,
38
- banner : `// @tensorflow/tfjs-core Copyright ${ ( new Date ) . getFullYear ( ) } Google` ,
55
+ banner : PREAMBLE ,
39
56
file : 'dist/tf-core.js' ,
40
57
format : 'umd' ,
41
58
name : 'tf' ,
Original file line number Diff line number Diff line change 21
21
22
22
yarn build
23
23
rollup -c
24
- uglifyjs dist/tf-core.js -c -m -o dist/tf-core.min.js
24
+ uglifyjs dist/tf-core.js --comments - c -m -o dist/tf-core.min.js
25
25
26
26
echo " Stored standalone library at dist/tf-core(.min).js"
27
27
npm pack
You can’t perform that action at this time.
0 commit comments