Skip to content

Commit

Permalink
chore: apply tui-code-snippet@2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heenakwag committed Dec 12, 2019
1 parent cba4db6 commit 8caed42
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 36 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var options = {
var instance = new DatePicker(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:
Or, include [`tui-code-snippet`](https://github.com/nhn/tui.code-snippet)(**v2.2.0** or **later**) and then immediately write the options as follows:

```js
tui.usageStatistics = false;
Expand Down Expand Up @@ -186,9 +186,8 @@ For more information about the API, please see [here](http://nhn.github.io/tui.d


## 🔩 Dependency
* [tui-code-snippet](https://github.com/nhn/tui.code-snippet) >=1.5.0
* [tui-dom](https://github.com/nhn/tui.dom) >=3.0.0
* [tui-time-picker](https://github.com/nhn/tui.time-picker) >=2.0.0
* [tui-code-snippet](https://github.com/nhn/tui.code-snippet) >= 2.2.0
* [tui-time-picker](https://github.com/nhn/tui.time-picker) >= 2.0.3


## 🌏 Browser Support
Expand Down
5 changes: 2 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"package-lock.json"
],
"dependencies": {
"tui-code-snippet": "^1.5.0",
"tui-dom": "^3.0.0",
"tui-time-picker": "^2.0.0"
"tui-code-snippet": "^2.2.0",
"tui-time-picker": "^2.0.3"
}
}
9 changes: 3 additions & 6 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,18 @@ var instance = new tui.DatePicker(container, {
```

## Load dependency files
* Script - [tui-code-snippet](https://github.com/nhn/tui.code-snippet) 1.5.0 or later
* Script - [tui-dom](https://github.com/nhn/tui.dom) 3.0.0 or later
> If your project should support IE8, please use `tui-dom.js`, not `tui-dom.min.js`.
* Script - [tui-time-picker](https://github.com/nhn/tui.time-picker) 2.0.0 or later
* Script - [tui-time-picker](https://github.com/nhn/tui.time-picker) 2.0.3 or later

```html
<html>
<head>
....
<link href="tui-time-picker.css" rel="stylesheet">
<link href="tui-date-picker.css" rel="stylesheet">
</head>
<body>
....
<script type="text/javascript" src="tui-code-snippet.js"></script>
<script type="text/javascript" src="tui-dom.min.js"></script>
<script type="text/javascript" src="tui-time-picker.js"></script>
<script type="text/javascript" src="tui-date-picker.js"></script>
....
</body>
Expand Down
7 changes: 1 addition & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,10 @@ module.exports = function(config) {
},
{
test: /\.js$/,
exclude: /(bower_components|node_modules)/,
exclude: /(bower_components|node_modules|dist)/,
loader: 'eslint-loader',
enforce: 'pre'
},
{
test: /\.hbs$/,
exclude: /(node_modules)/,
loader: 'handlebars-loader'
},
{
test: /\.css/,
loader: 'style-loader!css'
Expand Down
17 changes: 0 additions & 17 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ module.exports = function(env, argv) {
filename: FILENAME
},
externals: {
'tui-code-snippet': {
commonjs: 'tui-code-snippet',
commonjs2: 'tui-code-snippet',
amd: 'tui-code-snippet',
root: ['tui', 'util']
},
'tui-dom': {
commonjs: 'tui-dom',
commonjs2: 'tui-dom',
amd: 'tui-dom',
root: ['tui', 'dom']
},
'tui-time-picker': {
commonjs: 'tui-time-picker',
commonjs2: 'tui-time-picker',
Expand All @@ -61,11 +49,6 @@ module.exports = function(env, argv) {
failOnError: isProduction
}
},
{
test: /\.hbs$/,
exclude: /(node_modules)/,
loader: 'handlebars-loader'
},
{
test: /\.css/,
use: [
Expand Down

0 comments on commit 8caed42

Please sign in to comment.