Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: node_js
node_js:
- "14"
before_script:
- yarn global add grunt-cli
addons:
firefox: latest
chrome: stable
Expand All @@ -12,4 +10,4 @@ services:
os:
- linux
- osx
script: grunt test
script: yarn test
6 changes: 0 additions & 6 deletions AUTHORS

This file was deleted.

5 changes: 0 additions & 5 deletions CONTRIBUTORS.md

This file was deleted.

28 changes: 6 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,50 +437,34 @@ Clone a copy of the project repo by running:
git clone --recursive git://github.com/google/data-layer-helper.git
```

Install the [grunt-cli](http://gruntjs.com/getting-started#installing-the-cli) package if you haven't before. This should be done as global install:

```bash
yarn global add grunt-cli
```

Enter the data-layer-helper directory and install the Node dependencies, this time *without* specifying a global install:

```bash
cd data-layer-helper
yarn install
```

Make sure you have `grunt` installed. From the root directory of the project, run:

```bash
grunt -version
```

That should be everything. You can try running the build, which will run the linter, compile/minify the JavaScript and run the tests in chrome.

```bash
grunt
yarn start
```

The built version (data-layer-helper.js) will be in the `dist/` subdirectory.

To run the tests for more than a single run, you will need to first install karma globally:
To run the tests for more than a single run (i.e. for development), you can the run the command

```bash
yarn global add karma
yarn unit
```

You can run the unit tests from the root directory with the command
or

```bash
karma start
yarn integration
```

You can run the integration tests from the root directory with the command

```bash
karma start test/integration/karma.conf.js
```
depending on if you would like to run the unit of integration tests.

## License

Expand Down
Empty file modified dist/data-layer-helper.js
100644 → 100755
Empty file.
45 changes: 42 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
{
"name": "data-layer-helper",
"version": "0.1.0",
"description": "A utility to help many vendors manage the data layer of an application.",
"version": "1.0.0",
"scripts": {
"start": "grunt",
"test": "grunt test",
"unit": "karma start",
"integration": "karma start test/integration/karma.conf.js"
},
"main": "dist/data-layer-helper.js",
"//": "Contributors are listed in alphabetical order by last name. Add yourself!",
"contributors": [
"Sam Calhoun <calhounsm@google.com>",
"KJ Galvan <kaityagalvan@gmail.com>",
"Brian Kuhn <bkuhn@google.com>",
"Alex Li <7alex7li@gmail.com>",
"Alex Nau <arnau@google.com>",
"Eugene Sambursky <ievgen@google.com>",
"Pedro Silva <pedro.hs.silva0111@gmail.com>",
"Dustin Urbaniec <durbanie@google.com>"
],
"devDependencies": {
"eslint": "~7.3.1",
"eslint-config-closure-es6": "~0.1.1",
"eslint-config-google": "~0.14.0",
"eslint-plugin-jasmine": "~4.1.1",
"grunt": "~1.0.4",
"grunt": "~1.2.1",
"grunt-closure-tools": "~1.0.0",
"grunt-karma": "~4.0.0",
"jasmine": "~3.5.0",
Expand All @@ -26,5 +45,25 @@
"dependencies": {
"google-closure-compiler": "~20200614.0.0",
"google-closure-library": "~20200614.0.0"
}
},
"repository": {
"type": "git",
"url": "https://github.com/google/data-layer-helper"
},
"directories": {
"lib": "./src",
"bin": "./dist",
"test": "./test"
},
"keywords": [
"javascript",
"tool",
"utility",
"queue",
"message",
"data",
"layer",
"datalayer"
],
"license": "Apache-2.0"
}
Loading