Skip to content

Commit

Permalink
chore: Build to dist folder.
Browse files Browse the repository at this point in the history
Closes #136
  • Loading branch information
RubenVerborgh committed Nov 2, 2020
1 parent 50dfea1 commit 5541d56
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 58 deletions.
9 changes: 1 addition & 8 deletions .gitignore
Expand Up @@ -2,14 +2,7 @@
node_modules
coverage

*.js
*.js.map
*.d.ts

.eslintcache

!.eslintrc.js
!test/eslintrc.js
!jest.config.js

dist
components
68 changes: 36 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 10 additions & 14 deletions package.json
Expand Up @@ -20,13 +20,13 @@
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld": "components/context.jsonld"
},
"lsd:importPaths": {
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/": "components/",
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/": "dist/components/",
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/config/": "config/"
},
"main": "./index.js",
"types": "./index.d.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"community-solid-server": "./bin/server.js"
"community-solid-server": "./dist/bin/server.js"
},
"repository": "git@github.com:solid/community-server.git",
"bugs": {
Expand All @@ -39,7 +39,7 @@
"build:components": "componentsjs-generator -s src",
"lint": "eslint . --ext .ts --cache",
"prepare": "npm run build",
"start": "node ./bin/server.js -p 3000",
"start": "node ./dist/bin/server.js -p 3000",
"test": "npm run jest",
"jest": "jest",
"test:unit": "jest test/unit",
Expand All @@ -55,14 +55,10 @@
}
},
"files": [
"index.js",
"index.d.ts",
"bin/*.js",
"bin/*.d.ts",
"src/**/*.js",
"src/**/*.d.ts",
"components/**/*.jsonld",
"config/**/*.json"
"dist",
"!dist/test",
"components",
"config"
],
"dependencies": {
"@rdfjs/data-model": "^1.2.0",
Expand Down Expand Up @@ -104,7 +100,7 @@
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"componentjs-generator": "^1.2.0",
"componentsjs-generator": "^1.3.0",
"eslint": "^7.9.0",
"eslint-config-es": "^3.20.3",
"eslint-import-resolver-typescript": "^2.3.0",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Expand Up @@ -8,15 +8,15 @@
"inlineSources": true,
"noUnusedLocals": true,
"preserveConstEnums": true,
"outDir": "dist",
"sourceMap": true,
"strict": true,
"stripInternal": true
},
"include": [
"index.ts",
"bin/**/*.ts",
"src/**/*.ts",
"test/**/*.ts"
"bin",
"src",
"test"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 5541d56

Please sign in to comment.