Browse Source

Merge pull request #305 from nisarhassan12/master

Look like a great MR to enable online IDE for tesseract.js 😄 Thanks!
pull/307/head
jeromewu 6 years ago committed by GitHub
parent
commit
1171c7b670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .gitpod.yml
  2. 4
      README.md
  3. 3
      scripts/webpack.config.dev.js

7
.gitpod.yml

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
tasks:
- command: gp await-port 3000 && gp preview $(gp url 3000)/examples/browser/demo.html
- init: npm install
command: npm start
ports:
- port: 3000
onOpen: ignore

4
README.md

@ -105,6 +105,10 @@ npm start @@ -105,6 +105,10 @@ npm start
The development server will be available at http://localhost:3000/examples/browser/demo.html in your favorite browser.
It will automatically rebuild `tesseract.dev.js` and `worker.min.js` when you change files in the src folder.
You can also run the development server in Gitpod ( a free online IDE and dev environment for GitHub that will automate your dev setup ) with a single click.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/naptha/tesseract.js/blob/master/examples/browser/demo.html)
### Building Static Files
To build the compiled static files just execute the following:
```shell

3
scripts/webpack.config.dev.js

@ -20,6 +20,9 @@ const genConfig = ({ @@ -20,6 +20,9 @@ const genConfig = ({
},
}),
],
devServer: {
allowedHosts: ['localhost', '.gitpod.io'],
},
});
module.exports = [

Loading…
Cancel
Save