Skip to content

Commit a1d58a6

Browse files
committed
init.
1 parent 89f7bd0 commit a1d58a6

File tree

6 files changed

+135
-0
lines changed

6 files changed

+135
-0
lines changed

.babelrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"stage-0"
5+
]
6+
}

.eslintrc

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"extends": "eslint:recommended",
9+
"parserOptions": {
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
"indent": [
14+
"error",
15+
"tab"
16+
],
17+
"linebreak-style": [
18+
"error",
19+
"unix"
20+
],
21+
"quotes": [
22+
"error",
23+
"double"
24+
],
25+
"semi": [
26+
"error",
27+
"always"
28+
]
29+
}
30+
}

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
.idea/
2+
*.iml
3+
4+
# dist
5+
dist/
6+
7+
8+
# Commons
9+
.*.swp
10+
.lock-*
11+
build
12+
113
# Logs
214
logs
315
*.log

.npmignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.idea/
2+
*.iml
3+
4+
# source
5+
js/
6+
7+
8+
# Commons
9+
.*.swp
10+
.lock-*
11+
build
12+
13+
# Logs
14+
logs
15+
*.log
16+
npm-debug.log*
17+
18+
# Runtime data
19+
pids
20+
*.pid
21+
*.seed
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (http://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules
43+
jspm_packages
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional REPL history
49+
.node_repl_history

js/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
name: "wamp.js"
3+
};

package.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "wamp.js",
3+
"version": "0.0.1",
4+
"description": "The Web Application Messaging Protocol.",
5+
"main": "./dist/index.js",
6+
"scripts": {
7+
"dev": "babel -w js --out-dir dist",
8+
"build": "babel --compact true --minified js --out-dir dist",
9+
"clean": "rm -rf dist",
10+
"prepublish": "npm run clean && npm run build",
11+
"test": "echo \"Error: no test specified\" && exit 1"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/webee/wamp.js.git"
16+
},
17+
"keywords": [
18+
"wamp",
19+
"nodejs",
20+
"react-native",
21+
"js"
22+
],
23+
"author": "webee.yw <[email protected]>",
24+
"license": "MIT",
25+
"bugs": {
26+
"url": "https://github.com/webee/wamp.js/issues"
27+
},
28+
"homepage": "https://github.com/webee/wamp.js#readme",
29+
"devDependencies": {
30+
"babel-cli": "^6.16.0",
31+
"babel-preset-es2015": "^6.16.0",
32+
"babel-preset-stage-0": "^6.16.0",
33+
"eslint": "^3.8.1"
34+
}
35+
}

0 commit comments

Comments
 (0)