-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
17,376 additions
and
9,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
npm-debug.log | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"] |
Oops, something went wrong.