```bash npm install @kizmann/pico-js [or] yarn add @kizmann/pico-js ```
npm install @kizmann/pico-jsA JS heleper library. Docs following soon
``bash`
npm install @kizmann/pico-js [or] yarn add @kizmann/pico-js
This package is dependent of moment (Right now its required but will be optional or ditched soon).
`html`
`js`
pi.Dom.ready(function () {
console.log('Yeah :clap:');
});
js
import { Dom } from "@kizmann/pico-js";
``js
Dom.ready(function () {
console.log('Yeah :metal:');
});
`$3
Incase you are not using the babel plugins (ES6) used in babel.config.js you will encounter errors while compiling. To prevent that its required to add an alias to your webpack.config.js.
#### webpack.config.js
`js
module.exports = {
resolve: {
alias: {
'@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.js'
}
}
}
`#### webpack.mix.js
`js
mix.webpackConfig({
resolve: {
alias: {
'@kizmann/pico-js': '@kizmann/pico-js/dist/pico-js.js'
}
}
});
`$3
When using VS Code with the ES5 fix from above you need to create or add to your existsing jsconfig.json this alias to enable correct autocomplete.
#### jsconfig.json
`json
{
"compilerOptions": {
"paths": {
"@kizmann/pico-js": ["node_modules/@kizmann/pico-js/src/index.js"]
}
}
}
``