Skip to content

Commit 221aa76

Browse files
홍유정/FE개발랩/NEGitHub Enterprise
authored andcommitted
Merge pull request #79 from fe/feature/register-npm
Feature/register npm
2 parents 6731873 + 1d9b18e commit 221aa76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1415
-5488
lines changed

.eslintrc

Lines changed: 0 additions & 197 deletions
This file was deleted.

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
"extends": "tui",
3+
"env": {
4+
"browser": true,
5+
"amd": true,
6+
"node": true,
7+
"jasmine": true,
8+
"jquery": true
9+
},
10+
"globals": {
11+
"tui": true,
12+
"loadFixtures": true
13+
}
14+
};

.gitignore

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,19 @@ pids
77
*.pid
88
*.seed
99

10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
20-
build/Release
10+
# Compiled files
11+
dist
2112

2213
# Dependency directory
23-
# Deployed apps should consider commenting this line out:
24-
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
2514
node_modules
2615

2716
# Bower Components
2817
bower_components
2918
lib
3019

20+
#JSDOC
21+
doc
22+
3123
# IDEA
3224
.idea
3325
*.iml
@@ -39,18 +31,18 @@ Desktop.ini
3931
# MAC
4032
.DS_Store
4133

42-
# SVN
43-
.svn
44-
bin
4534
# eclipse
4635
.project
4736
.metadata
4837

49-
# etc
50-
temp
51-
tmp
52-
doc
38+
#report / screenshots
5339
report
54-
*.swp
55-
karma.local.conf.js
56-
*.vim
40+
screenshots
41+
42+
# Atom
43+
tags
44+
.ctags
45+
.tern-project
46+
47+
# etc
48+
.agignore

README.md

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Toast UI CodeSnippet
2-
======================
1+
# Toast UI CodeSnippet
32

43
`tui-code-snippet` is group of utility methods to make ease with developing javascript applications.
54

@@ -50,29 +49,61 @@ It includes several features like `class simulation`, `browser detecting`, `type
5049
* defineModule.js
5150
* Support utils to define modules
5251

53-
## How to use CodeSnippet
54-
* Using CodeSnippet build file
55-
* Download `tui-code-snippet.js` or `tui-code-snippet.min.js` from [[master branch]](https://github.com/nhnent/tui.code-snippet)
56-
* It's better that you do not change the file name.
57-
* Using the copy only the necesary parts
58-
* Check dependency before copy the codes
59-
* Use build file as you can
60-
6152
## Documentation
62-
* API: https://nhnent.github.io/tui.code-snippet/latest/
63-
* Tutorial: https://github.com/nhnent/fe.javascript/wiki/FE-CodeSnippet
53+
* API: [https://nhnent.github.io/tui.code-snippet/latest/](https://nhnent.github.io/tui.code-snippet/latest/);
54+
* Tutorial: [https://github.com/nhnent/fe.javascript/wiki/Toast-UI-CodeSnippet](https://github.com/nhnent/fe.javascript/wiki/Toast-UI-CodeSnippet)
6455

6556
## Tested Browsers
6657
* browser:
67-
* IE8+
58+
* IE8 ~ IE11
59+
* Edge
6860
* Chrome
6961
* Firefox
62+
* Safari
63+
64+
## Usage
65+
### Use `npm`
66+
67+
Install the latest version using `npm` command:
68+
69+
```
70+
$ npm install tui-code-snippet --save
71+
```
72+
73+
or want to install the each version:
74+
75+
```
76+
$ npm install tui-code-snippet@<version> --save
77+
```
78+
79+
To access as module format in your code:
80+
81+
```javascript
82+
var util = require('tui-code-snippet');
83+
```
84+
85+
### Use `bower`
86+
Install the latest version using `bower` command:
87+
88+
```
89+
$ bower install tui-code-snippet
90+
```
91+
92+
or want to install the each version:
93+
94+
```
95+
$ bower install tui-code-snippet#<tag>
96+
```
97+
98+
To access as namespace format in your code:
99+
100+
```javascript
101+
var util = tui.util;
102+
```
103+
104+
### Download
105+
* [Download bundle files from `dist` folder](https://github.com/nhnent/tui.code-snippet/tree/production/dist)
106+
* [Download all sources for each version](https://github.com/nhnent/tui.code-snippet/releases)
70107

71-
## Download/Install
72-
* bower:
73-
* Latest: `bower install tui-code-snippet`
74-
* Each Version: `bower install tui-code-snippet[#tag]`
75-
* npm:
76-
* Latest: `npm install tui-code-snippet`
77-
* Each Version: `npm install tui-code-snippet[@tag]`
78-
* Download: https://github.com/nhnent/tui.code-snippet
108+
## License
109+
[MIT LICENSE](https://github.com/nhnent/tui.code-snippet/blob/master/LICENSE)

bower.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
{
22
"name": "tui-code-snippet",
33
"authors": [
4-
"NHN Ent. FE dev Lab(dl_javascript@nhnent.com)"
4+
"NHNent. FE Development Lab <dl_javascript@nhnent.com>"
55
],
6-
"license": "MIT",
76
"main": "dist/tui-code-snippet.js",
7+
"license": "MIT",
88
"ignore": [
99
"**/.*",
1010
".*",
11-
"src",
1211
"node_modules",
1312
"bower_components",
13+
"src",
1414
"test",
15-
"bower.json",
15+
"jsdoc.conf.json",
16+
"karma.conf.js",
1617
"webpack.config.js",
17-
"jsdoc.conf.json"
18-
],
19-
"devDependencies": {
20-
"jquery": "~1.8.3"
21-
}
18+
"package.json"
19+
]
2220
}

0 commit comments

Comments
 (0)