Skip to content

Commit

Permalink
Showing 7 changed files with 34 additions and 16 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,12 @@ Reusable Tradeshift UI Components as Web Components
- `npm start` - start the dev server and watch for changes
- Open [https://localhost:8443/](https://localhost:8443/)

## How to release

- `NPM_CONFIG_OTP=123456 lerna publish` - Push the package to registry.npmjs.org

NPM_CONFIG_OTP is a workaround way to solve [the problem](https://github.com/lerna/lerna/issues/1137), which lerna fails to publish, after assigning [2FA](https://docs.npmjs.com/about-two-factor-authentication) on npm account

## How to write new elements

### General info
7 changes: 5 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"packages": ["packages/core", "packages/components/*"],
"version": "0.2.0"
"packages": [
"packages/components/*",
"packages/core"
],
"version": "0.1.5"
}
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"name": "tradeshift-elements",
"description": "The Tradeshift Element Library & Framework",
"bugs": {
"url": "https://github.com/Tradeshift/elements/issues"
},
"author": "Tradeshift element Team",
"contributors": [
"Daniel Spitzer <dsp@tradeshift.com> (https://github.com/sampi)",
"Leo Zhang <lza@tradeshift.com> (https://github.com/zdlm)"
],
"scripts": {
"start": "run-p watch server",
"test": "run-p --continue-on-error --print-name --print-label test:happo test:screener",
@@ -86,9 +95,6 @@
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/Tradeshift/elements/issues"
},
"license": "SEE LICENSE IN LICENSE.md",
"keywords": [
"ui",
9 changes: 5 additions & 4 deletions packages/components/button-group/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tradeshift/elements.button-group",
"version": "0.1.0",
"version": "0.1.5",
"src": "src/button-group.js",
"main": "lib/button-group.cjs.js",
"module": "lib/button-group.mjs",
@@ -9,7 +9,8 @@
"lib/*"
],
"dependencies": {
"@tradeshift/elements": "file:../../core",
"@tradeshift/elements.button": "file:../button"
}
"@tradeshift/elements": "^0.1.5",
"@tradeshift/elements.button": "^0.1.5"
},
"gitHead": "e88391ca0cd629eac27ed1ca70ccdb64c1b31b7a"
}
7 changes: 4 additions & 3 deletions packages/components/button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tradeshift/elements.button",
"version": "0.1.0",
"version": "0.1.5",
"src": "src/button.js",
"main": "lib/button.cjs.js",
"module": "lib/button.mjs",
@@ -9,6 +9,7 @@
"lib/*"
],
"dependencies": {
"@tradeshift/elements": "file:../../core"
}
"@tradeshift/elements": "^0.1.5"
},
"gitHead": "e88391ca0cd629eac27ed1ca70ccdb64c1b31b7a"
}
7 changes: 4 additions & 3 deletions packages/components/root/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tradeshift/elements.root",
"version": "0.1.0",
"version": "0.1.5",
"src": "src/root.js",
"main": "lib/root.cjs.js",
"module": "lib/root.mjs",
@@ -9,6 +9,7 @@
"lib/*"
],
"dependencies": {
"@tradeshift/elements": "file:../../core"
}
"@tradeshift/elements": "^0.1.5"
},
"gitHead": "e88391ca0cd629eac27ed1ca70ccdb64c1b31b7a"
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tradeshift/elements",
"version": "0.1.0",
"version": "0.1.5",
"src": "src/core.js",
"main": "lib/core.cjs.js",
"module": "lib/core.mjs",

0 comments on commit b75e208

Please sign in to comment.