Skip to content

Commit

Permalink
Merge pull request #2 from Laserfiche/tasks/copy_right
Browse files Browse the repository at this point in the history
Add copyright
  • Loading branch information
kern-ding authored Oct 30, 2023
2 parents da9b694 + e0837d2 commit 4a944df
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 1 deletion.
5 changes: 5 additions & 0 deletions source/distance-between-zipcodes/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
browser: true,
Expand Down
6 changes: 6 additions & 0 deletions source/distance-between-zipcodes/bin/launcher.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env node

/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/


import getArgumentMap from 'lf-argument-parser';
import distanceBetweenZipcode from '../src/distance.js';

Expand Down
5 changes: 5 additions & 0 deletions source/distance-between-zipcodes/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

Expand Down
5 changes: 5 additions & 0 deletions source/distance-between-zipcodes/src/distance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import { lookup, distance } from 'zipcodes';

/**
Expand Down
5 changes: 5 additions & 0 deletions source/distance-between-zipcodes/test/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
mocha: true,
Expand Down
5 changes: 5 additions & 0 deletions source/distance-between-zipcodes/test/distance.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import assert from 'assert';
import distanceBetweenZipcode from '../src/distance.js';

Expand Down
5 changes: 5 additions & 0 deletions source/template/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
browser: true,
Expand Down
7 changes: 6 additions & 1 deletion source/template/bin/launcher.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env node

/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import getArgumentMap from 'lf-argument-parser';
import invoker from '../src/mirror.js';

Expand All @@ -8,7 +13,7 @@ import invoker from '../src/mirror.js';
const inputMap = getArgumentMap(process.argv);
const outputMap = invoker(inputMap);

// Output can be printed to the console in key:value pairs format
// Output can be printed to the console in `key:value` pairs format
// remote agent will parse the output and return it to the caller
Object.entries(outputMap).forEach(([key, value]) => {
console.log(`${key}:${value}`);
Expand Down
5 changes: 5 additions & 0 deletions source/template/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

Expand Down
5 changes: 5 additions & 0 deletions source/template/src/mirror.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

/* eslint-disable no-restricted-syntax */
/**
* The main function for your script.
Expand Down
5 changes: 5 additions & 0 deletions source/template/test/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
mocha: true,
Expand Down
5 changes: 5 additions & 0 deletions source/template/test/mirror.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import assert from 'assert';
import YourScriptMethod from '../src/mirror.js';

Expand Down
5 changes: 5 additions & 0 deletions utility/lf-argument-parser/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
browser: true,
Expand Down
5 changes: 5 additions & 0 deletions utility/lf-argument-parser/src/lf_arg_parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

/**
* Parses the arguments passed to the script.
* @param {string[]} args - An array of strings representing the arguments passed to the script.
Expand Down
5 changes: 5 additions & 0 deletions utility/lf-argument-parser/test/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

module.exports = {
env: {
mocha: true,
Expand Down
5 changes: 5 additions & 0 deletions utility/lf-argument-parser/test/lf_arg_parser.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Laserfiche.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

import assert from 'assert';
import getArgumentMap from '../src/lf_arg_parser.js';

Expand Down

0 comments on commit 4a944df

Please sign in to comment.