fix: build components with dependencies (#1132)
* fix: build components with dependencies * fix: exclude @standardnotes/components-meta * chore: update yarn.lock * fix: remove compile script from VERSION.sh * fix: skip lint script * fix: components script names * fix: build script for components * fix: run tsc within build script Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
This commit is contained in:
@@ -10,11 +10,10 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc --project tsconfig.json",
|
||||
"components:clean": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:clean",
|
||||
"components:lint": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:lint",
|
||||
"components:test": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:test",
|
||||
"components:compile": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:compile",
|
||||
"clean": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:clean",
|
||||
"lint": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:lint",
|
||||
"test": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:test",
|
||||
"build": "tsc --project tsconfig.json && yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:compile",
|
||||
"package": "node scripts/package.mjs",
|
||||
"version": "./scripts/VERSION.sh"
|
||||
},
|
||||
@@ -22,6 +21,7 @@
|
||||
"@standardnotes/deterministic-zip": "^1.2.0",
|
||||
"@standardnotes/eslint-config-extensions": "^1.0.4",
|
||||
"@standardnotes/features": "^1.45.1",
|
||||
"@standardnotes/styles": "workspace:*",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"mini-css-extract-plugin": "^2.6.0",
|
||||
"minimatch": "^5.1.0",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'Compiling components from' $(pwd)
|
||||
echo 'Building components from' $(pwd)
|
||||
|
||||
yarn components:clean && yarn components:compile
|
||||
yarn clean && yarn build
|
||||
|
||||
echo "Packaging component assets and zips..."
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"scripts": {
|
||||
"start": "http-server . --cors -p8001 & webpack --progress --config webpack.dev.js",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"skip:components:lint": "eslint src --ext .js",
|
||||
"skip:components:lint": "eslint ./src --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix",
|
||||
"components:clean": "rm -rf ./vendor"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user