metronics-vue
v1.7.17
Published
```bash npm install --D tailwindcss@^3.4.17 postcss autoprefixer mini-svg-data-uri postcss-import postcss-loader postcss-nesting postcss-preset-env ```
Readme
Metronics Vue
Setting Up
npm install --D tailwindcss@^3.4.17 postcss autoprefixer mini-svg-data-uri postcss-import postcss-loader postcss-nesting postcss-preset-env// postcss.config.js
export default {
"plugins": {
'postcss-preset-env': {},
'postcss-import': {},
'tailwindcss/nesting': 'postcss-nesting',
'postcss-preset-env': {
'features': {
'nesting-rules': false
}
},
'tailwindcss': {},
'autoprefixer': {},
}
};// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
...require("metronics-vue/tailwind.config"),
content: ["./index.html", "node_modules/metronics-vue/src/components/**/*.vue"],
};PUBLISHING METRONICS-VUE TO NPM
Follow these steps carefully to publish the Metronics-Vue package to npm:
Prerequisites
- Ensure you have an npm account and are logged in via your terminal.
Publishing Steps
- Sync with
mainBranch: Before you begin, make sure your localmainbranch is fully up-to-date with the remote repository. This prevents publishing outdated code. - Build the Project: Execute the command
"npm run build-only"in your terminal. This command compiles and prepares your project for publishing. - Increment Version Number: Open your
package.jsonfile and update theversionfield. It's crucial to increment this version number incrementally (e.g., if the current version is "1.0.0", change it to "1.0.1" or "1.1.0"). Using a plus sign like "1.0.0+" is generally not recommended for versioning; use standard semantic versioning (e.g.,major.minor.patch). - Authenticate with npm: If you're not already logged in, run
"npm login"in your terminal and follow the prompts to authenticate your npm account. - Publish to npm: Finally, after completing all the preceding steps, publish your package by running the command
"npm publish".
Important Notes:
- Always ensure your
mainbranch is clean and up-to-date before publishing. - Double-check the version number in
package.jsonto avoid publishing with a duplicate or incorrect version. - Semantic Versioning (SemVer) is highly recommended for managing your package versions.
