Skip to content
Permalink
Browse files

refactor package

  • Loading branch information...
giuem committed Feb 10, 2019
1 parent a6457e2 commit a2c7dd276322fe1d0e8abdf4918a678bfd1588ea
@@ -15,6 +15,3 @@ build/

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

node_modules/
*.log
@@ -1,4 +1,4 @@
.PHONY: build clean
.PHONY: build clean test

GOCMD=go
GOBUILD=$(GOCMD) build
@@ -7,11 +7,14 @@ GOTEST=$(GOCMD) test
BINARY_NAME=ga-proxy
OUTPUT_DIR=build

all: build
all: test build

build:
$(GOBUILD) -o $(OUTPUT_DIR)/$(BINARY_NAME) -v

clean:
$(GOCLEAN)
rm -rf $(OUTPUT_DIR)
rm -rf $(OUTPUT_DIR)

test:
$(GOTEST) -v ./...
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,87 @@

# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

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

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

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

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# End of https://www.gitignore.io/api/node
File renamed without changes.
File renamed without changes.
@@ -5,17 +5,17 @@ const rename = require("gulp-rename");

function build() {
return gulp
.src("./js/src/**/*.js")
.src("./src/**/*.js")
.pipe(buble())
.pipe(gulp.dest("./js/dist"))
.pipe(gulp.dest("./dist"))
.pipe(
uglify({
mangle: true,
ie8: true
})
)
.pipe(rename({ suffix: ".min" }))
.pipe(gulp.dest("./js/dist"));
.pipe(gulp.dest("./dist"));
}

exports.build = build;
@@ -7,9 +7,12 @@
"license": "MIT",
"scripts": {
"build": "gulp build",
"lint": "eslint ./js/src/**/*.js"
"test": "npm run lint",
"lint": "eslint ./src/**/*.js",
"size": "bundlesize"
},
"devDependencies": {
"bundlesize": "^0.17.1",
"eslint": "^5.13.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-prettier": "^3.0.1",
@@ -21,5 +24,11 @@
},
"resolutions": {
"gulp-buble/buble": "0.19.6"
}
},
"bundlesize": [
{
"path": "./dist/*.min.js",
"maxSize": "1kb"
}
]
}
File renamed without changes.
Oops, something went wrong.

0 comments on commit a2c7dd2

Please sign in to comment.
You can’t perform that action at this time.