Skip to content

Commit bf26a44

Browse files
author
Fletcher91
committed
Use pika for builds
1 parent c058d7e commit bf26a44

File tree

8 files changed

+2556
-413
lines changed

8 files changed

+2556
-413
lines changed

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
node_modules/*
22
.idea
33
.rpt2*
4-
dist/**/*.d.ts
5-
dist/**/*.ts
6-
dist/**/*.ts.map
7-
dist/**/*.js
8-
dist/**/*.js.map
94
dist/docs/
105
coverage/**
6+
pkg/

__mocks__/solid-auth-client.js

-7
This file was deleted.

package.json

+31-25
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
{
22
"name": "link-lib",
3-
"version": "1.0.0-rc4-datafactory",
3+
"version": "1.0.0-rc4-light-2",
44
"description": "The Link library for creating information based applications",
5-
"main": "dist/link-lib.umd.js",
6-
"module": "dist/link-lib.es6.js",
7-
"sideEffects": false,
8-
"typings": "dist/typings/link-lib.d.ts",
9-
"files": [
10-
"dist/link-lib.es6.js",
11-
"dist/link-lib.umd.js",
12-
"dist/typings/**/*.*",
13-
"package.json",
14-
"tsconfig.json",
15-
"yarn.lock"
16-
],
175
"repository": "https://github.com/fletcher91/link-lib.git",
186
"scripts": {
19-
"build": "rollup -c && tsc -p tsconfig-types.json",
7+
"build": "pika build",
208
"doc": "rm -rf dist/docs/* && typedoc --tsconfig tsconfig-types.json --exclude **/*.spec.ts --excludeExternals --excludePrivate --mode file --theme minimal --target ES6 --includeDeclarations --out dist/docs/ src/",
219
"doc:deploy": "gh-pages -d ./dist/docs",
2210
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'",
23-
"prebuild": "rm -rf dist/*",
2411
"prepublish": "npm run build && npm run doc",
2512
"postpublish": "npm run doc:deploy",
2613
"pretest": "npm run lint",
27-
"test": "jest --coverage"
14+
"test": "jest --coverage",
15+
"version": "yarn run build"
2816
},
2917
"author": "Fletcher91 <[email protected]>",
3018
"license": "LGPL-3.0",
19+
"@pika/pack": {
20+
"pipeline": [
21+
[
22+
"@pika/plugin-ts-standard-pkg",
23+
{
24+
"exclude": [
25+
"__tests__/**/*"
26+
]
27+
}
28+
],
29+
[
30+
"@pika/plugin-build-node"
31+
],
32+
[
33+
"@pika/plugin-build-web"
34+
]
35+
]
36+
},
3137
"dependencies": {
3238
"murmurhash-js": "^1.0.0"
3339
},
3440
"peerDependencies": {
3541
"@ontologies/as": ">=1.0.1",
36-
"@ontologies/core": ">=1.7.2",
42+
"@ontologies/core": ">=2.0.0-1",
3743
"@ontologies/ld": ">=1.0.0",
3844
"@ontologies/schema": ">=1.0.0",
3945
"@ontologies/shacl": ">=1.0.0",
@@ -43,7 +49,7 @@
4349
"devDependencies": {
4450
"@ontola/memoized-hash-factory": "^1.2.1",
4551
"@ontologies/as": "^1.0.1",
46-
"@ontologies/core": "^1.7.2",
52+
"@ontologies/core": "^2.0.0-1",
4753
"@ontologies/dcterms": "^1.0.0",
4854
"@ontologies/ld": "^1.0.0",
4955
"@ontologies/owl": "^1.0.0",
@@ -52,22 +58,22 @@
5258
"@ontologies/schema": "^1.0.0",
5359
"@ontologies/shacl": "^1.0.0",
5460
"@ontologies/xsd": "^1.0.0",
61+
"@pika/pack": "^0.5.0",
62+
"@pika/plugin-build-node": "^0.8.1",
63+
"@pika/plugin-build-web": "^0.8.1",
64+
"@pika/plugin-bundle-web": "^0.8.1",
65+
"@pika/plugin-ts-standard-pkg": "^0.8.1",
5566
"@types/firefox-webext-browser": "^67.0.2",
5667
"@types/jest": "^24.0.19",
5768
"@types/murmurhash-js": "^1.0.3",
5869
"@types/node": "^12.11.2",
59-
"core-js": "^3.3.3",
70+
"core-js": "^3.4.4",
6071
"esdoc": "^1.1.0",
6172
"gh-pages": "^2.1.1",
6273
"http-status-codes": ">= 1.x",
6374
"jest": "^24.9.0",
6475
"jest-fetch-mock": "^2.1.2",
65-
"n-quads-parser": "=2.0.3-ontologies",
66-
"rollup": "^1.25.1",
67-
"rollup-plugin-commonjs": "^10.1.0",
68-
"rollup-plugin-node-resolve": "^5.2.0",
69-
"rollup-plugin-sourcemaps": "^0.4.2",
70-
"rollup-plugin-typescript2": "^0.24.3",
76+
"n-quads-parser": "^2.1.0-0",
7177
"ts-jest": "^24.1.0",
7278
"tslint": "^5.20.0",
7379
"typedoc": "^0.15.2",

rollup.config.js

-50
This file was deleted.
File renamed without changes.

tsconfig-types.json

-12
This file was deleted.

tsconfig.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"moduleResolution": "node",
55
"declaration": false,
66
"forceConsistentCasingInFileNames": true,
7-
"module": "es6",
7+
"module": "esnext",
88
"lib": [
99
"esnext",
1010
"dom"
@@ -15,11 +15,8 @@
1515
"outDir": "dist/es",
1616
"sourceMap": true,
1717
"strict": true,
18-
"target": "es2017"
18+
"target": "es2019"
1919
},
20-
"files": [
21-
"src/link-lib.ts"
22-
],
2320
"exclude": [
2421
"**/__tests__/*"
2522
]

0 commit comments

Comments
 (0)