adp-components

0.1.1 • Public • Published

Test library package with Webpack

npm install git+https://github.com/UsulPro/libpack.git --save
// index.js:
 
const fs = require('fs');
const logo =  require('libpack').logo;
const style =  require('libpack').style;
 
const htmlData = `
<div>
  <style>
    ${style()}
  </style>
  <img src="${logo()}" alt="logo" title="logo" width="200px"/>
</div>
`;
 
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

Readme

Keywords

none

Package Sidebar

Install

npm i adp-components

Weekly Downloads

8

Version

0.1.1

License

ISC

Unpacked Size

9.16 MB

Total Files

315

Last publish

Collaborators

  • basyonic
  • mfouadshaheen
  • wa2elgomaa