https://github.com/usulpro/libpack
https://github.com/usulpro/libpack
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/usulpro/libpack
- Owner: usulpro
- Created: 2017-01-04T19:24:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T19:39:34.000Z (over 9 years ago)
- Last Synced: 2025-03-31T10:11:12.332Z (over 1 year ago)
- Language: JavaScript
- Size: 166 KB
- Stars: 10
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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()}
`;
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
```