Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #35 from inpyjamas/feature/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 authored Jun 9, 2020
2 parents 9b0d1ad + 8372639 commit 5d2b5ef
Show file tree
Hide file tree
Showing 35 changed files with 1,128 additions and 612 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
coverage
generators/index.js
generators/app/
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@inpyjamas/scripts/dist/config/eslint/typescript");
25 changes: 12 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ name: Node.js Test CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:

jobs:
build:

runs-on: ubuntu-latest

if: "!contains(github.event.head_commit.message, 'ci skip') || !contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test:ci -- --no-color
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test:ci -- --no-color
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
generators/app/*
# Logs
logs
*.log
Expand Down
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.vscode
node_modules
.eslintrc.js
.gitignore
husky.config.js
jest.config.js
LICENSE
lint-staged.config.js
prettier.config.js
renovate.json
tsconfig.json
coverage
.github
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v13.10.1
v12.18.0
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generators/app/*
129 changes: 64 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,64 @@
# @inpyjamas/generator-defaults

[![npm (scoped)](https://img.shields.io/npm/v/@inpyjamas/generator-defaults)](https://www.npmjs.com/package/@inpyjamas/generator-defaults) [![Node.js Test CI](https://github.com/inpyjamas/generator-defaults/workflows/Node.js%20Test%20CI/badge.svg)](https://github.com/inpyjamas/generator-defaults/actions?query=workflow%3A%22Node.js+Test+CI%22) ![Build with love](https://img.shields.io/badge/build%20with-%E2%9D%A4%EF%B8%8F-success)

## About

my personal opinionated [Yeoman](https://yeoman.io/) generator for Typescript, Eslint, Prettier, Jest, Nodemon, Husky, Jekyll, Webpack…

With force upgrade all packages build in.

All configuration that can use cosmic config is located in `package.json`.

Except for

- [`.prettierignore`](https://github.com/prettier/prettier/issues/3460)
- Jekyll `_config.yml` and `Gemfile`

## Installing

```bash
npm install yo -g
```

```bash
npm install @inpyjamas/generator-defaults -g
```

## Usage

```bash
yo @inpyjamas/defaults
# Will prompt for your projects name and what type of project you want
# currently typescript only
```

This will create (in the current working directory) the following setup(s)

### Type `typescript-express`

Creates a setup with:


- Typescript
- Jest
- Eslint
- Prettier
- Nodemon
- Husky
- Lint-Staged
- Express with Morgan, Cors and Dotenv
- CZ Conventional Change-log
- Renovate Bot

### Type `typescript-jeykll-webpack`

- Typescript
- Jekyll
- Webpack (for Ts and scss/postcss)
- Jest
- Eslint
- Prettier
- Husky
- Lint-Staged
- CZ Conventional Change-log
- Renovate Bot
# @inpyjamas/generator-defaults

[![npm (scoped)](https://img.shields.io/npm/v/@inpyjamas/generator-defaults)](https://www.npmjs.com/package/@inpyjamas/generator-defaults) [![Node.js Test CI](https://github.com/inpyjamas/generator-defaults/workflows/Node.js%20Test%20CI/badge.svg)](https://github.com/inpyjamas/generator-defaults/actions?query=workflow%3A%22Node.js+Test+CI%22) ![Build with love](https://img.shields.io/badge/build%20with-%E2%9D%A4%EF%B8%8F-success)

## About

my personal opinionated [Yeoman](https://yeoman.io/) generator for Typescript, Eslint, Prettier, Jest, Nodemon, Husky, Jekyll, Webpack…

With force upgrade all packages build in.

Most configuration is handled using [@inpyjamas/scripts](https://github.com/inpyjamas/scripts).

Except for

- [`.prettierignore`](https://github.com/prettier/prettier/issues/3460)
- Jekyll `_config.yml` and `Gemfile`

## Installing

```bash
npm install yo -g
```

```bash
npm install @inpyjamas/generator-defaults -g
```

## Usage

```bash
yo @inpyjamas/defaults
# Will prompt for your projects name and what type of project you want
# currently typescript only
```

This will create (in the current working directory) the following setup(s)

### Type `typescript-express`

Creates a setup with:

- Typescript
- Jest
- Eslint
- Prettier
- Nodemon
- Husky
- Lint-Staged
- Express with Morgan, Cors and Dotenv
- CZ Conventional Change-log
- Renovate Bot

### Type `typescript-jeykll-webpack`

- Typescript
- Jekyll
- Webpack (for Ts and scss/postcss)
- Jest
- Eslint
- Prettier
- Husky
- Lint-Staged
- CZ Conventional Change-log
- Renovate Bot
3 changes: 0 additions & 3 deletions generators/app/index.js

This file was deleted.

105 changes: 0 additions & 105 deletions generators/app/lib/InPyjamasGenerator.js

This file was deleted.

2 changes: 0 additions & 2 deletions generators/app/lib/common/interfaces.js

This file was deleted.

2 changes: 0 additions & 2 deletions generators/app/lib/common/types.js

This file was deleted.

8 changes: 0 additions & 8 deletions generators/app/lib/dependencies.js

This file was deleted.

43 changes: 0 additions & 43 deletions generators/app/lib/dev-dependencies.js

This file was deleted.

Loading

0 comments on commit 5d2b5ef

Please sign in to comment.