Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivictbor committed May 26, 2021
1 parent f20a560 commit 952cdb2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 33 deletions.
28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ Translated languages:
| `pt-PT` | European Portuguese |
| `pt-BR` | Brazilian Portuguese |
| `ru` | Russian |
| `nl` | Dutch |



If you want to add another language, then:
Expand Down Expand Up @@ -578,6 +580,43 @@ npm run dev
```
Then open http://localhost:8080 with demo page


Editing source on the fly for painterro imported from side webpack app (e.g. your project SPA)
------------------------------------------

1. If your side app uses 'eslint' it, most likely side app will need eslint-plugin-import:

```
npm i eslint-plugin-import
```

2. Since compiled painterro commonjs2 file already linted and minimized you need to exclude it from linting:

Add to package.json of your side app:
```
"eslintIgnore": [
"/home/ivan/devforth/painterro/build/painterro2.commonjs.js"
],
```
where `/home/ivan/devforth/painterro` is a folder with Painterro sources

3. Replace

```
import Painterro from 'painterro';
```
with

```
import Painterro from '/home/ivan/devforth/painterro/build/painterro.commonjs2.js';
```

4. Go to painterro source folder and run:

```
watch npm run build
```

Regenerating icons font
-----------------------

Expand All @@ -589,6 +628,8 @@ npm run buildfont

For font generation we use method described here: [How to generate a webfont (automated setup)](https://hinty.io/brucehardywald/how-to-generate-a-webfont-automated-setup/)



Contributing
------------

Expand Down
4 changes: 0 additions & 4 deletions build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@
display: flex;
}



</style>
</head>
<body>
{% comment %} <div id="app" style="position:fixed;width:1000px; height:1000px"> {% endcomment %}

<div id="app">
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"prepare": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --progress",
"dev": "webpack serve --open --host 127.0.0.1",
"dev": "webpack serve --open --host 127.0.0.1 --port 3000",
"watch": "webpack --watch",
"buildfont": "node generate_font.js"
},
Expand Down

0 comments on commit 952cdb2

Please sign in to comment.