Skip to content

Commit

Permalink
wow we can now do readme stuff very cool
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Mar 3, 2023
1 parent 34b3326 commit 1edd816
Show file tree
Hide file tree
Showing 185 changed files with 76,555 additions and 109,459 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 1 addition & 5 deletions apps/jote/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
export default {
displayName: 'jote',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['@swc/jest'],
Expand Down
15 changes: 11 additions & 4 deletions jest.preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const __dirname = path.dirname(__filename)

import { readFileSync } from 'fs'
import { join } from 'path'
const tsconfig = JSON.parse(
readFileSync(join(__dirname, 'tsconfig.base.json'), 'utf8')
)
const tsconfig = JSON.parse(readFileSync(join(__dirname, 'tsconfig.base.json'), 'utf8'))

const {
compilerOptions: { paths },
Expand All @@ -24,7 +22,6 @@ export default {
globals: {
__basedir: __dirname,
},

transform: {
'^.+\\.ne$': 'jest-transform-nearley',
'^.+\\.[jt]sx?$': ['@swc/jest'], // swcConfig],
Expand All @@ -35,4 +32,14 @@ export default {
moduleNameMapper: pathsToModuleNameMapper(paths, {
prefix: `${__dirname}/`,
}),
/* TODO: Update to latest Jest snapshotFormat
* By default Nx has kept the older style of Jest Snapshot formats
* to prevent breaking of any existing tests with snapshots.
* It's recommend you update to the latest format.
* You can do this by removing snapshotFormat property
* and running tests with --update-snapshot flag.
* Example: "nx affected --targets=test --update-snapshot"
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
*/
snapshotFormat: { escapeString: true, printBasicPrototype: true },
}
File renamed without changes.
8 changes: 8 additions & 0 deletions libs/ast-stringify/project.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"name": "ast-stringify",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/ast-stringify/src",
"projectType": "library",
"targets": {
"readme": {
"executor": "@jote/utils/readme:update-readme",
"options": {
"readme": "libs/ast-stringify/README.md",
"packageJSON": "libs/ast-stringify/package.json"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions libs/citations/apa-parser/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"sourceRoot": "libs/citations/apa-parser/src",
"projectType": "library",
"targets": {
"readme": {
"executor": "@jote/utils/readme:update-readme",
"options": {
"readme": "libs/citations/apa-parser/README.md",
"packageJSON": "libs/citations/apa-parser/package.json"
}
},
"build": {
"executor": "@nrwl/js:swc",
"outputs": ["{options.outputPath}"],
Expand Down
File renamed without changes.
Loading

0 comments on commit 1edd816

Please sign in to comment.