-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move functionality to private workspaces
- Loading branch information
1 parent
142d017
commit 7e1b67b
Showing
41 changed files
with
393 additions
and
48 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
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* This file is automatically added by @npmcli/template-oss. Do not edit. */ | ||
|
||
'use strict' | ||
|
||
const { readdirSync: readdir } = require('fs') | ||
|
||
const localConfigs = readdir(__dirname) | ||
.filter((file) => file.startsWith('.eslintrc.local.')) | ||
.map((file) => `./${file}`) | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@npmcli', | ||
...localConfigs, | ||
], | ||
} |
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,21 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
# ignore everything in the root | ||
/* | ||
|
||
# keep these | ||
!**/.gitignore | ||
!/.eslintrc.js | ||
!/.eslintrc.local.* | ||
!/.gitignore | ||
!/bin/ | ||
!/CHANGELOG* | ||
!/docs/ | ||
!/lib/ | ||
!/LICENSE* | ||
!/map.js | ||
!/package.json | ||
!/README* | ||
!/scripts/ | ||
!/tap-snapshots/ | ||
!/test/ |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,59 @@ | ||
{ | ||
"name": "@npmcli/template-oss-config", | ||
"version": "1.0.0", | ||
"description": "The config for @npmcli/template-oss", | ||
"private": true, | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "tap", | ||
"lint": "eslint \"**/*.js\"", | ||
"postlint": "template-oss-check", | ||
"template-oss-apply": "template-oss-apply --force", | ||
"lintfix": "npm run lint -- --fix", | ||
"snap": "tap", | ||
"posttest": "npm run lint" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/npm/template-oss.git", | ||
"directory": "workspaces/config" | ||
}, | ||
"dependencies": { | ||
"@isaacs/string-locale-compare": "^1.1.0", | ||
"@npmcli/git": "^4.0.3", | ||
"@npmcli/template-oss-files": "^1.0.0", | ||
"hosted-git-info": "^6.1.1", | ||
"lodash": "^4.17.21", | ||
"semver": "^7.3.8" | ||
}, | ||
"devDependencies": { | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "file:../../", | ||
"tap": "^16.0.0" | ||
}, | ||
"keywords": [], | ||
"author": "GitHub Inc.", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/npm/template-oss/issues" | ||
}, | ||
"homepage": "https://github.com/npm/template-oss#readme", | ||
"files": [ | ||
"bin/", | ||
"lib/" | ||
], | ||
"engines": { | ||
"node": "^14.17.0 || ^16.13.0 || >=18.0.0" | ||
}, | ||
"templateOSS": { | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"//@npmcli/template-oss-config": "This file is partially managed by @npmcli/template-oss-config. Edits may be overwritten." | ||
}, | ||
"tap": { | ||
"nyc-arg": [ | ||
"--exclude", | ||
"tap-snapshots/**" | ||
], | ||
"check-coverage": 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const { resolve } = require('path') | ||
const t = require('tap') | ||
|
||
t.test('resolved to content index', async (t) => { | ||
const path = require.resolve('..') | ||
t.equal(path, resolve('lib/index.js')) | ||
t.ok(require(path)) | ||
}) |
2 changes: 1 addition & 1 deletion
2
test/util/parse-ci-versions.js → workspaces/config/test/parse-ci-versions.js
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 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,8 +1,8 @@ | ||
const { resolve } = require('path') | ||
const t = require('tap') | ||
|
||
t.test('resolved to content index', () => { | ||
t.test('resolved to content index', async (t) => { | ||
const path = require.resolve('..') | ||
t.equal(path, resolve('lib/index.js')) | ||
t.ok(require(path)) | ||
}) | ||
}) |
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,17 @@ | ||
/* This file is automatically added by @npmcli/template-oss. Do not edit. */ | ||
|
||
'use strict' | ||
|
||
const { readdirSync: readdir } = require('fs') | ||
|
||
const localConfigs = readdir(__dirname) | ||
.filter((file) => file.startsWith('.eslintrc.local.')) | ||
.map((file) => `./${file}`) | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@npmcli', | ||
...localConfigs, | ||
], | ||
} |
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,21 @@ | ||
# This file is automatically added by @npmcli/template-oss. Do not edit. | ||
|
||
# ignore everything in the root | ||
/* | ||
|
||
# keep these | ||
!**/.gitignore | ||
!/.eslintrc.js | ||
!/.eslintrc.local.* | ||
!/.gitignore | ||
!/bin/ | ||
!/CHANGELOG* | ||
!/docs/ | ||
!/lib/ | ||
!/LICENSE* | ||
!/map.js | ||
!/package.json | ||
!/README* | ||
!/scripts/ | ||
!/tap-snapshots/ | ||
!/test/ |
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
File renamed without changes.
Oops, something went wrong.