Skip to content

Commit 9c07ba4

Browse files
committed
feat: moving drupal-lab scripts to drupal-lab package.json
1 parent 136d610 commit 9c07ba4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

example-integrations/drupal-lab/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@bolt/drupal-lab-example",
3-
"private": true,
43
"version": "2.4.0",
4+
"private": true,
55
"contributors": [
66
{
77
"name": "Salem Ghoweri",
@@ -14,9 +14,12 @@
1414
}
1515
],
1616
"scripts": {
17+
"copy": "cp -fr drupal-lab/web/themes/bolt-starter/dist/vendors-bundle-*.js www/integrations/drupal-lab/themes/bolt-starter/dist",
18+
"deploy": "now deploy --local-config=now.drupal-lab.json --team boltdesignsystem --no-verify",
19+
"generate": "yarn run setup:php && yarn run drupal-lab:static && yarn run drupal-lab:copy",
20+
"setup": "npx npm-run-all --serial setup:*",
1721
"setup:js": "cd web/themes/bolt-starter && yarn && npm run build",
1822
"setup:php": "composer install && composer run build",
19-
"setup": "npx npm-run-all --serial setup:*",
20-
"deploy": "now deploy --local-config=now.drupal-lab.json --team boltdesignsystem --no-verify"
23+
"static": "cd example-integrations/drupal-lab && ./vendor/bin/drush tome:static"
2124
}
2225
}

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@
5151
"create:component": "yo ./packages/generator-bolt/generators/component/index.js",
5252
"cz": "git-cz",
5353
"deploy": "./scripts/deploy.js",
54-
"drupal-lab:clean": "rm -rf example-integrations/drupal-lab/html",
55-
"drupal-lab:copy": "cp -fr example-integrations/drupal-lab/web/themes/bolt-starter/dist/vendors-bundle-*.js www/integrations/drupal-lab/themes/bolt-starter/dist",
56-
"drupal-lab:generate": "yarn run drupal-lab:setup && yarn run drupal-lab:static && yarn run drupal-lab:copy",
57-
"drupal-lab:setup": "cd example-integrations/drupal-lab && composer run setup",
58-
"drupal-lab:static": "cd example-integrations/drupal-lab && ./vendor/bin/drush tome:static",
59-
"drupal-lab:serve-static": "node packages/servers/integration-server",
6054
"postinstall": "patch-package && npx lerna run postbootstrap",
6155
"jest": "jest --maxWorkers=3 --all --colors",
6256
"lint": "npm-run-all --parallel lint:*",

0 commit comments

Comments
 (0)