0.0.35 • Published 5 months ago
ahdjs v0.0.35
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.35
5 months ago
0.0.34
11 months ago
0.0.33
11 months ago
0.0.31
11 months ago
0.0.32
11 months ago
0.0.30
1 year ago
0.0.27
1 year ago
0.0.28
1 year ago
0.0.29
1 year ago
0.0.26
2 years ago
0.0.25
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago