occam-offside 23.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swcrc +11 -0
- package/README.md +66 -0
- package/license.txt +48 -0
- package/package.json +40 -0
package/.swcrc
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Occam Offside
|
|
2
|
+
|
|
3
|
+
[Occam](https://github.com/djalbat/occam)'s offside rule.
|
|
4
|
+
|
|
5
|
+
### Contents
|
|
6
|
+
|
|
7
|
+
- [Introduction](#introduction)
|
|
8
|
+
- [Installation](#installation)
|
|
9
|
+
- [Examples](#examples)
|
|
10
|
+
- [Usage](#usage)
|
|
11
|
+
- [Building](#building)
|
|
12
|
+
- [Contact](#contact)
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
To come.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
With [npm](https://www.npmjs.com/):
|
|
21
|
+
|
|
22
|
+
npm install occam-offside
|
|
23
|
+
|
|
24
|
+
You can also clone the repository with [Git](https://git-scm.com/)...
|
|
25
|
+
|
|
26
|
+
git clone https://github.com/djalbat/occam-offside.git
|
|
27
|
+
|
|
28
|
+
...and then install the dependencies with npm from within the project's root directory:
|
|
29
|
+
|
|
30
|
+
npm install
|
|
31
|
+
|
|
32
|
+
You can also run a development server, see the section on building later on.
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
There is a small development server that can be run from within the project's directory with the following command:
|
|
37
|
+
|
|
38
|
+
npm start
|
|
39
|
+
|
|
40
|
+
The examples will then be available at the following URL:
|
|
41
|
+
|
|
42
|
+
http://localhost:8888
|
|
43
|
+
|
|
44
|
+
The source for the examples can be found in the `src/example.js` file and corresponding `src/example` folder. You are encouraged to try the examples whilst reading what follows. You can rebuild them on the fly with the following command:
|
|
45
|
+
|
|
46
|
+
npm run watch-debug
|
|
47
|
+
|
|
48
|
+
The development server will reload the page whenever you make changes.
|
|
49
|
+
|
|
50
|
+
One last thing to bear in mind is that this package is included by way of a relative rather than a package import. If you are importing it into your own application, however, you should use the standard package import.
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
To come.
|
|
55
|
+
|
|
56
|
+
## Building
|
|
57
|
+
|
|
58
|
+
Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
|
|
59
|
+
|
|
60
|
+
npm run build-debug
|
|
61
|
+
npm run watch-debug
|
|
62
|
+
|
|
63
|
+
## Contact
|
|
64
|
+
|
|
65
|
+
* james.smith@djalbat.com
|
|
66
|
+
|
package/license.txt
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
MIT And Anti-996 Licenses
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 James Smith
|
|
4
|
+
|
|
5
|
+
These licenses shall be included in all copies or substantial portions of
|
|
6
|
+
this software and associated documentation files (the "Software").
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this Software, to deal in the Software without restriction, including
|
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
12
|
+
persons to whom the Software is furnished to do so, subject to the following
|
|
13
|
+
conditions:
|
|
14
|
+
|
|
15
|
+
1. The individual or the legal entity must conspicuously display,
|
|
16
|
+
without modification, this License and the notice on each redistributed
|
|
17
|
+
or derivative copy of the Licensed Work.
|
|
18
|
+
|
|
19
|
+
2. The individual or the legal entity must strictly comply with all
|
|
20
|
+
applicable laws, regulations, rules and standards of the jurisdiction
|
|
21
|
+
relating to labor and employment where the individual is physically
|
|
22
|
+
located or where the individual was born or naturalized; or where the
|
|
23
|
+
legal entity is registered or is operating (whichever is stricter). In
|
|
24
|
+
case that the jurisdiction has no such laws, regulations, rules and
|
|
25
|
+
standards or its laws, regulations, rules and standards are
|
|
26
|
+
unenforceable, the individual or the legal entity are required to
|
|
27
|
+
comply with Core International Labor Standards.
|
|
28
|
+
|
|
29
|
+
3. The individual or the legal entity shall not induce, suggest or force
|
|
30
|
+
its employee(s), whether full-time or part-time, or its independent
|
|
31
|
+
contractor(s), in any methods, to agree in oral or written form, to
|
|
32
|
+
directly or indirectly restrict, weaken or relinquish his or her
|
|
33
|
+
rights or remedies under such laws, regulations, rules and standards
|
|
34
|
+
relating to labor and employment as mentioned above, no matter whether
|
|
35
|
+
such written or oral agreements are enforceable under the laws of the
|
|
36
|
+
said jurisdiction, nor shall such individual or the legal entity
|
|
37
|
+
limit, in any methods, the rights of its employee(s) or independent
|
|
38
|
+
contractor(s) from reporting or complaining to the copyright holder or
|
|
39
|
+
relevant authorities monitoring the compliance of the license about
|
|
40
|
+
its violation(s) of the said license.
|
|
41
|
+
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
44
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
45
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
46
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
47
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
48
|
+
SOFTWARE.
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "occam-offside",
|
|
3
|
+
"author": "James Smith",
|
|
4
|
+
"version": "23.1.21",
|
|
5
|
+
"license": "MIT, Anti-996",
|
|
6
|
+
"homepage": "https://github.com/djalbat/occam-offside",
|
|
7
|
+
"description": "Occam's offside rule.",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/djalbat/occam-offside"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"necessary": "^15.0.6"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@swc/core": "1.13.20",
|
|
17
|
+
"esbuild": "0.11.14",
|
|
18
|
+
"easy": "^24.0.6",
|
|
19
|
+
"easy-layout": "^6.0.271",
|
|
20
|
+
"easy-with-style": "^3.0.529",
|
|
21
|
+
"express": "^4.17.1",
|
|
22
|
+
"juxtapose": "^4.0.128",
|
|
23
|
+
"lively-cli": "^2.0.77",
|
|
24
|
+
"watchful-cli": "^1.7.63"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"start": "node ./bin/main.js",
|
|
28
|
+
"clean": "rm -rf ./lib",
|
|
29
|
+
"watchful": "watchful -m --transpiler=swc --bundler=esbuild --source-directory=./src --lib-directory=./lib --entry-file=example.js --bundle-file=./example.js --wait=100",
|
|
30
|
+
"batch": "npm run watchful batch --",
|
|
31
|
+
"batch-debug": "npm run watchful batch -- --debug",
|
|
32
|
+
"incremental": "npm run watchful incremental --",
|
|
33
|
+
"incremental-debug": "npm run watchful incremental -- --debug",
|
|
34
|
+
"build": "npm run clean && npm run batch",
|
|
35
|
+
"build-debug": "npm run clean && npm run batch-debug",
|
|
36
|
+
"watch": "npm run clean && npm run batch && npm run incremental",
|
|
37
|
+
"watch-debug": "npm run clean && npm run batch-debug && npm run incremental-debug"
|
|
38
|
+
},
|
|
39
|
+
"main": "./lib/index.js"
|
|
40
|
+
}
|