Skip to content

Commit acf8bd9

Browse files
committed
v0.1.1 cicd fixes
1 parent 5cfceeb commit acf8bd9

4 files changed

Lines changed: 29 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
cache: 'npm'
3838
- run: npm install
3939
- run: npm run build
40-
- run: npm run test:unit
4140
- run: npm run format:check
4241
- run: npm run lint
42+
- run: npm run test:unit
4343

4444
release:
4545
needs: test

.prettierignore

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
pnpm-lock.yaml
2-
3-
# prettier doesn't respect newlines between chained methods
4-
# https://github.com/prettier/prettier/issues/7884
5-
**/*.spec.js
6-
**/*.spec.ts
7-
# but let's format our unit tests
8-
!__test__/**/*.spec.ts
9-
**/dist
10-
# https://github.com/prettier/prettier/issues/5246
11-
**/*.html
12-
13-
playground
1+
# Generated files
2+
bin/
3+
bundle.js
4+
5+
# Dependencies
6+
node_modules/
7+
8+
# Build outputs
9+
dist/
10+
build/
11+
12+
# Documentation (if needed)
13+
# docs/
14+
15+
# Other
16+
*.log
17+
.env
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@involvex/auto-vue",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Full automated Vue Setup with 3 git branches: main, dev, github pages",
55
"type": "module",
66
"bin": {
@@ -17,12 +17,12 @@
1717
"scripts": {
1818
"prepare": "husky",
1919
"format": "prettier --write .",
20-
"format:check": "prettier --check .",
20+
"format:check": "prettier --check . --ignore-path .prettierignore",
2121
"release": "standard-version",
2222
"lint": "eslint .",
2323
"lint:fix": "eslint . --fix",
2424
"fix": "npm run format && npm run lint:fix",
25-
"build": "rolldown -c rolldown.config.ts && node -e \"const fs = require('fs'); fs.mkdirSync('bin', {recursive: true}); fs.renameSync('bundle.js', 'bin/create-autovue.js')\"",
25+
"build": "rolldown -c rolldown.config.ts && node -e \"const fs = require('fs'); fs.mkdirSync('bin', {recursive: true}); fs.renameSync('bundle.js', 'bin/create-autovue.js')\" && prettier --write bin/create-autovue.js",
2626
"snapshot": "node ./scripts/snapshot.mjs",
2727
"pretest": "npm run build && npm run snapshot",
2828
"test": "zx ./scripts/test.mjs",

scripts/deploy.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ try {
1212
await $`npm run build`
1313
await $`npm run format`
1414
await $`npm run lint:fix`
15+
16+
// Step 1.5: Check formatting
17+
console.log(chalk.yellow('🎨 Checking formatting...'))
18+
await $`npm run format:check`
1519

1620
// Step 2: Run tests
1721
console.log(chalk.yellow('🧪 Running tests...'))

0 commit comments

Comments
 (0)