Skip to content

Commit

Permalink
renamed to datapackage
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Feb 17, 2017
1 parent 08fd388 commit 657264d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 108 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A model for working with [Data Packages].

```bash
$ npm install datapackage-test
$ npm install datapackage
```

##Example
Expand Down Expand Up @@ -95,7 +95,7 @@ new Datapackage('http://bit.do/datapackage-json', 'base', false).then(datapackag
- default `basePath` is empty String (`''`)
- any explicit `basePath` will be used as `basePath`
- In case when the resource path is an absolute URL, `basePath` is disregarded and only the URL is used to fetch the resource.
- Examples
- Examples
- `datapackage` is initialized with the `my-datapackages/datapackage.json` descriptor, the `basePath` is set to `data/` and the resource path is `november/resource.csv` the resource is expected to be in `my-datapackages/data/november/resource.cvs` relative of the directory where the library is executed.

###Class methods
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "datapackage-test",
"name": "datapackage",
"version": "0.2.4",
"description": "Utilities to work with Data Packages as defined on dataprotocols.org",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions test/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
mocha.reporter('html');
var assert = chai.assert;
</script>
<script src="../../dist/datapackage-test.js"></script>
<script src="../../dist/datapackage.js"></script>
<script>
mocha.run();
</script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions test/browser/jsdomSetup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jsdom from 'jsdom'
import fs from 'fs'

const testBundle = fs.readFileSync('./dist/datapackage-test.js', 'utf8')
const testBundle = fs.readFileSync('./dist/datapackage.js', 'utf8')

export default testingClass => {
const document = jsdom.jsdom()
Expand All @@ -11,5 +11,5 @@ export default testingClass => {
scriptEl.textContent = testBundle
document.body.appendChild(scriptEl)

return window.Datapackage[testingClass]
return window.datapackage[testingClass]
}
99 changes: 0 additions & 99 deletions test/browser/profiles.js

This file was deleted.

4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let webpackConfig = {
{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ }
]
},
output: { library: 'Datapackage', libraryTarget: 'umd' },
output: { library: 'datapackage', libraryTarget: 'umd' },
node: {
fs: 'empty'
}
Expand Down Expand Up @@ -68,7 +68,7 @@ if (ENV === 'test') {
webpackConfig = merge(webpackConfig, {
entry: './test/browser/buildIndex.js',
output: {
filename: 'datapackage-test.js',
filename: 'datapackage.js',
path: './dist'
},
plugins: [
Expand Down

0 comments on commit 657264d

Please sign in to comment.