Skip to content

Commit

Permalink
feat: add new plugin and generator system
Browse files Browse the repository at this point in the history
Generator system is completely rewritten.

BREAKING CHANGE:

* Old templates are incompatible.
* Uses latest major version of pg-structure.
* CLI options are changed.
* Options file are not supported. Replaced with ontext file.
  • Loading branch information
ozum committed Feb 25, 2021
1 parent 3e575ee commit bf53108
Show file tree
Hide file tree
Showing 161 changed files with 57,974 additions and 20,682 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
1 change: 1 addition & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "path": "cz-conventional-changelog" }
13 changes: 2 additions & 11 deletions .editorconfig
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

Expand All @@ -10,18 +8,11 @@ end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
max_line_length = 140
trim_trailing_whitespace = true

[*.js]
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_size = 2

[*.md]
max_line_length = 120
max_line_length = 0
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
Expand Down
19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "./module-files/configs/.eslintrc.js",
};
4 changes: 3 additions & 1 deletion .gitattributes
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# checkin and prevent conversion to CRLF when they are checked out
# (this is required in order to prevent newline related issues like,
# for example, after the build script is run)
.* text eol=lf
*.css text eol=lf
*.html text eol=lf
*.jade text eol=lf
Expand All @@ -18,3 +17,6 @@
*.sh text eol=lf
*.txt text eol=lf
*.xml text eol=lf

# GitHub also highlights comments as errors by default. To fix that, add this line to your .gitattributes file:
*.json linguist-language=JSON-with-Comments
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI / CD
"on":
push:
branches:
- master
- next
- next-major
- alpha
- beta
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo ${{github.ref}}
- run: echo Condition met
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node 14
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node modules (yarn)
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install project dependencies
run: yarn
- name: Run ESLint
run: yarn lint --no-fix
- name: Run Prettier
run: yarn format --no-write --check
- name: Test
run: yarn test --ci --maxWorkers=2
env:
CI: true
- name: Build
run: yarn build
env:
CI: true
- name: Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit bf53108

Please sign in to comment.