Skip to content
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

[WIP] cookiecutter for the boilerplate #14

Merged
merged 59 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
65 changes: 18 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,28 @@
version: 2

jobs:
"node":
"python-3.6": &test-template
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

- run:
name: Write job name.
command: echo $CIRCLE_JOB > circlejob.txt

- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "tests/requirements.txt" }}
key: deps1-{{ .Branch }}-{{ checksum "circlejob.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}

- run:
name: Create virtualenv
command: |
python3 -m venv venv
sudo pip install virtualenv
python -m venv venv || virtualenv venv

- run:
name: Install requirements
Expand All @@ -51,35 +31,26 @@ jobs:
pip install -r tests/requirements.txt --quiet

- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "tests/requirements.txt" }}
key: deps1-{{ .Branch }}-{{ checksum "circlejob.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
paths:
- "venv"

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

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

- run:
name: Integration Tests
command: |
. venv/bin/activate
python -m unittest tests.test_render
when: always
"python-2.7":
<<: *test-template
docker:
- image: circleci/python:2.7-stretch-node-browsers


workflows:
version: 2
build:
jobs:
- "python-3.6"
- "node"
- "python-2.7"
Loading