Skip to content

Commit

Permalink
Merge branch 'release/0.6.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyvion committed Aug 31, 2022
2 parents 4d98ddb + ef350cb commit 41f6336
Show file tree
Hide file tree
Showing 98 changed files with 17,376 additions and 9,906 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
dist
56 changes: 22 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
module.exports = {
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"env": {
"browser": true,
"es6": true
},
"extends": "plugin:flowtype/recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
"tab",
{ "SwitchCase": 1 }
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
}
};
parser: 'babel-eslint',
plugins: ['flowtype'],
env: {
browser: true,
es6: true,
},
extends: 'plugin:flowtype/recommended',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
quotes: ['error', 'double', { avoidEscape: true }],
semi: ['error', 'always'],
},
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: false,
},
},
};
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// prettier.config.js or .prettierrc.js
module.exports = {
tabWidth: 2,
singleQuote: false,
};
50 changes: 50 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM ubuntu:focal

# Set a directory for the app
WORKDIR /app

# Update APT
RUN apt-get update

# Install curl
RUN apt-get install -y curl

# Install node.js v16
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs

# Install build-essentials (required for certain npm packages)
RUN apt-get install -y build-essential

# Install grunt, jsonlint and jshint
RUN npm install -g grunt

# Install latest stable Ruby
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import
RUN curl -sSL https://rvm.io/pkuczynski.asc | gpg --import
RUN curl -sSL https://get.rvm.io | bash -s stable --ruby

# Update Gem
RUN bash -c "source /etc/profile.d/rvm.sh && gem update --system"

# Install compass
RUN bash -c "source /etc/profile.d/rvm.sh && gem install compass"

# Copy over package*.json files
COPY package*.json ./

# Install our NPM dependencies
RUN npm install --legacy-peer-deps

# Preserve package-lock.json
RUN cp package-lock.json package-lock.json.new

# Copy all the files to the container
COPY . .

# Restore package-lock.json
RUN cp package-lock.json.new package-lock.json

# Finally, run the build script on run
ENV grunt_command default
CMD ["bash", "-c", "source /etc/profile.d/rvm.sh && grunt ${grunt_command}"]
Loading

0 comments on commit 41f6336

Please sign in to comment.