Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New setup and design for Rubyconf.co #11

Open
wants to merge 3 commits into
base: master
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
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
["es2015", {"modules": false}],
"es2016",
"stage-2",
"react",
"env"
],
"plugins": [
"react-hot-loader/babel",
"transform-runtime"
]
}
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_automatic_white_space = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py,jsx}]
charset = utf-8

# Tab indentation (no size specified)
[*.{js,jsx}]
indent_style = space
indent_size = 2

# Tab indentation (no size specified)
[*.{sass,scss}]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/__tests__/
libs
src/env.js
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": "airbnb",
"env": {
"browser": true,
"jest": true
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"semi": ["error", "never"],
"indent": 2,
"comma-dangle": ["error", "never"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"arrow-body-style": 0,
"max-len": 0,
"class-methods-use-this": 0,
"react/no-unused-prop-types": 0,
"react/forbid-prop-types": 0,
"react/prefer-stateless-function": [0, { "ignorePureComponents": false }],
"react/no-string-refs": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-unescaped-entities": 0,
"consistent-return": 0
}
}
84 changes: 70 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,75 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global

# Ignore bundler config
/.bundle
# Created by https://www.gitignore.io/api/node

# Ignore the build directory
/build
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Ignore cache
/.sass-cache
/.cache
# 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 (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

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

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://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

src/env.js

#public Static
dist
public
doc

# Ignore .DS_store file
.DS_Store
source/Prospectus.pdf
*/.DS_Store
# File Zip
*.zip

1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Change log
All notable changes to this project will be documented in this file.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:latest
MAINTAINER Monoku
RUN mkdir -p /app/user
RUN mkdir -p /app/admin
ADD package.json /app/
ADD admin/package.json /app/admin
RUN cd app && npm install
RUN cd app/admin && npm install
WORKDIR /app/user
8 changes: 0 additions & 8 deletions Gemfile

This file was deleted.

136 changes: 0 additions & 136 deletions Gemfile.lock

This file was deleted.

25 changes: 25 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!groovy

node {
stage 'Checkout'
checkout scm

stage 'Docker setup'
sh 'docker-compose build'
sh 'docker-compose run --rm node rm -Rf public'
sh 'docker-compose run --rm node rm -Rf node_modules'
sh 'docker-compose run --rm node npm run docker-prepare'

stage 'Test'
sh 'echo "where are my tests :("'
sh 'docker-compose run --rm node npm run env'
sh 'docker-compose run --rm node npm run test'
sh 'docker-compose run --rm node npm run build'

stage 'Deploy'
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'test_version' || env.BRANCH_NAME == 'centrumpi' || env.BRANCH_NAME == 'centrumpi_test'){
sh 'cd public && zip -r ../${BUILD_TAG}.zip . && cd .. && scp ${BUILD_TAG}.zip [email protected]:/home/monoku/webapps/monoku/new/public/public/files/'
sh 'curl -X POST -H \'Content-type: application/json\' --data \'{"text":"Nuevo build http://monoku.com/public/files/\'${BUILD_TAG}\'.zip"}\' https://hooks.slack.com/services/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'
sh 'rm -Rf ${BUILD_TAG}.zip'
}
}
1 change: 0 additions & 1 deletion LICENSE.md

This file was deleted.

1 change: 0 additions & 1 deletion Procfile

This file was deleted.

Loading