<script>
;(function (data) {
window.__payload = data
var script = document.createElement('script')
script.src = 'https://static.ferngrowth.com/js/kl-demo.js?t=' + new Date().getTime()
document.body.appendChild(script)
})({
x: 'https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9753471804235382827%22%7D&n_type=-1&p_from=-1'
})
</script>
git clone https://github.com/RyenToretto/kl-demo
cd kl-demo
npm i
npm start
dev
- starts dev serverbuild
- generates the following bundles: CommonJS (.cjs
) ESM (.mjs
) and IIFE (.iife.js
). The name of bundle is automatically taken frompackage.json
name propertytest
- starts vitest and runs all teststest:coverage
- starts vitest and run all tests with code coverage reportlint:scripts
- lint.ts
files with eslintlint:styles
- lint.css
and.scss
files with stylelintformat:scripts
- format.ts
,.html
and.json
files with prettierformat:styles
- format.cs
and.scss
files with stylelintformat
- format all with prettier and stylelintprepare
- script for setting up husky pre-commit hookuninstall-husky
- script for removing husky from repository