Skip to content

Commit

Permalink
Add copyright header and set 'browser' in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Mar 18, 2021
1 parent 60b958d commit f0945fb
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jscdr/badge)](https://www.jsdelivr.com/package/npm/jscdr)
[![License](https://img.shields.io/badge/License-EPL%202.0-blue)](https://choosealicense.com/licenses/epl-2.0/)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Expand All @@ -15,6 +16,11 @@ It doesn't include an IDL compiler generating Javascript encoder/decoder for com

## Usage

Add the following to your HTML page:
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.umd.js"></script>
```

Assuming a DDS type is defined with the following IDL:
```c
module HelloWorldData
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "jscdr",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"description": "A DDS-CDR encoder/decoder library.",
"main": "dist/index.js",
"browser": "dist/index.umd.min.js",
"scripts": {
"prebuild": "rimraf dist",
"build": "npm-run-all --parallel build:*",
Expand Down
10 changes: 10 additions & 0 deletions src/cdrreader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//
// Copyright (c) 2021 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
import ByteBuffer from 'bytebuffer';

export class CDRReader {
Expand Down
10 changes: 10 additions & 0 deletions src/cdrwriter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//
// Copyright (c) 2021 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
import ByteBuffer from 'bytebuffer';

export class CDRWriter {
Expand Down
10 changes: 10 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//
// Copyright (c) 2021 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
import "core-js/stable";
import "regenerator-runtime/runtime";

Expand Down
10 changes: 10 additions & 0 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//
// Copyright (c) 2021 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
const path = require('path');

module.exports = {
Expand Down

0 comments on commit f0945fb

Please sign in to comment.