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

feat: ✨ Add vue schematics #3

Merged
merged 2 commits into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 19 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
version: 2

aliases:
- &install-pnpm
run:
name: Install pnpm
command: sudo npm install --global pnpm
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- &save-cache
save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- &install-deps
run:
name: Install dependencies
command: npm ci
command: pnpm install
- &build-packages
run:
name: Build
command: npm run build
command: pnpm run build
- &run-unit-tests
run:
name: Test
command: npm run test
command: pnpm run test

jobs:
build:
Expand All @@ -24,28 +33,19 @@ jobs:
- image: circleci/node:17
steps:
- checkout
- run:
name: Update NPM version
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Build
command: npm run build
- *install-pnpm
- *restore-cache
- *install-deps
- *save-cache
- *build-packages

unit_tests:
working_directory: ~/kunlun-schematics
docker:
- image: circleci/node:17
steps:
- checkout
- *install-pnpm
- *restore-cache
- *install-deps
- *build-packages
Expand All @@ -58,4 +58,4 @@ workflows:
- build
- unit_tests:
requires:
- build
- build
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist
!.commitlintrc.js
!.prettierrc.js
.node-version.
.code-snippets
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=https://registry.npmjs.org/
enable-pre-post-scripts=true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*.png
*.yml
*.sh
*.code-snippets

**/*.png

Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
overrides: [
{
files:
'*.{babelrc,eslintrc,huskyrc,lintstagedrc,json,prettierrc,stylelintrc}',
'*.{babelrc,eslintrc,huskyrc,lintstagedrc,json,prettierrc,stylelintrc,code-snippets}',
options: {
parser: 'json'
}
Expand Down