Skip to content

Commit 855cc0b

Browse files
committed
add license header
1 parent d57d0b4 commit 855cc0b

14 files changed

Lines changed: 84 additions & 4 deletions

File tree

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

column/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 default function(params){
38

convert/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 default function(name, fn){
38
return function({on}){

csv/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 text from '../text/index.js';
38

format/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 default function(name, format){
38
return function({on}){

html/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 type from '../type/index.js';
38

http/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
function request(url, params){
38
let headers = {accept: 'application/json'};

intl/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 default function(locale){
38

rollup.config.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ import babel from 'rollup-plugin-babel';
44
import {terser} from 'rollup-plugin-terser';
55
import fs from 'fs';
66
import path from 'path';
7+
import rootpkg from './package.json';
8+
9+
10+
let getBanner = name => `/**
11+
* ${name} ${rootpkg.version}
12+
* Copyright (C) 2020 ActiveWidgets SARL. All Rights Reserved.
13+
* This code is licensed under the MIT license found in the
14+
* LICENSE file in the root directory of this package.
15+
*/
16+
`;
17+
18+
19+
function keepBanner(node, comment){
20+
if (comment.type == "comment2") {
21+
return /2020 ActiveWidgets/.test(comment.value);
22+
}
23+
}
724

825

926
let plugins = [
@@ -13,7 +30,9 @@ let plugins = [
1330
exclude: 'node_modules/**',
1431
presets: [["@babel/env", {modules: false}]]
1532
}),
16-
terser()
33+
terser({
34+
output: {comments: keepBanner}
35+
})
1736
];
1837

1938

@@ -29,13 +48,14 @@ function expand({name, input}){
2948
main = path.join(dir, pkg.main),
3049
module = path.join(dir, pkg.module),
3150
sourcemap = true,
51+
banner = getBanner(pkg.name),
3252
extend = true;
3353

3454
return {
3555
input,
3656
output: [
37-
{file: main, format: 'umd', sourcemap, name, extend},
38-
{file: module, format: 'esm', sourcemap}
57+
{file: main, format: 'umd', sourcemap, banner, name, extend},
58+
{file: module, format: 'esm', sourcemap, banner}
3959
],
4060
plugins
4161
};

row/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 default function(params){
38

0 commit comments

Comments
 (0)