Skip to content

Commit

Permalink
chore: restructure order of package.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf committed Nov 13, 2024
1 parent 40f58b7 commit 0d93f7b
Show file tree
Hide file tree
Showing 13 changed files with 155 additions and 91 deletions.
10 changes: 7 additions & 3 deletions packages/changelog-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A changelog entry generator for GitHub that links to PRs and users",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
Expand All @@ -17,7 +18,8 @@
},
"main": "./dist/index.js",
"scripts": {
"build": "tsc"
"build": "tsc",
"clean": "rimraf dist"
},
"dependencies": {
"@changesets/get-github-info": "0.6.0",
Expand All @@ -26,6 +28,8 @@
},
"devDependencies": {
"@changesets/parse": "*",
"typescript": "5.5.4"
}
"typescript": "5.5.4",
"rimraf": "6.0.1"
},
"keywords": []
}
17 changes: 15 additions & 2 deletions packages/components-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{
"name": "@swisspost/design-system-components-angular-workspace",
"version": "1.1.10-next.4",
"description": "Wrapper arround @swisspost/design-system-components for angular",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
},
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"scripts": {
"start": "ng serve --port 9210",
"build": "ng build components",
"clean": "rimraf dist .angular",
"lint": "ng lint",
"e2e": "ng e2e --watch=false",
"e2e:watch": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "18.2.10",
"@angular/common": "18.2.10",
Expand Down Expand Up @@ -43,6 +55,7 @@
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.1.0",
"ng-packagr": "18.1.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"rimraf": "6.0.1"
}
}
21 changes: 11 additions & 10 deletions packages/components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@swisspost/design-system-components-react",
"version": "9.0.0-next.4",
"description": "Design System React Components for easy integration with the React ecosystem",
"author": "Swiss Post <[email protected]>",
"version": "9.0.0-next.4",
"description": "Design System React Components for easy integration with the React ecosystem",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
Expand All @@ -12,21 +13,21 @@
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"linkDirectory": true
},
"files": [
"dist"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf dist",
"compile": "pnpm run tsc",
"tsc": "tsc -p .",
"lint": "eslint src/**/*.ts"
"lint": "eslint src/**/*.ts",
"tsc": "tsc -p ."
},
"dependencies": {
"@swisspost/design-system-components": "workspace:9.0.0-next.4"
Expand Down
25 changes: 15 additions & 10 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@
"name": "@swisspost/design-system-components",
"version": "9.0.0-next.4",
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/post-components/post-components.esm.js",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system"
},
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"publishConfig": {
"access": "public",
"linkDirectory": true
},
"files": [
"dist/",
"loader/",
"loaders/"
],
"publishConfig": {
"access": "public",
"linkDirectory": true
},
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/post-components/post-components.esm.js",
"scripts": {
"dev": "stencil build --dev --port 9200 --serve --watch --docs --docs-readme",
"start": "stencil build --dev --watch --docs --docs-readme",
Expand Down
5 changes: 3 additions & 2 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Swiss Post Design System Documentation.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
Expand All @@ -13,7 +14,6 @@
"url": "https://github.com/swisspost/design-system/issues"
},
"main": "index.js",
"private": true,
"scripts": {
"prebuild:managerui": "sass --update --load-path=node_modules .storybook/styles/manager.scss public/manager/ui.css",
"start": "pnpm clean && pnpm prebuild:managerui --style=expanded & storybook dev -p 9000 --quiet --docs",
Expand Down Expand Up @@ -79,5 +79,6 @@
"sass": "1.78.0",
"storybook": "8.2.7",
"typescript": "5.5.4"
}
},
"keywords": []
}
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A collection of Swiss Post icons intended for use with the Design System.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
Expand All @@ -19,7 +20,6 @@
"files": [
"public"
],
"private": false,
"scripts": {
"dev": "http-server ./public -o -a localhost -p 9330",
"fetchSVGs": "ts-node src/index.ts",
Expand Down
16 changes: 8 additions & 8 deletions packages/internet-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "The header for client facing applications.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
Expand All @@ -12,21 +13,20 @@
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"main": "loader/index.cjs.js",
"module": "loader/index.js",
"es2017": "loader/index.es2017.js",
"types": "loader/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
"private": true,
"publishConfig": {
"access": "restricted"
},
"files": [
"dist/",
"loader/"
],
"main": "loader/index.cjs.js",
"module": "loader/index.js",
"es2017": "loader/index.es2017.js",
"types": "loader/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
"scripts": {
"dev": "stencil build --serve --port 9310 --watch --docs-readme --dev --config stencil.config.dev.ts",
"start": "stencil build --watch --docs-readme",
Expand Down
15 changes: 12 additions & 3 deletions packages/intranet-header-workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"name": "@swisspost/design-system-intranet-header-workspace",
"version": "3.0.22-next.4",
"description": "Package containing examples for the intranet header component.",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
},
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"scripts": {
"build": "ng build intranet-header",
"clean": "rimraf dist",
"lint": "ng lint",
"start": "npm-run-all --parallel --print-label start:**",
"start:lib": "rimraf dist/intranet-header && ng build intranet-header --watch",
"start:app": "wait-on dist/intranet-header && ng serve --port 9320",
"build": "ng build intranet-header",
"lint": "ng lint"
"start:app": "wait-on dist/intranet-header && ng serve --port 9320"
},
"dependencies": {
"@angular/animations": "18.2.10",
Expand Down
19 changes: 12 additions & 7 deletions packages/migrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
"description": "Scripts to migrate an Angular application from one Design System version to another.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
},
"files": [
"dist/"
],
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist/"
],
"scripts": {
"copy-files": "copyfiles -f LICENSE README.md package.json CONTRIBUTING.md CHANGELOG.md src/migrations.json dist",
"build": "tsc -p tsconfig.json && pnpm copy-files",
Expand All @@ -36,11 +41,11 @@
"eslint": "8.57.0",
"rimraf": "6.0.1"
},
"keywords": [
"schematics"
],
"schematics": "./dist/migrations.json",
"ng-update": {
"migrations": "./dist/migrations.json"
},
"keywords": [
"schematics"
]
}
}
22 changes: 18 additions & 4 deletions packages/nextjs-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
{
"name": "@swisspost/design-system-nextjs-integration",
"version": "0.1.14-next.4",
"description": "NextJS example integration of the Swiss Post Design System",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
},
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"clean": "rimraf .next",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@swisspost/design-system-components-react": "workspace:9.0.0-next.4",
Expand All @@ -24,8 +36,10 @@
"eslint": "^8",
"eslint-config-next": "14.2.5",
"postcss": "^8",
"rimraf": "6.0.1",
"sass": "1.78.0",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
},
"keywords": []
}
22 changes: 16 additions & 6 deletions packages/styles-primeng-workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"name": "@swisspost/design-system-styles-primeng-workspace",
"description": "Showcase for a Post like custom prime-ng theme",
"version": "1.0.6-next.4",
"description": "Showcase for a Post like custom prime-ng theme",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/swisspost/design-system.git"
},
"homepage": "https://design-system.post.ch",
"bugs": {
"url": "https://github.com/swisspost/design-system/issues"
},
"scripts": {
"build": "ng build styles-primeng",
"clean": "rimraf dist",
"lint": "stylelint projects/styles-primeng/src/**/*.scss",
"lint:fix": "stylelint projects/styles-primeng/src/**/*.scss --fix",
"start": "npm-run-all --parallel watch:lib serve:app",
"build": "ng build styles-primeng",
"watch:lib": "ng build --watch --configuration development styles-primeng",
"serve:app": "ng serve --port 9325",
"lint": "stylelint projects/styles-primeng/src/**/*.scss",
"lint:fix": "stylelint projects/styles-primeng/src/**/*.scss --fix"
"watch:lib": "ng build --watch --configuration development styles-primeng"
},
"dependencies": {
"@angular/animations": "18.2.10",
Expand Down Expand Up @@ -46,5 +55,6 @@
"stylelint-prettier": "5.0.2",
"stylelint-scss": "6.4.1",
"typescript": "5.5.4"
}
},
"keywords": []
}
Loading

0 comments on commit 0d93f7b

Please sign in to comment.