An open API service indexing awesome lists of open source software.

https://github.com/usulpro/libpack


https://github.com/usulpro/libpack

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

### Test library package with Webpack

```
npm install git+https://github.com/UsulPro/libpack.git --save
```

```javascript
// index.js:

const fs = require('fs');
const logo = require('libpack').logo;
const style = require('libpack').style;

const htmlData = `



${style()}

logo

`;

fs.writeFile('test.htm', htmlData, (err) => {
if (err) throw err;
console.log('It\'s saved!');
});
```

```
$ node .
```

open `test.htm` in your browser

### build

```
git clone https://github.com/UsulPro/libpack.git
```

edit files in `src/`

```
npm run build
```

in `dist/` you'll see your package

you can install it locally then:

```
npm i D:\path-to-project\libpack\ --save
```