Skip to content

Commit

Permalink
documentation: add quick start, add publish command to package.json (#18
Browse files Browse the repository at this point in the history
)

Co-authored-by: Egor Fedoseev <[email protected]>
  • Loading branch information
egor-progger and egor-progger authored Mar 22, 2024
1 parent 74a6205 commit 3b5b148
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.eslintrc.json
.prettierignore
.prettierrc
.github
build
LICENSE
package*
Expand Down
33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,43 @@
PointlineJS is an SVG based JS library for drawing tree diagrams.
It relies on Treant-JS, Raphael for handling SVG and animations, JQuery.

For Docs, Examples, and everything else see: /_ TODO _/
# Quick start

# Compile
1. clone repository with command:

```
$ git clone https://github.com/egor-progger/pointlinejs-quick-start
```

2. to run this example you need to install some dependencies:

```
$ cd pointlinejs-quick-start
$ npm install
```

3. start local web-server:

```
$ run npx webpack serve
```

4. open in browser address http://localhost:9001

For Docs, Examples, and everything else see: /_ TODO create gitbut io pages _/

# Development

## How to compile sources

`npx webpack --config webpack.config.js`

# Dev-server
## How to run dev-server for debugging

1. `npm run start`
2. open `http://localhost:9000/documentation/` in browser

# Build package for import from tarball locally
## How to build package for import from tarball locally

1. `npm run pack`
2. copy pointlinejs-[package version].tgz to your other project.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pointlinejs",
"version": "0.1.17",
"version": "0.1.18",
"description": "JavaScipt library for visualization of tree diagrams",
"directories": {
"example": "examples"
Expand All @@ -20,7 +20,8 @@
"pack": "npm run clean && npm run build && npm run copy-css-to-es && npm run copy-css-to-lib && npm pack",
"copy-css-to-es": "copyfiles -u 5 src/pointlinejs/vendor/treant/styles/Treant.css dist/es/pointlinejs/vendor/treant/styles",
"copy-css-to-lib": "copyfiles -u 5 src/pointlinejs/vendor/treant/styles/Treant.css dist/lib/pointlinejs/vendor/treant/styles",
"clean": "rimraf dist/"
"clean": "rimraf dist/",
"publish": "npm run clean && npm run build && npm run copy-css-to-es && npm run copy-css-to-lib && npm publish --access public"
},
"keywords": [
"pointlinejs",
Expand Down

0 comments on commit 3b5b148

Please sign in to comment.