Skip to content

Commit 5181749

Browse files
committed
add license header
1 parent 82f4faf commit 5181749

27 files changed

+209
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
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

bundle/index.js

Lines changed: 5 additions & 0 deletions
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 css from '@activewidgets/datagrid/style';
38
import styleInject from 'style-inject';

css/index.js

Lines changed: 5 additions & 0 deletions
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';

examples/columns/LICENSE

Lines changed: 21 additions & 0 deletions
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

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

examples/columns/src/main.js

Lines changed: 5 additions & 0 deletions
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 Vue from "vue";
38
import App from "./app.vue";

examples/columns/src/styles.css

Lines changed: 5 additions & 0 deletions
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

Lines changed: 21 additions & 0 deletions
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

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

examples/demo/src/main.js

Lines changed: 5 additions & 0 deletions
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 Vue from "vue";
38
import App from "./app.vue";

examples/demo/src/options.js

Lines changed: 5 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 21 additions & 0 deletions
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

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

examples/events/src/main.js

Lines changed: 5 additions & 0 deletions
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 Vue from "vue";
38
import App from "./app.vue";

examples/events/src/styles.css

Lines changed: 5 additions & 0 deletions
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

Lines changed: 21 additions & 0 deletions
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

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

examples/hello-world/src/main.js

Lines changed: 5 additions & 0 deletions
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 Vue from "vue";
38
import App from "./app.vue";

examples/hello-world/src/styles.css

Lines changed: 5 additions & 0 deletions
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

Lines changed: 6 additions & 1 deletion
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

Lines changed: 6 additions & 1 deletion
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 {Viewer} from '@activewidgets/examples';
38
import {components} from '@activewidgets/vue';
49
import Vue from "vue";

index.js

Lines changed: 5 additions & 0 deletions
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 './css/index.js';
38
export * from './js/index.js';

js/datagrid.js

Lines changed: 5 additions & 0 deletions
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 {build} from './framework.js';
38
import * as components from '@activewidgets/datagrid/js';

js/framework.js

Lines changed: 5 additions & 0 deletions
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/vue';
38
import Vue from 'vue';

js/index.js

Lines changed: 5 additions & 0 deletions
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
export * from './framework.js';
38
export * from './datagrid.js';

rollup.config.js

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import resolve from '@rollup/plugin-node-resolve';
33
import babel from 'rollup-plugin-babel';
44
import postcss from 'rollup-plugin-postcss';
55
import sourcemaps from 'rollup-plugin-sourcemaps';
6+
import {terser} from 'rollup-plugin-terser';
67
import fs from 'fs';
78
import path from 'path';
89
import rootpkg from './package.json';
@@ -28,6 +29,22 @@ let roots = {
2829
};
2930

3031

32+
let getBanner = name => `/**
33+
* ${name} ${rootpkg.version}
34+
* Copyright (C) 2020 ActiveWidgets SARL. All Rights Reserved.
35+
* This code is licensed under the MIT license found in the
36+
* LICENSE file in the root directory of this package.
37+
*/
38+
`;
39+
40+
41+
function keepBanner(node, comment){
42+
if (comment.type == "comment2") {
43+
return /\(C\) 2020 ActiveWidgets/.test(comment.value);
44+
}
45+
}
46+
47+
3148
let plugins = [
3249
postcss({
3350
extract: 'dist/ax.css',
@@ -39,6 +56,9 @@ let plugins = [
3956
babelrc: false,
4057
exclude: 'node_modules/**',
4158
presets: [["@babel/env", {modules: false}]]
59+
}),
60+
terser({
61+
output: {comments: keepBanner}
4262
})
4363
];
4464

@@ -55,20 +75,29 @@ let modules = roots.modules.map(dir => {
5575
main = path.join(dir, pkg.main),
5676
module = path.join(dir, pkg.module),
5777
sourcemap = true,
78+
banner = getBanner(pkg.name),
5879
compact = true;
5980

6081
return {
6182
input,
6283
output: [
63-
{file: main, format: 'umd', sourcemap, globals, name, compact},
64-
{file: module, format: 'esm', sourcemap},
84+
{file: main, format: 'umd', sourcemap, banner, globals, name, compact},
85+
{file: module, format: 'esm', sourcemap, banner},
6586
],
6687
external: Object.keys(globals),
6788
plugins
6889
};
6990
});
7091

7192

93+
let getCommercial = () => `/**
94+
* ${rootpkg.name} ${rootpkg.version}
95+
* Copyright (C) 2020 ActiveWidgets SARL. All Rights Reserved.
96+
* This code is licensed under the COMMERCIAL license.
97+
*/
98+
`;
99+
100+
72101
let bundles = roots.bundles.map(dir => {
73102

74103
let input = path.join(dir, 'index.js'),
@@ -79,12 +108,13 @@ let bundles = roots.bundles.map(dir => {
79108
.replace(/@activewidgets.(\w+)/, '$1@' + rootpkg.version);
80109
},
81110
sourcemap = true,
111+
banner = getCommercial(),
82112
compact = true;
83113

84114
return {
85115
input,
86116
output: [
87-
{file, format: 'umd', sourcemap, sourcemapPathTransform, globals, name, compact}
117+
{file, format: 'umd', sourcemap, sourcemapPathTransform, banner, globals, name, compact}
88118
],
89119
external: framework,
90120
plugins

0 commit comments

Comments
 (0)