Skip to content

Commit

Permalink
Project configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauli Ojanperä committed Nov 5, 2021
1 parent f87e7ba commit 5b2225a
Show file tree
Hide file tree
Showing 7 changed files with 504 additions and 446 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=http://localhost:8798/
//localhost:8798/:_authToken="fooBar"
1 change: 0 additions & 1 deletion .verdaccio

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ console.log([1, 2, 3][to](g)); // '1-2-3'

## Building/Testing

- `pnpm i -g verdaccio` install the Verdaccio package registry proxy
- `pnpm dev` run Verdaccio
- `pnpm build` build and publish in Verdaccio locally
- `pnpm t` run tests
- `pnpm pub` publish ./dist
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export default {
},
},
extensionsToTreatAsEsm: ['.ts'],
modulePathIgnorePatterns: ['.*/(.dist|.static|.verdaccio|node_modules)/.*'],
testMatch: ['**/__tests__/**/*.[jt]s?(x)'],
};
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pauliojanpera/pipe-operator",
"productName": "Pipe operator",
"version": "0.0.17",
"version": "0.0.19",
"description": "A typed pipe operator",
"author": {
"name": "Pauli Ojanperä",
Expand All @@ -23,10 +23,10 @@
}
},
"scripts": {
"dev": "if [ ! -d .verdaccio ] ; then if [ ! -d ~/.verdaccio ] ; then mkdir ~/.verdaccio ; fi ; ln -s ~/.verdaccio ; fi && pnpm verdaccio --listen 8798 --config ./verdaccio.yaml",
"build": "shx rm -rf .dist ; pnpm version patch --no-git-tag-version && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node ./post-build.mjs && pnpm publish ./.dist --registry http://localhost:8798/ --access public --no-git-checks",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"pub": "pnpm version patch -m 'v%s' && pnpm publish ./.dist --access public --publish-branch master"
"dev": "if [ ! -d .verdaccio-store ] ; then if [ ! -d ~/.verdaccio-store ] ; then mkdir ~/.verdaccio-store ; fi ; ln -s ~/.verdaccio-store ; fi && pnpm verdaccio --listen 8798 --config ./verdaccio.yaml",
"build": "rm -rf .dist ; pnpm update --depth 0 --filter=${npm_package_name} ; pnpm version patch --no-git-tag-version && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node ./post-build.mjs && pnpm publish ./.dist --access public --no-git-checks",
"test": "NODE_OPTIONS=--experimental-vm-modules pnpm jest",
"pub": "pnpm version patch -m 'v%s' && pnpm publish ./.dist --registry http://registry.npmjs.org/ --access public --publish-branch master"
},
"keywords": [
"pipe",
Expand All @@ -41,12 +41,12 @@
],
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/node": "^16.11.0",
"@types/node": "^16.11.6",
"fs-extra": "^10.0.0",
"jest": "^27.2.5",
"jest-environment-jsdom": "^27.2.5",
"jest": "^27.3.1",
"jest-environment-jsdom": "^27.3.1",
"shx": "^0.3.3",
"ts-jest": "^27.0.6",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
}
}
Loading

0 comments on commit 5b2225a

Please sign in to comment.