0.0.26 • Published 6 months ago
ahdjs v0.0.26
To get started
npm Installtion
npm install ahdjs --save
yarn Installtion
yarn add ahdjs
app components
import AHDjs from 'ahdjs';
...
const ahdJS = new AHDjs(undefined, {applicationId: '<Application ID from Back office>'});
...
ahdJS.initializeSiteMap();
ahdJS.updatePageUrl(props.url, false); <<-- to connect with router
Example
let _ahdJs = new AHDjs(undefined, {
applicationId: "64d2b934c6cfdc96aa3734c5",
apiHost: "https://ahd.fabbuilder.com",
});
_ahdJs.initializeSiteMap();
setTimeout(() => {
_ahdJs.showPageTour("/auth/signin");
}, 1000);
self-host/cdn
<script src="build/index.js"></script>
const AHDjs = window.AHDjs.default;
const ahdJS = new AHDjs();
...
For development and contribution
⭐️ Features
- Webpack 5
- Babel 7
- Hot reloading (
npm start
) - Automatic Types file generation (index.d.ts)
- UMD exports, so your library works everywhere.
- Jest unit testing
- Customizable file headers for your build (Example 1) (Example2)
- Daily dependabot dependency updates
📦 Getting Started
git clone https://github.com/ishaan-puniani/ahdjs.git
cd ahdjs
npm install
💎 Customization
Before shipping, make sure to:
- Edit
LICENSE
file - Edit
package.json
information (These will be used to generate the headers for your built files) - Edit
library: "MyLibrary"
with your library's export name in./webpack.config.js
🚀 Deployment
npm publish
- Your users can include your library as usual
✅ Libraries built with this boilerplate
Made a library using this starter kit? Share it here by submitting a pull request!
0.0.26
6 months ago
0.0.25
7 months ago
0.0.24
8 months ago
0.0.23
8 months ago
0.0.22
8 months ago
0.0.21
8 months ago
0.0.20
9 months ago
0.0.19
9 months ago
0.0.18
9 months ago
0.0.17
9 months ago
0.0.16
9 months ago
0.0.15
9 months ago
0.0.14
9 months ago
0.0.13
9 months ago
0.0.12
9 months ago
0.0.11
9 months ago
0.0.10
9 months ago
0.0.9
9 months ago
0.0.8
9 months ago
0.0.7
9 months ago
0.0.6
9 months ago