Skip to content

Commit d4a3ccb

Browse files
authored
Simplify repository for One integration (#87)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent d3d571b commit d4a3ccb

File tree

16 files changed

+11
-1167
lines changed

16 files changed

+11
-1167
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- run: make lint
2323
- run: make test
24-
- run: make dist
2524
- run: ./scripts/ci-quality-no-uncommitted-files.sh
2625

2726
- run: gh config set prompt disabled
@@ -31,10 +30,6 @@ jobs:
3130
- name: Perform Tag Release
3231
run: |
3332
gh release create ${{ github.ref_name }} --draft=false --title ${{ github.ref_name }} --target "$GITHUB_SHA" --generate-notes
34-
gh release upload --clobber ${{ github.ref_name }} dist/*.zip dist/*.tar.gz
3533
if: github.ref_type == 'tag'
3634
env:
3735
GH_TOKEN: ${{ github.token }}
38-
39-
- name: Publish to NPM
40-
run: sudo npm install --global npm@latest && npm publish

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- run: make lint
2222
- run: make test
23-
- run: make dist
2423
- run: ./scripts/ci-quality-no-uncommitted-files.sh

.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ lint: common node_modules
4040
.PHONY: test
4141
test: node_modules
4242
$(TIME) $(NODE) $(JSONSCHEMA) test ./test
43-
$(NODE) npm/cjs.test.js
44-
$(NODE) npm/esm.test.mjs
45-
46-
# TODO: Add a `jsonschema pkg` command instead
47-
.PHONY: dist
48-
VERSION = $(shell $(JQ) --raw-output '.["x-version"]' jsonschema.json)
49-
dist:
50-
$(RMRF) $@
51-
$(MKDIRP) $@
52-
cd schemas && $(ZIP) -r ../$@/sourcemeta-std-v$(VERSION).zip * -x '*.DS_Store'
53-
$(ZIP) $@/sourcemeta-std-v$(VERSION).zip LICENSE
54-
$(UNZIP) -l $@/sourcemeta-std-v$(VERSION).zip
55-
cd schemas && $(TAR) -cf ../$@/sourcemeta-std-v$(VERSION).tar --exclude '.DS_Store' *
56-
$(TAR) -rf $@/sourcemeta-std-v$(VERSION).tar LICENSE
57-
$(GZIP) $@/sourcemeta-std-v$(VERSION).tar
58-
$(TAR) -tzf $@/sourcemeta-std-v$(VERSION).tar.gz
59-
$(MKDIRP) $@/npm
60-
$(NPM) version --no-git-tag-version --allow-same-version "$(VERSION)"
61-
$(NPM) pack --pack-destination $@/npm
6243

6344
node_modules: package.json package-lock.json
6445
$(NPM) ci

README.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17526561.svg)](https://doi.org/10.5281/zenodo.17526561)
44
[![GitHub Release](https://img.shields.io/github/v/release/sourcemeta/std)](https://github.com/sourcemeta/std/releases)
5-
[![NPM Version](https://img.shields.io/npm/v/@sourcemeta/std)](https://www.npmjs.com/package/@sourcemeta/std)
65

76
***
87
**Browse the schemas at [https://schemas.sourcemeta.com/sourcemeta/std](https://schemas.sourcemeta.com/sourcemeta/std)**

meta/schemas.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515
"properties": {
1616
"$id": false,
1717
"$comment": {
18-
"$ref": "../schemas/2020-12/misc/single-line-text.json"
18+
"$ref": "#/$defs/single-line-text"
1919
},
2020
"title": {
21-
"$ref": "../schemas/2020-12/misc/single-line-text.json"
21+
"$ref": "#/$defs/single-line-text"
2222
},
2323
"description": {
24-
"$ref": "../schemas/2020-12/misc/single-line-text.json"
24+
"$ref": "#/$defs/single-line-text"
25+
}
26+
},
27+
"$defs": {
28+
"single-line-text": {
29+
"type": "string",
30+
"pattern": "^(?!.*\\.$)(?!.*(?<!\\.)\\.\\.(?!\\.))(?!.* [.,;:!?])(?![?!])(?!.*[?!])(?!.* )(?!.*\\(\\))(?!.*\\[\\])(?!.*--)(?!.*[\\n\\r\\t])(?!.*[\\x00-\\x1F\\x7F])[^\\s](?:.*[^\\s])?$"
2531
}
2632
}
2733
}

npm/cjs.test.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

npm/esm.test.mjs

Lines changed: 0 additions & 66 deletions
This file was deleted.

npm/main.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

npm/main.mjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)