0.1.1 • Published 5 years ago
adp-components v0.1.1
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
0.1.1
5 years ago
0.0.25
5 years ago
0.0.23
5 years ago
0.0.22
5 years ago
0.0.20
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.14
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago