This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issue on generate template (#15)
* fix: issue on generate template add other features - best template for middleware - add verdaccio core libraries * chore: update lock file * chore: add standard-version for release * chore: remove file
- Loading branch information
1 parent
4efc367
commit 61eeae8
Showing
27 changed files
with
1,332 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node (latest) | ||
uses: actions/setup-node@v1 | ||
with: | ||
node_version: 12 | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: yarn build | ||
- name: Publish | ||
run: sh scripts/publish.sh | ||
env: | ||
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }} | ||
REGISTRY_URL: registry.npmjs.org | ||
- name: Create release notes | ||
run: sh scripts/github-release.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
coverage | ||
generators/app/*.js | ||
yarn-error.log | ||
yarn-error.log | ||
.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Generator from "yeoman-generator"; | ||
export default class VerdaccioPluginGenerator extends Generator { | ||
private props; | ||
private projectName; | ||
private destinationPathName; | ||
constructor(args: any, opts: any); | ||
prompting(): Promise<void>; | ||
packageJSON(): void; | ||
writing(): void; | ||
install(): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["@verdaccio"] | ||
"presets": ["@verdaccio", {typescript: false} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
|
||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
|
||
"rules": { | ||
"quotes": [2, "single"], | ||
"no-underscore-dangle": [0] | ||
} | ||
} | ||
"extends": ["@verdaccio"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
name: 'verdaccio-<%= name %>', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest', | ||
}, | ||
verbose: true, | ||
collectCoverage: true, | ||
coveragePathIgnorePatterns: ['node_modules'], | ||
}; |
35 changes: 35 additions & 0 deletions
35
generators/app/templates/javascript/middleware/_package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "<%= name %>", | ||
"version": "0.0.1", | ||
"description": "<%= description %>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": ["lib/"], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"dependencies": { | ||
"@verdaccio/commons-api": "^8.4.2", | ||
"express": "^4.17.1" | ||
}, | ||
"devDependencies": { | ||
"@verdaccio/babel-preset": "^8.4.2", | ||
"@verdaccio/eslint-config": "^8.4.2", | ||
"@verdaccio/types": "^8.4.2", | ||
"eslint": "^6.6.0", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.19.1", | ||
"standard-version": "^7.0.0" | ||
}, | ||
"keywords": "[<%= keywords %>]", | ||
"license": "<%= license %>", | ||
"repository": "<%= repository %>", | ||
"author": "<%= authorName %> <<%= authorEmail %>>", | ||
"scripts": { | ||
"build": "npm run build:types && npm run build:js", | ||
"build:js": "babel src/ --out-dir lib --extensions \".ts,.tsx\"", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"test": "jest", | ||
"lint": "eslint \"**/*.{js,ts}\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "<%= name %>", | ||
"version": "0.0.1", | ||
"description": "<%= description %>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": ["lib/"], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"dependencies": { | ||
"@verdaccio/commons-api": "^8.4.2", | ||
"express": "^4.17.1" | ||
}, | ||
"devDependencies": { | ||
"@verdaccio/babel-preset": "^8.4.2", | ||
"@verdaccio/eslint-config": "^8.4.2", | ||
"@verdaccio/types": "^8.4.2", | ||
"eslint": "^6.6.0", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.19.1", | ||
"standard-version": "^7.0.0" | ||
}, | ||
"keywords": "[<%= keywords %>]", | ||
"license": "<%= license %>", | ||
"repository": "<%= repository %>", | ||
"author": "<%= authorName %> <<%= authorEmail %>>", | ||
"scripts": { | ||
"build": "npm run build:types && npm run build:js", | ||
"build:js": "babel src/ --out-dir lib --extensions \".ts,.tsx\"", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"test": "jest", | ||
"lint": "eslint \"**/*.{js,ts}\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "<%= name %>", | ||
"version": "0.0.1", | ||
"description": "<%= description %>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": ["lib/"], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.21", | ||
"@types/node": "^12.12.5", | ||
"@types/express": "^4.17.1", | ||
"@typescript-eslint/eslint-plugin": "2.12.0", | ||
"@verdaccio/babel-preset": "^8.4.2", | ||
"@verdaccio/eslint-config": "^8.4.2", | ||
"@verdaccio/types": "^8.4.2", | ||
"eslint": "^6.6.0", | ||
"jest": "^24.9.0", | ||
"prettier": "1.19.1", | ||
"standard-version": "^7.0.0", | ||
"typescript": "^3.7.2" | ||
}, | ||
"keywords": "[<%= keywords %>]", | ||
"license": "<%= license %>", | ||
"repository": "<%= repository %>", | ||
"author": "<%= authorName %> <<%= authorEmail %>>", | ||
"scripts": { | ||
"build": "npm run build:types && npm run build:js", | ||
"build:js": "babel src/ --out-dir lib --extensions \".ts,.tsx\"", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"test": "jest", | ||
"lint": "eslint \"**/*.{js,ts}\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { Config } from "@verdaccio/types"; | ||
import { Config } from '@verdaccio/types'; | ||
|
||
export interface CustomConfig extends Config {} | ||
export interface CustomConfig extends Config { | ||
foo: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
|
||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
|
||
"rules": { | ||
"quotes": [2, "single"], | ||
"no-underscore-dangle": [0] | ||
} | ||
} | ||
"extends": ["@verdaccio"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import VerdaccioPlugin from "./lib/index"; | ||
import VerdaccioPlugin from './lib/index'; | ||
|
||
export default VerdaccioPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
name: 'verdaccio-<%= name %>', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest', | ||
}, | ||
verbose: true, | ||
collectCoverage: true, | ||
coveragePathIgnorePatterns: ['node_modules'], | ||
}; |
Oops, something went wrong.