Skip to content

Commit

Permalink
docs: edit the way to set usageStatistics (#17)
Browse files Browse the repository at this point in the history
* docs: edit the way to set usageStatistics

* chore: add test browsers

* chore: follow eslint tui/es6

* chore: update karma-webdriver-launcher to v1.2.0
  • Loading branch information
heenakwag committed Aug 22, 2019
1 parent 7ce6cdc commit 9479bea
Show file tree
Hide file tree
Showing 6 changed files with 804 additions and 543 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ It also serves as important index to determine the future course of projects.
To disable GA, use the following `usageStatistics` option when creating the instance.

```js
var instance = new ContextMenu(container);

var options = {
...
usageStatistics: false
}

instance.register(target, options);
var instance = new ContextMenu(container, options);
```

Or, include [`tui-code-snippet`](https://github.com/nhn/tui.code-snippet)(**v1.5.0** or **later**) and then immediately write the options as follows:
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Documents

- [Code of Conducting](../CODE_OF_CONDUCT.md)
- [Code of Conduct](../CODE_OF_CONDUCT.md)
- [Contributing Guide](../CONTRIBUTING.md)
- [Commit Message Convention](COMMIT_MESSAGE_CONVENTION.md)
- [API & Examples](https://nhn.github.io/tui.context-menu/latest/)
24 changes: 12 additions & 12 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Config file for testing
* @author NHN. FE Development Lab <dl_javascript@nhn.com>
*/
var pkg = require('./package.json');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var SafeUmdPlugin = require('safe-umd-webpack-plugin');
const pkg = require('./package.json');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const SafeUmdPlugin = require('safe-umd-webpack-plugin');

var webdriverConfig = {
const webdriverConfig = {
hostname: 'fe.nhnent.com',
port: 4444,
remoteHost: true
Expand Down Expand Up @@ -69,8 +69,8 @@ function setConfig(defaultConfig, server) {
'IE8',
'IE9',
'IE10',
// 'IE11',
// 'Edge',
'IE11',
'Edge',
'Chrome-WebDriver',
'Firefox-WebDriver'
// 'Safari-WebDriver' // active only when safari test is needed
Expand All @@ -82,14 +82,14 @@ function setConfig(defaultConfig, server) {
reporters: [
{
type: 'html',
subdir: function(browser) {
return 'report-html/' + browser;
subdir(browser) {
return `report-html/${browser}`;
}
},
{
type: 'cobertura',
subdir: function(browser) {
return 'report-cobertura/' + browser;
subdir(browser) {
return `report-cobertura/${browser}`;
},
file: 'cobertura.txt'
}
Expand All @@ -107,7 +107,7 @@ function setConfig(defaultConfig, server) {
}

module.exports = function(config) {
var defaultConfig = {
const defaultConfig = {
basePath: './',
frameworks: [
'fixture',
Expand Down Expand Up @@ -158,7 +158,7 @@ module.exports = function(config) {
},
plugins: [
new SafeUmdPlugin(),
new ExtractTextPlugin(pkg.name + '.css')
new ExtractTextPlugin(`${pkg.name}.css`)
]
},
port: 9876,
Expand Down
Loading

0 comments on commit 9479bea

Please sign in to comment.