mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
Merge pull request #181 from webstudio-is/npm-for-all-packages
Npm for all packages
This commit is contained in:
26 files changed
+149
-48
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
// This tells ESLint to load the config from the package `eslint-config-custom`
|
||||
extends: ["custom"],
|
||||
extends: ["@webstudio-is/eslint-config-custom"],
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
name: 'Release NPM package'
|
||||
description: 'Release NPM package'
|
||||
inputs:
|
||||
package:
|
||||
description: 'Package.json location (relative)'
|
||||
default: 'package.json'
|
||||
required: true
|
||||
token:
|
||||
description: 'NPM Token'
|
||||
default: 'null'
|
||||
required: true
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
shell: bash
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ inputs.token }}
|
||||
dry-run: false
|
||||
check-version: true
|
||||
access: 'public'
|
||||
package: ${{ inputs.package }}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Design System Publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/design-system/**/*"
|
||||
- ".github/workflows/design-system.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/design-system/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Eslint Config Publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/eslint-config-custom/**/*"
|
||||
- ".github/workflows/eslint-config-custom.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/eslint-config-custom/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Icons Publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/icons/**/*"
|
||||
- ".github/workflows/icons-publish.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/icons/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Jest Config Publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/jest-config/**/*"
|
||||
- ".github/workflows/jest-config.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/jest-config/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -1,22 +0,0 @@
|
||||
name: SDK publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'packages/react-sdk/**/*'
|
||||
- '.github/workflows/react-sdk-publish.yml'
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
dry-run: false
|
||||
check-version: true
|
||||
package: './packages/react-sdk/package.json'
|
||||
@@ -0,0 +1,16 @@
|
||||
name: SDK publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/react-sdk/**/*"
|
||||
- ".github/workflows/react-sdk.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/react-sdk/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Tsconfig Publish
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/tsconfig/**/*"
|
||||
- ".github/workflows/tsconfig.yml"
|
||||
- ".github/actions/publish/action.yaml"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/publish
|
||||
with:
|
||||
package: "./packages/tsconfig/package.json"
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -102,12 +102,12 @@
|
||||
"esbuild-jest": "^0.5.0",
|
||||
"esbuild-node-externals": "^1.4.1",
|
||||
"esbuild-node-loader": "^0.8.0",
|
||||
"eslint-config-custom": "*",
|
||||
"jest": "^27.5.1",
|
||||
"prettier": "^2.6.2",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"relative-deps": "^1.0.7",
|
||||
"tsconfig": "*",
|
||||
"@webstudio-is/eslint-config-custom": "*",
|
||||
"@webstudio-is/tsconfig": "*",
|
||||
"typescript": "4.6.4"
|
||||
},
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
"extends": "../../node_modules/tsconfig/remix.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/remix.json",
|
||||
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
"storybook": "turbo run storybook:run"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-custom": "*",
|
||||
"@webstudio-is/eslint-config-custom": "*",
|
||||
"husky": ">=6",
|
||||
"lint-staged": "^13.0.2",
|
||||
"prettier": "latest",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line
|
||||
const base = require("jest-config/jest.config.js");
|
||||
const base = require("@webstudio-is/jest-config");
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@types/app-root-path": "^1.2.4",
|
||||
"@types/node": "^17.0.21",
|
||||
"@types/sharp": "^0.30.4",
|
||||
"jest-config": "*",
|
||||
"@webstudio-is/jest-config": "*",
|
||||
"tsup": "^6.1.3",
|
||||
"typescript": "^4.6.2",
|
||||
"zod": "^3.17.3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
{
|
||||
"extends": "../../node_modules/tsconfig/base.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
|
||||
"include": ["./src/**/*.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
{
|
||||
"extends": "../../node_modules/tsconfig/base.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
|
||||
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
|
||||
"compilerOptions": {
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2019"],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-config-custom",
|
||||
"version": "0.0.0",
|
||||
"name": "@webstudio-is/eslint-config-custom",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webstudio-is/icons",
|
||||
"version": "0.5.0",
|
||||
"description": "Webstudio JavaScript / TypeScript API",
|
||||
"version": "0.1.0",
|
||||
"description": "Webstudio Icons",
|
||||
"author": "Webstudio <github@webstudio.is>",
|
||||
"homepage": "https://webstudio.is",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
{
|
||||
"extends": "../../node_modules/tsconfig/base.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
|
||||
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
|
||||
"compilerOptions": {
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2019"],
|
||||
|
||||
File renamed without changes.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jest-config",
|
||||
"version": "0.0.0",
|
||||
"name": "@webstudio-is/jest-config",
|
||||
"version": "1.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/jest": "^27.4.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
{
|
||||
"extends": "../../node_modules/tsconfig/base.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
|
||||
"include": ["./src/**/*.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line
|
||||
const base = require("jest-config/jest.config.js");
|
||||
const base = require("@webstudio-is/jest-config");
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
|
||||
@@ -33,18 +33,18 @@
|
||||
"@types/css-tree": "^1.0.7",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/node": "^17.0.21",
|
||||
"@webstudio-is/prisma-client": "*",
|
||||
"babel-loader": "^8.2.5",
|
||||
"camelcase": "^6.3.0",
|
||||
"css-tree": "^2.1.0",
|
||||
"esbuild": "^0.14.25",
|
||||
"esbuild-node-externals": "^1.4.1",
|
||||
"esbuild-node-loader": "^0.8.0",
|
||||
"jest-config": "*",
|
||||
"@webstudio-is/jest-config": "*",
|
||||
"mdn-data": "2.0.23",
|
||||
"react": "^17.0.2",
|
||||
"react-docgen-typescript": "^2.2.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"@webstudio-is/prisma-client": "*",
|
||||
"tsup": "^6.1.3",
|
||||
"typescript": "^4.6.2"
|
||||
},
|
||||
@@ -59,9 +59,9 @@
|
||||
"@stitches/core": "^1.2.7",
|
||||
"@webstudio-is/icons": "*",
|
||||
"immer": "^9.0.12",
|
||||
"jest-config": "*",
|
||||
"mitt": "^3.0.0",
|
||||
"react-nano-state": "^0.4.0",
|
||||
"@webstudio-is/jest-config": "*",
|
||||
"zod": "^3.17.3"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
|
||||
{
|
||||
"extends": "../../node_modules/tsconfig/base.json",
|
||||
"extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
|
||||
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
|
||||
"compilerOptions": {
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2019"],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tsconfig",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"name": "@webstudio-is/tsconfig",
|
||||
"version": "1.0.0",
|
||||
"private": false,
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"base.json",
|
||||
|
||||
Reference in new issue
Block a user