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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: move dev packages
  • Loading branch information
JosefBredereck committed Feb 6, 2023
commit 0136648039233f82a608bd194f686bcf99159192
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ packages/uikit-workshop/dist
yarn-error.log

# compiled output
dist/packages/*
!dist/packages/development-edition-**
!dist/package.json
dist
tmp
/out-tsc

Expand Down Expand Up @@ -49,4 +47,4 @@ Thumbs.db
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json
20 changes: 20 additions & 0 deletions dev/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/@pattern-lab/core"
]
},
"private": true,
"scripts": {
"preview:hbs": "cd packages/development-edition-engine-handlebars && yarn pl:starterkit && yarn pl:build",
"preview:twig": "cd packages/development-edition-engine-twig && yarn pl:starterkit && yarn pl:build",
"preview:twig-php": "cd packages/development-edition-engine-twig-php && yarn pl:starterkit && yarn pl:build",
"postinstall": "yarn preview:hbs && yarn preview:twig"
},
"devDependencies": {
"lerna": "4.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"pl:help": "patternlab --help",
"pl:install": "patternlab install --config ./patternlab-config.json",
"pl:serve": "patternlab serve --config ./patternlab-config.json",
"pl:starterkit": "patternlab add --starterkits @pattern-lab/starterkit-handlebars-demo",
"pl:starterkit": "patternlab install --starterkits @pattern-lab/starterkit-handlebars-demo",
"pl:version": "patternlab --version",
"dev": "node ./node_modules/@pattern-lab/uikit-workshop/build-tools.js"
},
Expand All @@ -29,12 +29,12 @@
"node": ">=14.21.1"
},
"dependencies": {
"@pattern-lab/cli": "^6.0.1",
"@pattern-lab/core": "^6.0.1",
"@pattern-lab/engine-handlebars": "^6.0.0",
"@pattern-lab/engine-mustache": "^6.0.0",
"@pattern-lab/plugin-tab": "^6.0.0",
"@pattern-lab/starterkit-handlebars-demo": "^6.0.0",
"@pattern-lab/cli": "file:../../../dist/packages/cli",
"@pattern-lab/core": "file:../../../dist/packages/core",
"@pattern-lab/engine-handlebars": "file:../../../dist/packages/engine-handlebars",
"@pattern-lab/engine-mustache": "file:../../../dist/packages/engine-mustache",
"@pattern-lab/plugin-tab": "file:../../../dist/packages/plugin-tab",
"@pattern-lab/starterkit-handlebars-demo": "file:../../../dist/packages/starterkit-handlebars-demo",
"@pattern-lab/uikit-workshop": "^6.0.1"
}
}
43 changes: 43 additions & 0 deletions dev/packages/development-edition-engine-twig-php/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@pattern-lab/development-edition-engine-twig-php",
"private": true,
"version": "6.0.1",
"description": "The tree of components we use to test, develop and validate the twig engine (not engine-twig-php)",
"scripts": {
"pl:build": "patternlab build --config ./patternlab-config.json",
"pl:help": "patternlab --help",
"pl:install": "patternlab install --config ./patternlab-config.json",
"pl:serve": "patternlab serve --config ./patternlab-config.json",
"pl:starterkit": "patternlab install --starterkits @pattern-lab/starterkit-twig-demo",
"pl:version": "patternlab --version",
"dev": "node ./node_modules/@pattern-lab/uikit-workshop/build-tools.js"
},
"keywords": [
"Pattern Lab",
"Atomic Web Design",
"Node",
"Twig",
"Edition"
],
"author": "Ringo De Smet",
"license": "MIT",
"repository": {
"type": "git",
"url": "git:https://github.com/pattern-lab/patternlab-node.git"
},
"engines": {
"node": ">=14.21.1"
},
"dependencies": {
"@pattern-lab/cli": "file:../../../dist/packages/cli",
"@pattern-lab/core": "file:../../../dist/packages/core",
"@pattern-lab/engine-twig-php": "file:../../../dist/packages/engine-twig-php",
"@pattern-lab/starterkit-twig-demo": "file:../../../dist/packages/starterkit-twig-demo",
"@pattern-lab/uikit-workshop": "^6.0.1"
},
"workspaces": {
"nohoist": [
"**/@pattern-lab/starterkit-twig-demo"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"cacheBust": true,
"cleanPublic": true,
"defaultPattern": "all",
"defaultShowPatternInfo": false,
"ishControlsHide": {
"s": false,
"m": false,
"l": false,
"full": false,
"random": false,
"disco": false,
"hay": true,
"mqs": false,
"find": false,
"views-all": false,
"views-annotations": false,
"views-code": false,
"views-new": false,
"tools-all": false,
"tools-docs": false
},
"ishViewportRange": {
"s": [
240,
500
],
"m": [
500,
800
],
"l": [
800,
2600
]
},
"logLevel": "info",
"outputFileSuffixes": {
"rendered": ".rendered",
"rawTemplate": "",
"markupOnly": ".markup-only"
},
"paths": {
"source": {
"root": "source/",
"patterns": "source/_patterns/",
"data": "source/_data/",
"meta": "source/_meta/",
"annotations": "source/_annotations/",
"styleguide": "dist/",
"patternlabFiles": {
"general-header": "views/partials/general-header.mustache",
"general-footer": "views/partials/general-footer.mustache",
"patternSection": "views/partials/patternSection.mustache",
"patternSectionSubgroup": "views/partials/patternSectionSubgroup.mustache",
"viewall": "views/viewall.mustache"
},
"js": "source/js",
"images": "source/images",
"fonts": "source/fonts",
"css": "source/css"
},
"public": {
"root": "public/",
"patterns": "public/patterns/",
"data": "public/styleguide/data/",
"annotations": "public/annotations/",
"styleguide": "public/styleguide/",
"js": "public/js",
"images": "public/images",
"fonts": "public/fonts",
"css": "public/css"
}
},
"patternExtension": "twig",
"patternStateCascade": [
"inprogress",
"inreview",
"complete"
],
"patternExportDirectory": "pattern_exports",
"patternExportPatternPartials": [],
"patternMergeVariantArrays": true,
"renderFlatPatternsOnViewAllPages": false,
"serverOptions": {
"wait": 1000
},
"starterkitSubDir": "dist",
"styleGuideExcludes": [],
"theme": {
"color": "dark",
"density": "compact",
"layout": "horizontal"
},
"uikits": [
{
"name": "uikit-workshop",
"package": "@pattern-lab/uikit-workshop",
"outputDir": "",
"enabled": true,
"excludedPatternStates": [],
"excludedTags": []
}
],
"engines": {
"twig-php": {
"package": "@pattern-lab/engine-twig-php",
"fileExtensions": [
"twig"
],
"namespaces": [
{
"id": "atoms",
"recursive": true,
"paths": [
"source/_patterns/atoms"
]
},
{
"id": "molecules",
"recursive": true,
"paths": [
"source/_patterns/molecules"
]
},
{
"id": "organisms",
"recursive": true,
"paths": [
"source/_patterns/organisms"
]
},
{
"id": "templates",
"recursive": true,
"paths": [
"source/_patterns/templates"
]
},
{
"id": "pages",
"recursive": true,
"paths": [
"source/_patterns/pages"
]
},
{
"id": "macros",
"recursive": true,
"paths": [
"source/_macros"
]
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ patternlab.json
Thumbs.db
.idea/
public
dependencyGraph.json
Loading