forked from Mirrors/doipjs
Compare commits
4 commits
dev
...
prepare-ne
Author | SHA1 | Date | |
---|---|---|---|
|
1ed3051f45 | ||
|
306895cb07 | ||
|
a715e918c4 | ||
|
2c91935862 |
9 changed files with 7575 additions and 4314 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn test
|
||||
npm test
|
|
@ -15,8 +15,10 @@ examples
|
|||
\.woodpecker
|
||||
|
||||
package.json
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
rollup.config.js
|
||||
\.editorconfig
|
||||
\.gitignore
|
||||
\.licenseignore
|
||||
flake.nix
|
||||
flake.lock
|
|
@ -3,10 +3,9 @@ when:
|
|||
event: tag
|
||||
steps:
|
||||
prepare:
|
||||
image: node
|
||||
image: node:20
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
- npm ci
|
||||
|
||||
publish-npm:
|
||||
when:
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
when:
|
||||
event: [push, pull_request, tag, release, manual]
|
||||
steps:
|
||||
test:
|
||||
image: node
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
- npm ci
|
||||
- npm run test
|
61
flake.lock
Normal file
61
flake.lock
Normal file
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1717144377,
|
||||
"narHash": "sha256-F/TKWETwB5RaR8owkPPi+SPJh83AQsm6KrQAlJ8v/uA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "805a384895c696f802a9bf5bf4720f37385df547",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710146030,
|
||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
26
flake.nix
Normal file
26
flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "doipjs";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShell = with pkgs; mkShell {
|
||||
buildInputs = [
|
||||
nodejs_20
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "node `${pkgs.nodejs_20}/bin/node --version`"
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
}
|
7474
package-lock.json
generated
Normal file
7474
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,6 @@
|
|||
"default": "./src/fetcher/index.minimal.js"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@1.22.19",
|
||||
"dependencies": {
|
||||
"@openpgp/hkp-client": "^0.0.3",
|
||||
"@openpgp/wkd-client": "^0.0.4",
|
||||
|
@ -58,8 +57,8 @@
|
|||
"rollup-plugin-visualizer": "^5.9.2"
|
||||
},
|
||||
"scripts": {
|
||||
"release": "node ./prerelease.js && yarn run test && yarn run build",
|
||||
"build": "rm -rf ./dist/ && yarn run build:bundle && yarn run build:minify",
|
||||
"release": "node ./prerelease.js && npm run test && npm run build",
|
||||
"build": "rm -rf ./dist/ && npm run build:bundle && npm run build:minify",
|
||||
"build:bundle": "rollup -c",
|
||||
"build:minify": "minify ./dist/doip.core.js > ./dist/doip.core.min.js && minify ./dist/doip.fetchers.js > ./dist/doip.fetchers.min.js && minify ./dist/doip.fetchers.minimal.js > ./dist/doip.fetchers.minimal.min.js",
|
||||
"license:check": "license-check-and-add check",
|
||||
|
@ -68,7 +67,7 @@
|
|||
"docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json",
|
||||
"lint": "eslint ./src",
|
||||
"lint:fix": "eslint ./src --fix",
|
||||
"test": "yarn lint && yarn run license:check && yarn run mocha",
|
||||
"test": "npm run lint && npm run license:check && mocha",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in a new issue