Skip to content

Commit 06ca22d

Browse files
committed
add license header
1 parent 94464a0 commit 06ca22d

29 files changed

+206
-9
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 ActiveWidgets
3+
Copyright (c) 2020 ActiveWidgets
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

css/esm.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import '@activewidgets/datagrid/css';

css/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
require('@activewidgets/datagrid/css');

examples/columns/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 ActiveWidgets
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/columns/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "angular-columns",
33
"version": "1.0.0",
44
"description": "Columns, rows - ActiveWidgets/Angular",
5-
"keywords": [],
5+
"license": "MIT",
66
"main": "src/main.js",
77
"scripts": {
88
"start": "parcel index.html --open",

examples/columns/src/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import { Component } from '@angular/core';
38
import { northwind } from "@activewidgets/examples/data";

examples/columns/src/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import 'core-js/es7/reflect';
38
import 'zone.js/dist/zone';

examples/columns/src/styles.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
body {
38
margin: 60px;

examples/demo/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 ActiveWidgets
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "angular-demo",
33
"version": "1.0.0",
44
"description": "Demo - ActiveWidgets/Angular",
5-
"keywords": [],
5+
"license": "MIT",
66
"main": "src/main.js",
77
"scripts": {
88
"start": "parcel index.html --open",

examples/demo/src/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import { Component } from '@angular/core';
38
import { northwind } from '@activewidgets/examples/data';

examples/demo/src/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import 'core-js/es7/reflect';
38
import 'zone.js/dist/zone';

examples/demo/src/options.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import { intl, format, column, type } from "@activewidgets/options";
38

examples/demo/src/styles.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
body {
38
margin: 60px;

examples/events/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 ActiveWidgets
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/events/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "angular-events",
33
"version": "1.0.0",
44
"description": "User events - ActiveWidgets/Angular",
5-
"keywords": [],
5+
"license": "MIT",
66
"main": "src/main.js",
77
"scripts": {
88
"start": "parcel index.html --open",

examples/events/src/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import { Component } from '@angular/core';
38
import { columns, rows } from "@activewidgets/examples/data";

examples/events/src/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import 'core-js/es7/reflect';
38
import 'zone.js/dist/zone';

examples/events/src/styles.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
body {
38
margin: 60px;

examples/hello-world/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 ActiveWidgets
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/hello-world/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "angular-hello-world",
33
"version": "1.0.0",
44
"description": "Hello World - ActiveWidgets/Angular",
5-
"keywords": [],
5+
"license": "MIT",
66
"main": "src/main.js",
77
"scripts": {
88
"start": "parcel index.html --open",

examples/hello-world/src/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import { Component } from '@angular/core';
38
import './styles.css';

examples/hello-world/src/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import 'core-js/es7/reflect';
38
import 'zone.js/dist/zone';

examples/hello-world/src/styles.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
body {
38
margin: 60px;

examples/viewer/examples.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-

1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
6+
27
import hello_world from '../hello-world/README.md';
38
import columns from '../columns/README.md';
49
import events from '../events/README.md';

examples/viewer/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-

1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
6+
27
import 'core-js/es7/reflect';
38
import 'zone.js/dist/zone';
49

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) ActiveWidgets SARL. All Rights Reserved.
3+
* This source code is licensed under the MIT license found in the
4+
* LICENSE file in the root directory of this source tree.
5+
*/
16

27
import adapter from '@activewidgets/frameworks/angular';
38
import * as sources from '@activewidgets/datagrid/js';

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"rollup": "^1.20",
5151
"rollup-plugin-babel": "^4",
5252
"rollup-plugin-node-resolve": "^4",
53+
"rollup-plugin-terser": "^5",
5354
"rxjs": "^6",
5455
"typescript": ">=3.4 <3.6",
5556
"zone.js": "~0.9.1"

rollup.config.js

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
import resolve from 'rollup-plugin-node-resolve';
33
import babel from 'rollup-plugin-babel';
4+
import {terser} from 'rollup-plugin-terser';
5+
import rootpkg from './package.json';
46

57
let globals = {
68
'@angular/core': 'ng.core',
@@ -9,11 +11,28 @@ let globals = {
911
'@activewidgets/datagrid/metadata': 'ActiveWidgets.Metadata'
1012
};
1113

14+
15+
let banner = `/**
16+
* ${rootpkg.name} ${rootpkg.version}
17+
* Copyright (C) 2020 ActiveWidgets SARL. All Rights Reserved.
18+
* This code is licensed under the MIT license found in the
19+
* LICENSE file in the root directory of this package.
20+
*/
21+
`;
22+
23+
24+
function keepBanner(node, comment){
25+
if (comment.type == "comment2") {
26+
return /\(C\) 2020 ActiveWidgets/.test(comment.value);
27+
}
28+
}
29+
30+
1231
export default {
1332
input: 'index.js',
1433
output: [
15-
{file: 'dist/ax-angular.umd.js', format: 'umd', sourcemap: true, name: 'ActiveWidgets.Angular', extend: true, globals},
16-
{file: 'dist/ax-angular.esm.js', format: 'esm', sourcemap: true}
34+
{file: 'dist/ax-angular.umd.js', format: 'umd', sourcemap: true, name: 'ActiveWidgets.Angular', extend: true, banner, globals},
35+
{file: 'dist/ax-angular.esm.js', format: 'esm', sourcemap: true, banner}
1736
],
1837
external: [
1938
'@angular/core',
@@ -27,6 +46,9 @@ export default {
2746
babelrc: false,
2847
exclude: 'node_modules/**',
2948
presets: [["@babel/env", {modules: false}]]
49+
}),
50+
terser({
51+
output: {comments: keepBanner}
3052
})
3153
]
3254
};

0 commit comments

Comments
 (0)