Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare release 1.4.0
- Loading branch information
Showing
108 changed files
with
10,103 additions
and
2,785 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,14 @@ | ||
.idea | ||
coverage | ||
node_modules/ | ||
|
||
# ignore config files | ||
config.json | ||
.sequelizerc | ||
|
||
# ignore webpack build | ||
public/build | ||
public/views/build | ||
|
||
.nyc_output | ||
coverage/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -27,3 +27,5 @@ public/views/build | |
|
||
public/uploads/* | ||
!public/uploads/.gitkeep | ||
/.nyc_output | ||
/coverage/ |
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,8 +1,9 @@ | ||
var path = require('path'); | ||
const path = require('path') | ||
const config = require('./lib/config') | ||
|
||
module.exports = { | ||
'config': path.resolve('config.json'), | ||
'migrations-path': path.resolve('lib', 'migrations'), | ||
'models-path': path.resolve('lib', 'models'), | ||
'url': 'change this' | ||
} | ||
config: path.resolve('config.json'), | ||
'migrations-path': path.resolve('lib', 'migrations'), | ||
'models-path': path.resolve('lib', 'models'), | ||
url: process.env['CMD_DB_URL'] || config.dbURL | ||
} |
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,41 +1,34 @@ | ||
language: node_js | ||
dist: trusty | ||
|
||
node_js: | ||
- "lts/carbon" | ||
- "lts/dubnium" | ||
- "11" | ||
- "12" | ||
|
||
dist: xenial | ||
cache: yarn | ||
env: | ||
global: | ||
- CXX=g++-4.8 | ||
- YARN_VERSION=1.3.2 | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- node_js: lts/carbon | ||
- node_js: lts/dubnium | ||
allow_failures: | ||
- node_js: "11" | ||
- node_js: "12" | ||
|
||
script: | ||
- yarn test:ci | ||
- yarn build | ||
|
||
jobs: | ||
include: | ||
- env: task=npm-test | ||
node_js: | ||
- 8 | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION" | ||
- export PATH="$HOME/.yarn/bin:$PATH" | ||
- env: task=npm-test | ||
node_js: | ||
- 10 | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION" | ||
- export PATH="$HOME/.yarn/bin:$PATH" | ||
- env: task=ShellCheck | ||
script: | ||
- shellcheck bin/heroku bin/setup | ||
language: generic | ||
- env: task=doctoc | ||
install: npm install doctoc | ||
- stage: doctoc-check | ||
install: npm install -g doctoc | ||
if: type = pull_request OR branch = master | ||
script: | ||
- cp README.md README.md.orig | ||
- npm run doctoc | ||
- diff -q README.md README.md.orig | ||
language: generic | ||
- env: task=json-lint | ||
addons: | ||
apt: | ||
packages: | ||
- jq | ||
script: | ||
- npm run jsonlint | ||
language: generic | ||
node_js: lts/carbon |
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
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
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
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
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
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,23 @@ | ||
FROM hackmdio/buildpack:1.0.4 as BUILD | ||
|
||
COPY --chown=hackmd:hackmd . . | ||
|
||
RUN set -xe && \ | ||
git reset --hard && \ | ||
git clean -fx && \ | ||
yarn install && \ | ||
yarn build && \ | ||
yarn install --production=true && \ | ||
cp ./deployments/docker-entrypoint.sh ./ && \ | ||
cp .sequelizerc.example .sequelizerc && \ | ||
rm -rf .git .gitignore .travis.yml .dockerignore .editorconfig .babelrc .mailmap .sequelizerc.example \ | ||
test docs contribute \ | ||
yarn.lock webpack.prod.js webpack.htmlexport.js webpack.dev.js webpack.common.js \ | ||
config.json.example README.md CONTRIBUTING.md AUTHORS | ||
|
||
FROM hackmdio/runtime:1.0.4 | ||
USER hackmd | ||
WORKDIR /home/hackmd/app | ||
COPY --chown=1500:1500 --from=BUILD /home/hackmd/app . | ||
EXPOSE 3000 | ||
ENTRYPOINT ["/home/hackmd/app/docker-entrypoint.sh"] |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
CURRENT_DIR=$(dirname "$BASH_SOURCE") | ||
|
||
docker build -t hackmdio/codimd -f "$CURRENT_DIR/Dockerfile" "$CURRENT_DIR/.." |
Oops, something went wrong.