Skip to content

[WIP] cookiecutter for the boilerplate #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
19a4c47
Refactor to a cookie cutter.
T4rk1n Sep 26, 2018
7d4e1cc
Fix .gitignore
T4rk1n Sep 26, 2018
76f2d9f
Support dev packages.
T4rk1n Sep 26, 2018
26e59ef
Add requirements file.
T4rk1n Sep 26, 2018
f2fb3e7
Add component_name cookiecutter variable.
T4rk1n Sep 27, 2018
808c13c
Update README
T4rk1n Sep 27, 2018
eb3164d
Add publish_on_npm cookiecutter option to only serve locally.
T4rk1n Sep 27, 2018
1938ab9
Use SPDX license identifiers.
T4rk1n Sep 27, 2018
902a608
Rename slug to shortname, add verify step.
T4rk1n Sep 27, 2018
d35d4b5
Update readme.
T4rk1n Sep 27, 2018
3e70693
Add install dependencies step.
T4rk1n Sep 28, 2018
8e05aab
Different root README.
T4rk1n Sep 29, 2018
634ae3c
Remove virtualenv install from hook.
T4rk1n Oct 1, 2018
802cb73
Fix extra space in package.json license.
T4rk1n Oct 1, 2018
10e0679
Add warning if install_dependencies is false.
T4rk1n Oct 1, 2018
19727fc
Add package.json generation test.
T4rk1n Oct 1, 2018
cf97743
Fix npm install of generated project.
T4rk1n Oct 1, 2018
11cef25
Update root readme.
T4rk1n Oct 1, 2018
c374a48
Add node .gitignore template.
T4rk1n Oct 1, 2018
366d394
Renamed author info.
T4rk1n Oct 1, 2018
8d8db1c
Update generated readme.
T4rk1n Oct 1, 2018
75cd2c9
Fix virtualenv creation for linux.
T4rk1n Oct 2, 2018
a6d14e8
Fix webpack configs.
T4rk1n Oct 2, 2018
fb0478e
Add install test, fix test_generate.
T4rk1n Oct 2, 2018
d829ec6
Add pytest-selenium tests requirements.
T4rk1n Oct 2, 2018
498621a
Fix test_generate.
T4rk1n Oct 2, 2018
876e728
Add dash-html-components/dcc to tests requirements.
T4rk1n Oct 2, 2018
42ac52e
Add callback check to install test.
T4rk1n Oct 2, 2018
15f8adf
Get the test input by xpath.
T4rk1n Oct 2, 2018
345df18
Clear the input before sending keys.
T4rk1n Oct 2, 2018
ddc22fa
Remove lib from gitignore.
T4rk1n Oct 2, 2018
63f40d2
Add default props to react component template.
T4rk1n Oct 3, 2018
ec9d233
Fix generated init external_url.
T4rk1n Oct 3, 2018
035bf17
Replace unittest by pytest-dash.
T4rk1n Oct 3, 2018
7b83768
Use pytest-dash in install test.
T4rk1n Oct 4, 2018
291a3e6
Use venv module instead of virtualenv if python >= 3.3
T4rk1n Oct 4, 2018
ee171be
Add python 2.7 circle tests.
T4rk1n Oct 4, 2018
4ff34fa
Fix circle venv.
T4rk1n Oct 4, 2018
161b660
Install virtualenv on circle container.
T4rk1n Oct 4, 2018
6615b5f
Fix circle cache.
T4rk1n Oct 4, 2018
1b45037
Validate project_shortname.
T4rk1n Oct 5, 2018
65e2cc9
Display message to install virtualenv if not found on python 2.
T4rk1n Oct 5, 2018
cc3260c
Default version -> 0.0.1
T4rk1n Oct 5, 2018
8d684d1
Add warnings for missing descriptions.
T4rk1n Oct 5, 2018
0988a63
Validate js/css dist for files in the package dir, run on prepublish.
T4rk1n Oct 5, 2018
f3630c1
Ignore scripts when install npm deps.
T4rk1n Oct 5, 2018
4e824a9
:camel: assets check.
T4rk1n Oct 6, 2018
34e6b9f
Remove unused imports from demo.
T4rk1n Oct 11, 2018
cb37408
Remove unused from test, add comments.
T4rk1n Oct 11, 2018
1acb39d
Add pytest-dash usage comment in the generate test.
T4rk1n Oct 11, 2018
d5f1bc3
Replace test command.
T4rk1n Oct 11, 2018
08bddf0
Update generated readme from #18.
T4rk1n Oct 15, 2018
cfeaddc
Add more info to the cookiecutters variable in root readme.
T4rk1n Oct 15, 2018
6a65741
Interpolate missing project_name.
T4rk1n Oct 16, 2018
6bf9ca4
Remove version interpolations, start at 0.0.1
T4rk1n Oct 16, 2018
e468ff4
lib->library
T4rk1n Oct 16, 2018
a0cdd16
Move more resources to root readme.
T4rk1n Oct 16, 2018
ea65800
Add getting started, add generated CONTRIBUTING.md
T4rk1n Oct 16, 2018
ab9263d
Improve readme cookiecutter variables explanation.
T4rk1n Oct 16, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 4 additions & 44 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,12 @@
version: 2

jobs:
"node":
docker:
- image: circleci/node:8.11.3

steps:
- checkout

- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}

- run:
name: Install package.json
command: npm i

- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- node_modules

- run:
name: Run eslint
command: ./node_modules/.bin/eslint src
when: always


"python-3.6":
docker:
- image: circleci/python:3.6-stretch-browsers
- image: circleci/python:3.6-stretch-node-browsers

environment:
PERCY_ENABLED: False
PERCY_ENABLE: 0

steps:
- checkout
Expand All @@ -56,24 +31,10 @@ jobs:
- "venv"

- run:
name: Run pylint
command: |
. venv/bin/activate
pylint usage.py tests
when: always

- run:
name: Run flake8
command: |
. venv/bin/activate
flake8 usage.py tests
when: always

- run:
name: Integration Tests
name: Generations tests
command: |
. venv/bin/activate
python -m unittest tests.test_render
pytest tests
when: always


Expand All @@ -82,4 +43,3 @@ workflows:
build:
jobs:
- "python-3.6"
- "node"
220 changes: 193 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,203 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# dependencies
/node_modules
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# production
/build
/demo
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# testing
/coverage
# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# CMake
cmake-build-*/

# virtualenv
vv
venv
# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# python
*.pyc
# File-based project format
*.iws

# builds
my_dash_component.egg-info
dist
*__pycache__*
# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
### SublimeText template
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

# SFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

*.pyc
# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

Loading