2.4 KiB
2.4 KiB
Getting started
Installation:
Using https://npm.zema.de/
Use the following code: npm --registry https://npm.zema.de/ install nope
Use this Libary locally:
- Clone the repo:
git clone -b lib https://git.zema.de/tfs/ZISS/_git/nope-js
- Install the depencies by typing
npm install
- Go to your desired folder and create a local link
npm link
``path to the cloned package`
Documentation
The Documentation is contained in here. Alternative you can create a Documentation using npm run-script doc
. This will create the Documentation under docs
.
You'll additional help under wiki
.
The wiki
is mostly running as Markdown
or Jupyter
-Notebook.
Run the wiki
- Install the documents via:
00-install-jupyter.bat
- Install the
jupyter
withpip3 install jupyter
- Install a Javascript interpreter for
jupyter
withnpm install -g ijavascript
. Afterwards install the extension%appdata%\npm\ijsinstall
- Install the
- Run the
01-start-jupyter.bat
Contribute
To contribute to the Project, please perform the following steps:
-
Perform the Steps in
PREPARE_VSCODE.md
-
Assign a new Version under
contribute/VERSION
-
Fillout the Change Log in the
CHANGELOG.md
-
Implement Your Changes and Test-Cases:
-
If the Test are successfully proceed, otherwise perform your Bugfixes
-
Run the Code-Formater:
npm run-script prettier-format
-
Push the Code to the Git
Commiting Changes
For simpler usage, you can use the following helpers:
00-compile.bat
, which will compile the library for the browser and nodejs10-push-to-npm.bat
, which will push the library to the npm registry.
Browser
- Compile the code:
npm run-script compile-browser
- Build the Library;
npm run-script build
- Switch the Package Defintion to
browser
bynode ./contribute/toBrowser.js
- Publish the Code to
https://npm.zema.de/
usingnpm publish --registry https://npm.zema.de/
Nodejs
- Compile the code:
npm run-script compile-nodejs
- Switch the Package Defintion to
nodejs
bynode ./contribute/toNodejs.js
- Publish the Code to
https://npm.zema.de/
usingnpm publish --registry https://npm.zema.de/