Skip to content

Commit

Permalink
🎉 Initialize template
Browse files Browse the repository at this point in the history
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
  • Loading branch information
madmath03 committed May 20, 2020
1 parent c528584 commit 78ca832
Show file tree
Hide file tree
Showing 48 changed files with 143 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test_patterns = [
]

exclude_patterns = [
"erpnext_template/patches/**",
"recod_erpnext_design/patches/**",
"*.min.js"
]

Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locale
*.egg-info
dist/
build/
erpnext_template/docs/current
recod_erpnext_design/docs/current
.vscode
.idea/
*.iml
Expand Down
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ERPNext configuration
########################################

ERPNEXT_HOME=/srv/erpnext_template/frappe
ERPNEXT_HOME=/srv/recod_erpnext_design/frappe

ERPNEXT_SITE=localhost

Expand All @@ -20,5 +20,5 @@ ERPNEXT_DB_NAME=erpnext
ERPNEXT_DB_PWD=erpnext_password

# Local development configuration
IMAGE_NAME=docker-erpnext:erpnext_template-dev
FRAPPE_APP_TO_TEST=erpnext_template
IMAGE_NAME=docker-erpnext:recod_erpnext_design-dev
FRAPPE_APP_TO_TEST=recod_erpnext_design
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Some key notes before you open a PR:
Also, if you're new here
- Contribution Guide => https://github.com/Monogramm/erpnext_template/blob/master/CONTRIBUTING.md
- Contribution Guide => https://github.com/Monogramm/recod_erpnext_design/blob/master/CONTRIBUTING.md
-->

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locale
*.egg-info
dist/
build/
erpnext_template/docs/current
recod_erpnext_design/docs/current
.vscode
.idea/
*.iml
Expand Down Expand Up @@ -193,3 +193,5 @@ typings/
# Frappe
public/
services/

recod_erpnext_design/www/
4 changes: 2 additions & 2 deletions .gitmoji-changelogrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project": {
"name": "erpnext_template",
"description": "TODO_APP_DESCRIPTION",
"name": "recod_erpnext_design",
"description": "ERPNext application to provide new sample print formats and overall design for ERPNext.",
"version": "0.0.1"
}
}
27 changes: 19 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ before_install:
- export TAG=travis
- export VCS_REF=`git rev-parse --short HEAD`
- export BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
- export IMAGE_NAME=docker-erpnext-template
- export IMAGE_NAME=docker-recod-erpnext-design
- export home=$(pwd)
- export travis_dir="${home}/.travis"
- export BUILD_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}
- export BUILD_URL=https://github.com/${TRAVIS_PULL_REQUEST_SLUG:-${TRAVIS_REPO_SLUG}}
- export BUILD_APP=erpnext_template
- export BUILD_APP=recod_erpnext_design

install:
- echo "Changing to travis test directory ($travis_dir)"
Expand Down Expand Up @@ -78,7 +78,7 @@ after_script:
- sudo pip install python-coveralls
# Create same directory path as docker test execution
- sudo mkdir -p '/home/frappe/frappe-bench/apps'
- sudo ln -sf "$home" '/home/frappe/frappe-bench/apps/erpnext_template'
- sudo ln -sf "$home" '/home/frappe/frappe-bench/apps/recod_erpnext_design'
# Copy and convert coverage to XML format
- cp '/srv/erpnext/frappe/sites/.coverage' .coverage
- coverage xml
Expand All @@ -100,11 +100,16 @@ jobs:
- env: VERSION=develop VARIANT=debian DATABASE=postgres
- env: VERSION=develop VARIANT=debian-slim DATABASE=mariadb
- env: VERSION=develop VARIANT=debian-slim DATABASE=postgres
- env: VERSION=12 VARIANT=alpine DATABASE=postgres
- env: VERSION=12 VARIANT=debian DATABASE=postgres
- env: VERSION=12 VARIANT=debian-slim DATABASE=postgres
# FIXME For some reason, apt-get missing in base image!!
- env: VERSION=13 VARIANT=debian-slim DATABASE=postgres
- env: VERSION=13 VARIANT=alpine DATABASE=mariadb
- env: VERSION=13 VARIANT=alpine DATABASE=postgres
- env: VERSION=13 VARIANT=debian DATABASE=mariadb
- env: VERSION=13 VARIANT=debian DATABASE=postgres
- env: VERSION=13 VARIANT=debian-slim DATABASE=mariadb
- env: VERSION=13 VARIANT=debian-slim DATABASE=postgres
- env: VERSION=10 VARIANT=alpine DATABASE=mariadb
- env: VERSION=10 VARIANT=debian DATABASE=mariadb
- env: VERSION=10 VARIANT=debian-slim DATABASE=mariadb

env: # Environments
- VERSION=develop VARIANT=alpine DATABASE=mariadb
Expand All @@ -124,4 +129,10 @@ env: # Environments
- VERSION=12 VARIANT=debian DATABASE=mariadb
- VERSION=12 VARIANT=debian DATABASE=postgres
- VERSION=12 VARIANT=debian-slim DATABASE=mariadb
- VERSION=12 VARIANT=debian-slim DATABASE=postgres
- VERSION=13 VARIANT=debian-slim DATABASE=postgres
- VERSION=13 VARIANT=alpine DATABASE=mariadb
- VERSION=13 VARIANT=alpine DATABASE=postgres
- VERSION=13 VARIANT=debian DATABASE=mariadb
- VERSION=13 VARIANT=debian DATABASE=postgres
- VERSION=13 VARIANT=debian-slim DATABASE=mariadb
- VERSION=13 VARIANT=debian-slim DATABASE=postgres
2 changes: 1 addition & 1 deletion .travis/docker-compose.mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ services:
- DOCKER_DB_ALLOWED_HOSTS=
- DOCKER_APPS_TIMEOUT=900
# Frappe setup
- FRAPPE_APP_INIT=erpnext erpnext_template
- FRAPPE_APP_INIT=erpnext recod_erpnext_design
- FRAPPE_DEFAULT_PROTOCOL=http://
- FRAPPE_DEFAULT_SITE=${ERPNEXT_SITE}
- FRAPPE_LOGGING=1
Expand Down
2 changes: 1 addition & 1 deletion .travis/docker-compose.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
# Container setup
- NODE_TYPE=app
# Frappe setup
- FRAPPE_APP_INIT=erpnext erpnext_template
- FRAPPE_APP_INIT=erpnext recod_erpnext_design
- FRAPPE_DEFAULT_PROTOCOL=http://
- FRAPPE_DEFAULT_SITE=${ERPNEXT_SITE}
- FRAPPE_LOGGING=1
Expand Down
2 changes: 1 addition & 1 deletion .travis/docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ echo 'Docker tests successful'
# https://frappe.io/docs/user/en/testing
################################################################################

FRAPPE_APP_TO_TEST=erpnext_template
FRAPPE_APP_TO_TEST=recod_erpnext_design

echo "Preparing Frappe application '${FRAPPE_APP_TO_TEST}' tests..."

Expand Down
24 changes: 12 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@

### Added

- 🎉 Initial commit \[[9801fb4](https://github.com/Monogramm/erpnext_template/commit/9801fb450678c0a1f248f6cbf561a9426cab0f5f)]
- 🎉 Initial commit \[[9801fb4](https://github.com/Monogramm/recod_erpnext_design/commit/9801fb450678c0a1f248f6cbf561a9426cab0f5f)]

### Changed

- 💄 Change format for app name in doc \[[1337f4c](https://github.com/Monogramm/erpnext_template/commit/1337f4c07c491f0f04b7ebfe22c96a4ede84f3fd)]
- 🍱 Change icon for Docs section in README \[[5adb9d4](https://github.com/Monogramm/erpnext_template/commit/5adb9d4c56cc8e427cc77510b45eff01d0a9d12b)]
- 💄 Change format for app name in doc \[[1337f4c](https://github.com/Monogramm/recod_erpnext_design/commit/1337f4c07c491f0f04b7ebfe22c96a4ede84f3fd)]
- 🍱 Change icon for Docs section in README \[[5adb9d4](https://github.com/Monogramm/recod_erpnext_design/commit/5adb9d4c56cc8e427cc77510b45eff01d0a9d12b)]

### Security

- 🔒 Upgrade minimist \[[e100935](https://github.com/Monogramm/erpnext_template/commit/e100935077d117e780f4656f2ff5147bbab24c7d)]
- 🔒 Upgrade minimist \[[e100935](https://github.com/Monogramm/recod_erpnext_design/commit/e100935077d117e780f4656f2ff5147bbab24c7d)]

### Miscellaneous

- Feature/new branch ([#1](https://github.com/Monogramm/erpnext_template/issues/1)) \[[694fe5c](https://github.com/Monogramm/erpnext_template/commit/694fe5c032af529aa960b00513bd9040715edf2c)]
- Merge pull request [#2](https://github.com/Monogramm/erpnext_template/issues/2) from codacy-badger/codacy-badge \[[3b6fa9a](https://github.com/Monogramm/erpnext_template/commit/3b6fa9a46a252511da5ae27b49ee5e527c40c0bb)]
- Add Codacy badge \[[6b1cea6](https://github.com/Monogramm/erpnext_template/commit/6b1cea6e61d88c8d44f0ab7fd9004e51d8c364de)]
- 📝 Remove unused info in PR template \[[3ce39a6](https://github.com/Monogramm/erpnext_template/commit/3ce39a659e2744801753168469e63b595c454126)]
- 📝 Update docs and add badge \[[3e03e6b](https://github.com/Monogramm/erpnext_template/commit/3e03e6bf472e93cc0204965113bdcb4bb9a4660d)]
- Set theme jekyll-theme-cayman \[[997edd0](https://github.com/Monogramm/erpnext_template/commit/997edd01d6212271460c49a8b72f4605241a55e3)]
- 📝 Documentation directory \[[19b36b7](https://github.com/Monogramm/erpnext_template/commit/19b36b77d804ae299d4cd2e0eac398d36e12f127)]
- 📝 Add changelog \[[821a537](https://github.com/Monogramm/erpnext_template/commit/821a53726fc81b88b534e3a55e6c972fa7793a52)]
- Feature/new branch ([#1](https://github.com/Monogramm/recod_erpnext_design/issues/1)) \[[694fe5c](https://github.com/Monogramm/recod_erpnext_design/commit/694fe5c032af529aa960b00513bd9040715edf2c)]
- Merge pull request [#2](https://github.com/Monogramm/recod_erpnext_design/issues/2) from codacy-badger/codacy-badge \[[3b6fa9a](https://github.com/Monogramm/recod_erpnext_design/commit/3b6fa9a46a252511da5ae27b49ee5e527c40c0bb)]
- Add Codacy badge \[[6b1cea6](https://github.com/Monogramm/recod_erpnext_design/commit/6b1cea6e61d88c8d44f0ab7fd9004e51d8c364de)]
- 📝 Remove unused info in PR template \[[3ce39a6](https://github.com/Monogramm/recod_erpnext_design/commit/3ce39a659e2744801753168469e63b595c454126)]
- 📝 Update docs and add badge \[[3e03e6b](https://github.com/Monogramm/recod_erpnext_design/commit/3e03e6bf472e93cc0204965113bdcb4bb9a4660d)]
- Set theme jekyll-theme-cayman \[[997edd0](https://github.com/Monogramm/recod_erpnext_design/commit/997edd01d6212271460c49a8b72f4605241a55e3)]
- 📝 Documentation directory \[[19b36b7](https://github.com/Monogramm/recod_erpnext_design/commit/19b36b77d804ae299d4cd2e0eac398d36e12f127)]
- 📝 Add changelog \[[821a537](https://github.com/Monogramm/recod_erpnext_design/commit/821a53726fc81b88b534e3a55e6c972fa7793a52)]
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

First of all, **thank you** for contributing, **you are awesome**!

You can report bugs or request new features by creating an [issue](https://github.com/Monogramm/erpnext_template/issues), or submit a [pull request](https://github.com/Monogramm/erpnext_template/pulls) with your contribution.
You can report bugs or request new features by creating an [issue](https://github.com/Monogramm/recod_erpnext_design/issues), or submit a [pull request](https://github.com/Monogramm/recod_erpnext_design/pulls) with your contribution.

Here are a few rules to follow in order to ease code reviews and discussions before maintainers accept and merge your work.

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker-erpnext:erpnext_template-dev
FROM docker-erpnext:recod_erpnext_design-dev

ADD .travis/docker_test.sh /docker_test.sh

Expand Down
24 changes: 12 additions & 12 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ include *.json
include *.md
include *.py
include *.txt
recursive-include erpnext_template *.css
recursive-include erpnext_template *.csv
recursive-include erpnext_template *.html
recursive-include erpnext_template *.ico
recursive-include erpnext_template *.js
recursive-include erpnext_template *.json
recursive-include erpnext_template *.md
recursive-include erpnext_template *.png
recursive-include erpnext_template *.py
recursive-include erpnext_template *.svg
recursive-include erpnext_template *.txt
recursive-exclude erpnext_template *.pyc
recursive-include recod_erpnext_design *.css
recursive-include recod_erpnext_design *.csv
recursive-include recod_erpnext_design *.html
recursive-include recod_erpnext_design *.ico
recursive-include recod_erpnext_design *.js
recursive-include recod_erpnext_design *.json
recursive-include recod_erpnext_design *.md
recursive-include recod_erpnext_design *.png
recursive-include recod_erpnext_design *.py
recursive-include recod_erpnext_design *.svg
recursive-include recod_erpnext_design *.txt
recursive-exclude recod_erpnext_design *.pyc
46 changes: 18 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
[![License: AGPL v3][uri_license_image]][uri_license]
[![Docs](https://img.shields.io/badge/Docs-Github%20Pages-blue)](https://monogramm.github.io/erpnext_template/)
[![Docs](https://img.shields.io/badge/Docs-Github%20Pages-blue)](https://monogramm.github.io/recod_erpnext_design/)
[![gitmoji-changelog](https://img.shields.io/badge/Changelog-gitmoji-blue.svg)](https://github.com/frinyvonnick/gitmoji-changelog)
[![Managed with Taiga.io](https://img.shields.io/badge/managed%20with-TAIGA.io-709f14.svg)](https://tree.taiga.io/project/monogrammbot-monogrammerpnext_template/ "Managed with Taiga.io")
[![Build Status](https://travis-ci.org/Monogramm/erpnext_template.svg)](https://travis-ci.org/Monogramm/erpnext_template)
[![Coverage Status](https://coveralls.io/repos/github/Monogramm/erpnext_template/badge.svg?branch=master)](https://coveralls.io/github/Monogramm/erpnext_template?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/347f10fa884446c492b6ba8cd7f4d7fc)](https://app.codacy.com/gh/Monogramm/erpnext_template?utm_source=github.com&utm_medium=referral&utm_content=Monogramm/erpnext_template&utm_campaign=Badge_Grade_Dashboard)
[![Managed with Taiga.io](https://img.shields.io/badge/managed%20with-TAIGA.io-709f14.svg)](https://tree.taiga.io/project/monogrammbot-monogrammrecod_erpnext_design/ "Managed with Taiga.io")
[![Build Status](https://travis-ci.org/Monogramm/recod_erpnext_design.svg)](https://travis-ci.org/Monogramm/recod_erpnext_design)
[![Coverage Status](https://coveralls.io/repos/github/Monogramm/recod_erpnext_design/badge.svg?branch=master)](https://coveralls.io/github/Monogramm/recod_erpnext_design?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/347f10fa884446c492b6ba8cd7f4d7fc)](https://app.codacy.com/gh/Monogramm/recod_erpnext_design?utm_source=github.com&utm_medium=referral&utm_content=Monogramm/recod_erpnext_design&utm_campaign=Badge_Grade_Dashboard)
<!--
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/273679c703bb4f02ba1aacb350f7b1c5)](https://www.codacy.com/gh/Monogramm/erpnext_template?utm_source=github.com&utm_medium=referral&utm_content=Monogramm/erpnext_template&utm_campaign=Badge_Coverage)
[![codecov](https://codecov.io/gh/Monogramm/erpnext_template/branch/master/graph/badge.svg)](https://codecov.io/gh/Monogramm/erpnext_template)
[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/Monogramm/erpnext_template/?ref=repository-badge)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/273679c703bb4f02ba1aacb350f7b1c5)](https://www.codacy.com/gh/Monogramm/recod_erpnext_design?utm_source=github.com&utm_medium=referral&utm_content=Monogramm/recod_erpnext_design&utm_campaign=Badge_Coverage)
[![codecov](https://codecov.io/gh/Monogramm/recod_erpnext_design/branch/master/graph/badge.svg)](https://codecov.io/gh/Monogramm/recod_erpnext_design)
[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/Monogramm/recod_erpnext_design/?ref=repository-badge)
-->

<!--
Template variables to replace in ALL files:
* ERPNext Template: Name of the application
* erpnext_template: GitHub slug of the original application
* TODO_APP_DESCRIPTION: Uppercase value of the GitHub slug
* TODO_APP_USAGE: Application description
-->

## ERPNext Template
## Recod ERPNext Design

> :alembic: TODO_APP_DESCRIPTION
> :alembic: ERPNext application to provide new sample print formats and overall design for ERPNext.
## :blue_book: Docs

See GitHub Pages at [monogramm.github.io/erpnext_template](https://monogramm.github.io/erpnext_template/).
See GitHub Pages at [monogramm.github.io/recod_erpnext_design](https://monogramm.github.io/recod_erpnext_design/).

## :chart_with_upwards_trend: Changes

Expand All @@ -37,23 +27,23 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## :bookmark: Roadmap

See [Taiga.io](https://tree.taiga.io/project/monogrammbot-monogrammerpnext_template/ "Taiga.io monogrammbot-monogrammerpnext_template")
See [Taiga.io](https://tree.taiga.io/project/monogrammbot-monogrammrecod_erpnext_design/ "Taiga.io monogrammbot-monogrammrecod_erpnext_design")

## :construction: Install

**Install Frappe application**

```sh
bench get-app https://github.com/Monogramm/erpnext_template
bench install-app erpnext_template
bench get-app https://github.com/Monogramm/recod_erpnext_design
bench install-app recod_erpnext_design
```

Check [Frappe Install](https://github.com/frappe/frappe/wiki/The-Hitchhiker%27s-Guide-to-Installing-Frappe-on-Linux) for more details.

## :white_check_mark: Run tests

```sh
bench run-tests --app erpnext_template
bench run-tests --app recod_erpnext_design
```

Check [Frappe Unit Testing](https://frappe.io/docs/user/en/guides/automated-testing/unit-testing) for more details.
Expand All @@ -64,12 +54,12 @@ When installing Frappe app, the following python requirements will be installed:

How to use this application:

TODO_APP_USAGE
Use Recod print formats, website themes, etc...

<!--
[TODO] If project is deployed to DockerHub:
## :whale: Supported tags
[Dockerhub monogramm/erpnext_template](https://hub.docker.com/r/monogramm/erpnext_template/)
[Dockerhub monogramm/recod_erpnext_design](https://hub.docker.com/r/monogramm/recod_erpnext_design/)
* `latest`
-->

Expand All @@ -87,7 +77,7 @@ TODO_APP_USAGE

## :handshake: Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/Monogramm/erpnext_template/issues).
Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/Monogramm/recod_erpnext_design/issues).
[Check the contributing guide](./CONTRIBUTING.md).<br />

## :thumbsup: Show your support
Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# **erpnext_template** Documentation site
# **Recod ERPNext Design** Documentation site

This directory contains the code for the **ERPNext Template** docs site, [monogramm.github.io/erpnext_template](https://monogramm.github.io/erpnext_template).
This directory contains the code for the **Recod ERPNext Design** docs site, [monogramm.github.io/recod_erpnext_design](https://monogramm.github.io/recod_erpnext_design).

References:

- [Publish Your Project Documentation with GitHub Pages](https://github.blog/2016-08-22-publish-your-project-documentation-with-github-pages/)

## Contributing

For information about contributing, see the [Contributing page](https://github.com/Monogramm/erpnext_template/blob/master/CONTRIBUTING.md).
For information about contributing, see the [Contributing page](https://github.com/Monogramm/recod_erpnext_design/blob/master/CONTRIBUTING.md).
Binary file removed erpnext_template/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Empty file.
21 changes: 0 additions & 21 deletions erpnext_template/docs/index.md

This file was deleted.

Empty file.
12 changes: 0 additions & 12 deletions erpnext_template/docs/user/index.md

This file was deleted.

1 change: 0 additions & 1 deletion erpnext_template/modules.txt

This file was deleted.

1 change: 0 additions & 1 deletion erpnext_template/translations/fr.csv

This file was deleted.

1 change: 0 additions & 1 deletion erpnext_template/translations/ru.csv

This file was deleted.

Loading

0 comments on commit 78ca832

Please sign in to comment.