

Official JavaScript SDK for Carbon LDP applications. Simplifies the use of Carbon LDP's REST API.
For information on how to use the SDK, please refer to the JavaScript SDK user guide on the Carbon LDP website.
Installing
npm install carbonldp
Development setup
- Install dependencies
- cd into the project's root directory
- Run
npm install
- Build the source code by running
npm start
Main gulp tasks
build
: Same as npm start
. Build the source code and prepare it for production (inside the dist/ folder)
lint
: Same as npm lint
. Run TSLint over the source code to perform static code analysis.
test
: Same as npm test
. Run the test in both Node.js and Google Chrome.
File structure
βββ .circleci # CircleCI's configuration files (automated build and deploy system)
βββ .idea # WebStorm shared configuration files (like code style)
βββ build # Build related scripts
β βββ license.js # Contains the license to append to the build
β βββ sfx.ts # Main file that feeds the SFX building process
β βββ docs # Templates for build the different types of API documentation
β βββ html # Templates for html documentation (used for github pages)
β βββ markdown # Templates for markdown documentation
βββ config # Configuration files used while bundling the application
β βββ karma.conf.js # Actual Karma test runner configuration file
β βββ webpack.common.js # Webpack's settings used by every mode
β βββ webpack.prod.js # Webpack bundling settings for PRODUCTION mode
β βββ webpack.test.js # Webpack bundling settings for TESTING mode
βββ dist # Distribution related files
β βββ bundles # Contains the bundled versions of the entire SDK
βββ docs # JS SDK's API docucmentation files
βββ node_modules # npm dependencies (don't touch them)
βββ playground # Informal testing ground (TODO: Clean directory)
βββ src # All source files
βββ test # Test framework related files (not the real tests)
βββ .gitignore # Ignore file for git
βββ .nvmrc # nvm configuration file that specifies supported Node.js version (for development)
βββ CHANGELOG.md # File to track package changes
βββ gulpfile.ts # Gulp's configuration file
βββ karma.conf.js # Karma configuration file used for the Browser tests
βββ LICENSE # Self explanatory
βββ package.json # npm's configuration file
βββ package-lock.json # npm's with the exact desired dependency tree
βββ README.md # this
βββ tsconfig.json # Typescript compiler configuration file
βββ tslint.json # TSLint configuration file
βββ webpack.config.js # Webpack configuration used to bundle the SDK
License
Copyright (c) 2015-present, Base22 Technology Group, LLC
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.