Prepare for open-sourcing
- Prepared index.js file which exports the main library classes (the interface) thus hiding the internal structure and alowing a client to import classes like
const {ServerClient} = require('rdf4js').server
const ServerClientConfig = require('rdf4js').server.ServerClientConfig;
const {ServerClient, ServerClientConfig} = require('rdf4js').server;
- Created a build script which
- transpiles
srcfiles and copies them in thelibfolder - copy the
index.jsinlib - generate the typescript definitions
types.d.tsfile inlib - generate doc
- Updated
package.json - point the
index.jsas a main entry point - point the
types.d.tsas typescript definition file (#typings) - list #files which npm should publish:
lib,index.js,types.d.ts,README.md,LICENSE - removed obsolete scripts
- fixed main path in webpack config -
TBD: consider removing webpack from the project - gitignored *.tgz archives - those could be generated during development with
npm packfor testing purposes