mirror of
https://github.com/foambubble/foam.git
synced 2026-01-10 22:48:09 -05:00
* revise vscode task and launch configs - Removed commands from sub-package: same can be achieved from the root - Added build and no-build variants. In case separate watcher is already running, no need to build. - Changed watch to build (no hot-reload in vscode by default) - Show the build in console Didn't update yarn.lock, seems to want to add foam-core@0.3.0-alpha.0, but not really related to this change Note: the extension tests are failing due to `Cannot find module '...foam-vscode/out/test/suite/index'`. However that shouldn't be related to this change either. * Simplify VS Code launch tasks (shift work to typescript compiler) * Fix circular dependency index->janitor/index->index * Use --build flag to use TSC in Build Mode https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript This configures tsc to use multiple project roots (vscode, core) and run incremental builds on changes to each projects. This will necessitate us running the core in commonjs build mode, which is fine for testing and deployment to node environments, but won't work in the browser, so foam-core will need a separate build config for UMD builds * Build foam-core in commonjs mode by default (+cleanup unnecessary config) * Create ES6 build config for distribution builds * Cleanup yarn.lock * Build package before running * Fix missing lint paths and fix lint error * Remove redundant .vscode settings files from foam-vscode project * Add core test launch task Co-authored-by: jojanaho <janne.ojanaho@iki.fi>
42 lines
1002 B
JSON
42 lines
1002 B
JSON
{
|
|
"name": "foam",
|
|
"version": "0.2.0",
|
|
"description": "Foam",
|
|
"repository": "git@github.com:foambubble/foam.git",
|
|
"author": "Jani Eväkallio <jani.evakallio@gmail.com>",
|
|
"license": "MIT",
|
|
"private": "true",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"start:vscode": "yarn workspace foam-vscode vscode:start-debugging",
|
|
"build:core": "yarn workspace foam-core build",
|
|
"watch:core": "yarn workspace foam-core start",
|
|
"test:core": "yarn workspace foam-core test",
|
|
"clean": "lerna run clean",
|
|
"build": "lerna run build",
|
|
"test": "lerna run test",
|
|
"lint": "lerna run lint",
|
|
"watch": "lerna run watch --concurrency 20 --stream"
|
|
},
|
|
"devDependencies": {
|
|
"all-contributors-cli": "^6.16.1",
|
|
"lerna": "^3.22.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "tsdx lint"
|
|
}
|
|
},
|
|
"prettier": {
|
|
"printWidth": 80,
|
|
"semi": true,
|
|
"singleQuote": true,
|
|
"trailingComma": "es5"
|
|
}
|
|
}
|