Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to nx workspace #1483

Draft
wants to merge 21 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
feat: update workspace settings
  • Loading branch information
JosefBredereck committed Feb 6, 2023
commit 39092c13ed91cfd2a6a51929d4bd612abc937038
86 changes: 0 additions & 86 deletions .eslintrc.js

This file was deleted.

53 changes: 53 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
}
]
}
36 changes: 0 additions & 36 deletions lerna.json

This file was deleted.

110 changes: 71 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
{
"workspaces": {
"packages": [
"packages/cli",
"packages/core",
"packages/docs",
"packages/live-server",
"packages/plugin-tab",
"packages/starterkit-handlebars",
"packages/starterkit-twig-demo",
"packages/uikit-polyfills",
"packages/uikit-workshop",
"dist/packages/*"
],
"nohoist": [
"@pattern-lab/engine-*",
"**/@pattern-lab/engine-*",
"**/@pattern-lab/uikit-workshop"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/pattern-lab/patternlab-node.git"
},
"private": true,
"scripts": {
"postinstall": "lerna run postbootstrap",
"postinstall": "yarn build:all",
"setup": "yarn",
"build:uikit": "cd packages/uikit-workshop && npm run build",
"precommit": "pretty-quick --staged",
Expand All @@ -40,17 +21,73 @@
"build:engine": "nx run engine-handlebars:build",
"build:all": "nx run-many --target=build"
},
"dependencies": {
"@basalt/twig-renderer": "^2.1.0",
"archiver": "5.3.0",
"chalk": "4.1.0",
"chokidar": "3.5.1",
"commander": "9.4.1",
"deepmerge": "^4.2.2",
"dive": "0.5.0",
"execa": "5.0.0",
"fs-extra": "^11.1.0",
"glob": "^8.1.0",
"graphlib": "2.1.8",
"gulp": "^4.0.2",
"handlebars": "4.7.7",
"has-yarn": "2.1.0",
"inquirer": "8.0.0",
"js-beautify": "1.13.5",
"js-yaml": "4.1.0",
"jsdoc-to-markdown": "6.0.1",
"liquidjs": "10.4.0",
"lodash": "4.17.21",
"markdown-it": "12.3.2",
"mustache": "4.2.0",
"node-fetch": "2.6.7",
"ora": "5.4.0",
"recursive-copy": "2.0.13",
"tslib": "^2.3.0",
"twing": "^5.1.2",
"underscore": "^1.13.6",
"update-notifier": "5.1.0",
"@11ty/eleventy": "^0.12.1",
"@11ty/eleventy-plugin-rss": "^1.1.2",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3",
"@tbranyen/jsdom": "^13.0.0",
"concurrently": "^4.1.0",
"html-minifier": "^4.0.0",
"json-to-scss": "^1.6.2",
"nunjucks": "^3.2.3",
"sass": "^1.32.8",
"semver": "^6.3.0",
"slugify": "^1.5.0",
"stalfos": "github:hankchizljaw/stalfos#c8971d22726326cfc04089b2da4d51eeb1ebb0eb",
"colors": "1.4.0",
"connect": "3.7.0",
"cors": "2.8.5",
"event-stream": "3.3.4",
"faye-websocket": "0.11.x",
"http-auth": "4.1.x",
"http-auth-connect": "^1.0.5",
"morgan": "1.10.0",
"object-assign": "4.1.1",
"open": "8.0.9",
"proxy-middleware": "0.15.0",
"send": "0.18.0",
"serve-index": "1.9.1"
},
"devDependencies": {
"@auto-it/all-contributors": "10.38.5",
"@auto-it/conventional-commits": "10.38.5",
"@auto-it/first-time-contributor": "10.38.5",
"@auto-it/released": "^10.27.0",
"@babel/plugin-proposal-decorators": "^7.13.5",
"@babel/plugin-syntax-jsx": "^7.12.13",
"@basalt/twig-renderer": "^2.1.0",
"@jscutlery/semver": "^2.29.3",
"@nrwl/eslint-plugin-nx": "15.6.3",
"@nrwl/jest": "15.6.3",
"dos2unix-cli": "^1.0.1",
"@nrwl/js": "15.6.3",
"@nrwl/linter": "15.6.3",
"@nrwl/workspace": "15.6.3",
Expand All @@ -64,37 +101,32 @@
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"auto": "^10.27.0",
"babel-eslint": "^10.0.2",
"eslint": "~8.15.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-prettier": "^3.1.0",
"fs-extra": "^11.1.0",
"glob": "^8.1.0",
"gulp": "^4.0.2",
"handlebars": "4.7.7",
"husky": "^8.0.2",
"jest": "28.1.1",
"jest-environment-jsdom": "28.1.1",
"lerna": "4.0.0",
"liquidjs": "10.4.0",
"mustache": "4.2.0",
"nunjucks": "3.2.3",
"nx": "15.6.3",
"prettier": "^2.8.1",
"pretty-quick": "^3.1.3",
"ts-jest": "28.0.5",
"ts-node": "10.9.1",
"tslib": "^2.3.0",
"twing": "^5.1.2",
"typescript": "~4.8.2",
"underscore": "^1.13.6"
},
"nyc": {
"exclude": [
"**/*_tests.js",
"packages/cli",
"packages/core/test",
"packages/live-server"
]
"@11ty/eleventy-navigation": "^0.3.2",
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
"bl": "^3.0.0",
"chokidar-cli": "^2.1.0",
"cross-env": "^5.2.0",
"make-dir-cli": "^2.0.0",
"rollup": "^1.16.1",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.0.3",
"@fontsource/abel": "^4.5.7",
"@fontsource/raleway": "^4.5.11",
"copyfiles": "^2.4.1"
}
}
3 changes: 0 additions & 3 deletions packages/cli/.gitattributes

This file was deleted.

Loading