Skip to content

Commit

Permalink
Merge pull request #7 from luckymarmot/fix-es6
Browse files Browse the repository at this point in the history
Fixes + ES6
  • Loading branch information
mittsh authored Apr 23, 2018
2 parents b3a37b7 + 818fbb0 commit 620a136
Show file tree
Hide file tree
Showing 22 changed files with 4,833 additions and 311 deletions.
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
'presets': [
'es2015',
'stage-0',
'stage-1',
'stage-2',
'stage-3'
],
'plugins': ['transform-decorators-legacy']
}
61 changes: 59 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
.DS_Store
node_modules/
### Build Folder ###

build/

### Node ###
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules


### OSX ###
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v8.11.1
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
language: node_js
node_js:
- '0.10'
before_install:
- npm install coffee-script
before_script:
- ./node_modules/.bin/cake archive
script:
- ./node_modules/.bin/cake test
- make archive
deploy:
provider: releases
api_key:
secure: gtnhnUR1GyzdpKvqHNGq96QSseTrchox/qcQCXqynhS9fop+vO4d+elsgo0Uuab3ttpZzbfj7FM/UEeRoezBJz+flVmTxwmf4LX0rZA+z2CJzZ5hd0a5BjVMWyztCap8tHgjPsJrhvrkYlD7RE9JbeNmDLuUEGWtCAvXWEzXWVM=
secure: tpnBaWzt7VQwygf61Y/lbm54bpC9DPFX64QriH8J5dw84BheqLR2GEBjXOcwcehLErViJROL89P8SlIPR4xQYDDXtbOm1jfyMz8M4ecWXO1uVosG6+hkGb24H+wQuw+bAU9TNfNB0uwVGVjv9ZaUfQmLSiGKtG+DOzZ0rFb8QaQ=
file: build/PHPcURLCodeGenerator.zip
skip_cleanup: true
on:
Expand Down
98 changes: 0 additions & 98 deletions Cakefile

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Paw Inc.
Copyright (c) 2014-2018 Paw Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
identifier=com.luckymarmot.PawExtensions.PHPcURLCodeGenerator
extensions_dir=$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/Application Support/com.luckymarmot.Paw/Extensions/

all: build

build:
./node_modules/.bin/webpack --bail --display-error-details
cp README.md LICENSE ./build/$(identifier)/

install: clean build
mkdir -p "$(extensions_dir)$(identifier)/"
cp -r ./build/$(identifier)/* "$(extensions_dir)$(identifier)/"

archive: clean build
cd ./build/; zip -r PHPcURLCodeGenerator.zip "$(identifier)/"

clean:
rm -Rf ./build
120 changes: 0 additions & 120 deletions PHPcURLCodeGenerator.coffee

This file was deleted.

27 changes: 21 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
{
"name": "Paw-PHPcURLCodeGenerator",
"version": "1.0.2",
"version": "1.1.0",
"main": "src/PHPcURLCodeGenerator.js",
"license": "MIT",
"homepage": "https://github.com/luckymarmot/Paw-PHPcURLCodeGenerator",
"devDependencies": {
"coffee-script": "latest",
"mkdirp": "~0.5.0",
"ncp": "~1.0.1"
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "6.3.13",
"babel-preset-stage-1": "6.3.13",
"babel-preset-stage-2": "6.3.13",
"babel-preset-stage-3": "6.3.13",
"path": "^0.12.7",
"raw-loader": "^0.5.1",
"webpack": "^4.6.0",
"webpack-cli": "^2.0.15"
},
"dependencies": {
"mustache": "~0.8.2"
"scripts": {
"build": "./node_modules/.bin/webpack --bail --display-error-details"
},
"repository": {
"type": "git",
"url": "git@github.com:luckymarmot/Paw-PHPcURLCodeGenerator.git"
},
"dependencies": {
"mustache": "~2.3.0"
}
}
Loading

0 comments on commit 620a136

Please sign in to comment.