mirror of https://github.com/status-im/codimd.git
commit
f09b317e63
|
@ -1,5 +1,4 @@
|
|||
node_modules
|
||||
package-lock.json
|
||||
composer.phar
|
||||
composer.lock
|
||||
.env.*.php
|
||||
|
|
|
@ -7,7 +7,7 @@ node_js:
|
|||
- "12"
|
||||
|
||||
dist: xenial
|
||||
cache: yarn
|
||||
cache: npm
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
@ -19,8 +19,8 @@ matrix:
|
|||
- node_js: "12"
|
||||
|
||||
script:
|
||||
- yarn test:ci
|
||||
- yarn build
|
||||
- npm run test:ci
|
||||
- npm run build
|
||||
|
||||
jobs:
|
||||
include:
|
||||
|
|
10
bin/setup
10
bin/setup
|
@ -8,12 +8,11 @@ if [ -d .git ]; then
|
|||
cd "$(git rev-parse --show-toplevel)"
|
||||
fi
|
||||
|
||||
if ! type yarn > /dev/null
|
||||
if ! type npm > /dev/null
|
||||
then
|
||||
cat << EOF
|
||||
yarn is not installed, please install Node.js, npm and yarn.
|
||||
npm is not installed, please install Node.js and npm.
|
||||
Read more on Node.js official website: https://nodejs.org
|
||||
And for yarn package manager at: https://yarnpkg.com/en/
|
||||
Setup will not be run
|
||||
EOF
|
||||
exit 0
|
||||
|
@ -29,14 +28,13 @@ if [ ! -f .sequelizerc ]; then
|
|||
fi
|
||||
|
||||
echo "install packages"
|
||||
yarn install --pure-lockfile
|
||||
yarn install --production=false --pure-lockfile
|
||||
npm install
|
||||
|
||||
cat << EOF
|
||||
|
||||
|
||||
Edit the following config file to setup CodiMD server and client.
|
||||
Read more info at https://github.com/hackmdio/codimd#configuration-files
|
||||
Read more info at https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-configuration
|
||||
|
||||
* config.json -- CodiMD config
|
||||
* .sequelizerc -- db config
|
||||
|
|
|
@ -5,14 +5,13 @@ COPY --chown=hackmd:hackmd . .
|
|||
RUN set -xe && \
|
||||
git reset --hard && \
|
||||
git clean -fx && \
|
||||
yarn install && \
|
||||
yarn build && \
|
||||
yarn install --production=true && \
|
||||
npm install && \
|
||||
npm run build && \
|
||||
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 \
|
||||
package-lock.json 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.6
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue