@inubekit/yearpicker
TypeScript icon, indicating that this package has built-in type declarations

1.11.1 • Public • Published

IDS - Starter

This project is a starter repository that can be used to develop and publish new Inube Design System components. With this repository the intention is that any design-system team member can start to develop a new component without starting from scratch.

Readme

This readme contains the details of usage of the starter. Once you create a new repo based in this template in github, please change the content of the README and make it relatable to the component you are creating.

Instructions of usage

Package.json

  1. name: As you can see in the package.json file, the name of this package is "ids-starter". Please rename the name when you start your new project. Remember that all components are publish by the @inubekit organization in npm, so rename the package as @inubekit/{new-component-name}
  2. description: Complete the description about the component you are creating.

Environment variables

  1. In order to control releases and package publishing, you will need to have a .env file with some environment variables.
  2. GH_TOKEN: Create this token in github.com, using your profile settings. This token requires the repo scope.
  3. NPM_TOKEN: Create this token in npmjs.com. You must ask the admin to add you as a organization admin prior to publish the package in npm.

Pull Requests

  1. All PRs must have a semver label attached to it. This is the way the publishing and versioning process will use to know if a PR demands a major, minor or patch version to be created.
  2. To have these labels available, please run npm run auto create-labels to create them (you need to have already your GH_TOKEN in .env in order to make this command work).

Publishing

Follow these steps to publish and release a new version of your package.

Check that you're an admin in the repository (validate with your team leader) and execute these scripts in a release branch.

  1. npm run changelog: this command will create a changelog for you, including in the document the changes that the current release will publish in the new version of the package and what should be the version number of the release. The number is calculated using the labels of all the PRs that are included in this new version (see the Pull Requests details above).
  2. npm version <new-version>: this command creates the new version (tag), deletes the /dist folder in your project and executes the build of the project and its files are stored in a new /dist folder.
  3. git push -u origin <branch>: this command pushes the commits of changelog and package.json with the new version to github.
  4. npm run release: this command executes a git push with the new version tag included and creates a new release in Github. This step requires that you have your GH_TOKEN working.
  5. npm login: you must be logged in with npm to continue the process.
  6. npm publish: with the new build already in /dist, you can now execute this command and the new package version will be published in npm. This command requires tat you have you NPM_TOKEN working. Note: if this first time you are publishing you should add --access=public flag to the command

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.11.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.11.11
1.11.00
1.10.00
1.9.00
1.8.00
1.7.00
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.00
1.0.10
1.0.00

Package Sidebar

Install

npm i @inubekit/yearpicker

Weekly Downloads

1

Version

1.11.1

License

none

Unpacked Size

6.96 kB

Total Files

4

Last publish

Collaborators

  • cmarin
  • wfercanas