Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/wewei/ot-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Wei committed Sep 30, 2024
2 parents 734fb30 + 1af2732 commit 9ee0a97
Show file tree
Hide file tree
Showing 24 changed files with 10,410 additions and 4,469 deletions.
28 changes: 28 additions & 0 deletions .verdaccio/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# path to a directory with all packages
storage: ../tmp/local-registry/storage

# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
maxage: 60m

packages:
'**':
# give all users (including non-authenticated users) full access
# because it is a local registry
access: $all
publish: $all
unpublish: $all

# if package is not available locally, proxy requests to npm registry
proxy: npmjs

# log settings
logs:
type: stdout
format: pretty
level: warn

publish:
allow_offline: true # set offline to true to allow publish offline
10 changes: 9 additions & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const nxPreset = require('@nx/jest/preset').default;

module.exports = { ...nxPreset };
module.exports = {
...nxPreset,
testPathIgnorePatterns: ['__utils__'].concat(
nxPreset.testPathIgnorePatterns ?? []
),
coveragePathIgnorePatterns: ['__utils__'].concat(
nxPreset.coveragePathIgnorePatterns ?? []
),
};
22 changes: 21 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^default"]
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^default"]
}
},
"plugins": [
Expand All @@ -29,6 +34,21 @@
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"testTargetName": "test",
"serveTargetName": "serve",
"previewTargetName": "preview",
"serveStaticTargetName": "serve-static"
}
}
],
"release": {
"version": {
"preVersionCommand": "npx nx run-many -t build"
}
]
}
}
Loading

0 comments on commit 9ee0a97

Please sign in to comment.