Skip to content

Commit 1014c4a

Browse files
authored
Merge pull request #7 from minora-oss/es2015
Es2015
2 parents d01af1a + 1be7c05 commit 1014c4a

18 files changed

Lines changed: 243 additions & 281 deletions

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
'plugins': [
3+
'transform-object-rest-spread',
4+
'transform-object-assign'
5+
],
6+
'presets': ['es2015']
7+
}

.gitignore

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -111,33 +111,12 @@ bower_components/
111111

112112
## Directory-based project format:
113113
.idea/
114-
# if you remove the above rule, at least ignore the following:
115-
116-
# User-specific stuff:
117-
# .idea/workspace.xml
118-
# .idea/tasks.xml
119-
# .idea/dictionaries
120-
121-
# Sensitive or high-churn files:
122-
# .idea/dataSources.ids
123-
# .idea/dataSources.xml
124-
# .idea/sqlDataSources.xml
125-
# .idea/dynamic.xml
126-
# .idea/uiDesigner.xml
127-
128-
# Gradle:
129-
# .idea/gradle.xml
130-
# .idea/libraries
131-
132-
# Mongo Explorer plugin:
133-
# .idea/mongoSettings.xml
134114

135115
## File-based project format:
136116
*.ipr
137117
*.iws
138118

139119
## Plugin-specific files:
140-
141120
# IntelliJ
142121
/out/
143122

@@ -147,7 +126,5 @@ bower_components/
147126
# JIRA plugin
148127
atlassian-ide-plugin.xml
149128

150-
# Crashlytics plugin (for Android Studio and IntelliJ)
151-
com_crashlytics_export_strings.xml
152-
crashlytics.properties
153-
crashlytics-build.properties
129+
# Distribution Files
130+
*.js

.npmignore

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# Error Logs
12
npm-debug.log
3+
4+
# NPM Modules
25
node_modules/
6+
7+
# Other?
38
sftp-config.json
49
*.sublime-project
510
*.sublime-workspace
@@ -8,12 +13,14 @@ sftp-config.json
813
*.swp
914
error.log
1015
events.log
11-
.bithoundrc
12-
.gitattributes
13-
.gitignore
14-
.jshintrc
15-
.tern-project
16-
.travis.yml
16+
17+
# Git Files
1718
contributing.md
1819
license.md
1920
readme.md
21+
22+
# Dot Files
23+
.*
24+
25+
# Source Files
26+
*.es6

lib/controllers.js

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

lib/logger.js

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

lib/parser.js

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

lib/server.js

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

lib/settings.js

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

library.js

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

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "nodebb-plugin-camo",
3-
"version": "1.3.1",
3+
"version": "1.4.0",
44
"homepage": "https://github.com/minora-oss/nodebb-plugin-camo",
55
"description": "Route embedded images through a secure camo proxy",
6-
"main": "library.js",
6+
"main": "lib/camo.js",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/minora-oss/nodebb-plugin-camo"
1010
},
1111
"scripts": {
12+
"compile": "babel src -d .",
1213
"test": "echo \"Info: There are no tests specified yet\" && exit 0"
1314
},
1415
"keywords": [
@@ -44,5 +45,15 @@
4445
},
4546
"nbbpm": {
4647
"compatibility": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^1.0.0"
48+
},
49+
"devDependencies": {
50+
"babel-cli": "^6.10.1",
51+
"babel-plugin-transform-object-assign": "^6.8.0",
52+
"babel-plugin-transform-object-rest-spread": "^6.8.0",
53+
"babel-preset-es2015": "^6.9.0",
54+
"chai": "^3.5.0",
55+
"istanbul": "^0.4.3",
56+
"mocha": "^2.5.3",
57+
"standard": "^7.1.2"
4758
}
4859
}

0 commit comments

Comments
 (0)