Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Heroku instance base #204

Open
wants to merge 7 commits into
base: core
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-commonjs, no-inline-comments, immutable/no-mutation, line-comment-position, no-magic-numbers, max-lines */
module.exports = {
parser: "babel-eslint",
parserOptions: {ecmaFeatures: {jsx: true}},
Expand Down
17 changes: 0 additions & 17 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language: node_js
node_js: "6"
node_js: "8"
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
FROM node:7.9.0-alpine
FROM heroku/heroku:16-build

ENV APPLICATION /usr/lib/www
ENV APPLICATION /app
ENV NPM_CONFIG_LOGLEVEL warn
ENV NODE_ENV production
ENV PORT 3000

WORKDIR $APPLICATION

COPY package.json $APPLICATION/

RUN npm install --global npm5
RUN npm5 install

COPY source/ $APPLICATION/source
COPY .babelrc $APPLICATION/
COPY gulpfile.js $APPLICATION/

RUN npm run build
RUN wget -q -O /tmp/heroku-buildpack-nodejs-master.zip https://github.com/heroku/heroku-buildpack-nodejs/archive/master.zip
RUN unzip -q /tmp/heroku-buildpack-nodejs-master.zip -d /tmp/
RUN /tmp/heroku-buildpack-nodejs-master/bin/detect $APPLICATION && /tmp/heroku-buildpack-nodejs-master/bin/compile $APPLICATION/ /tmp

EXPOSE $PORT

Expand Down
8 changes: 0 additions & 8 deletions LICENSE.md

This file was deleted.

14 changes: 7 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ const GZIP = {
}


gulp.task("build:@lacqueristas", () => {
const destination = join(DESINATION, "@lacqueristas")
gulp.task("build:@internal", () => {
const destination = join(DESINATION, "@internal")

return gulp.src([
"./source/@lacqueristas/**/*.js",
"./source/@internal/**/*.js",
])
.pipe(gulpChanged(destination))
.pipe(gulpBabel())
.pipe(gulpSize({
title: "@lacqueristas",
title: "@internal",
showFiles: true,
}))
.pipe(gulp.dest(destination))
})

gulp.task("build:server", ["build:@lacqueristas"], () => {
gulp.task("build:server", ["build:@internal"], () => {
const destination = join(DESINATION, "server")

return gulp.src([
Expand Down Expand Up @@ -152,8 +152,8 @@ gulp.task("build:fonts", () => {
.pipe(gulp.dest(destination))
})

gulp.task("build:build", ["build:server", "build:client"])
gulp.task("build:watch", ["build:server", "build:client"], () => {
gulp.task("build:all", ["build:server", "build:client"])
gulp.task("watch:all", ["build:server", "build:client"], () => {
gulp.watch("./source/server/**/*", ["build:server"])
gulp.watch("./source/client/**/*", ["build:client"])
})
Loading