-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Relative path for sku Config (#1028)
- Loading branch information
1 parent
9f7964d
commit a8c385f
Showing
4 changed files
with
156 additions
and
39 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,11 @@ | ||
--- | ||
'sku': patch | ||
--- | ||
|
||
Fix incorrect path in ignore files when running `sku init` | ||
|
||
sku generates ignore files (e.g. `.eslintignore`) for the project. | ||
When ran as part of `sku init`, the current working directory (CWD) would sometimes be incorrect. | ||
It should now give the same result as `sku configure`. | ||
|
||
This change includes a refactor to how the webpack target directory is set in ignore files. |
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,86 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`sku init should create .eslintignore 1`] = ` | ||
"# managed by sku | ||
.eslintcache | ||
.eslintrc | ||
.prettierrc | ||
coverage/ | ||
dist/ | ||
pnpm-lock.yaml | ||
report/ | ||
tsconfig.json | ||
# end managed by sku | ||
" | ||
`; | ||
|
||
exports[`sku init should create .gitignore 1`] = ` | ||
"node_modules | ||
npm-debug.log | ||
# managed by sku | ||
.eslintcache | ||
.eslintrc | ||
.prettierrc | ||
coverage/ | ||
dist/ | ||
report/ | ||
tsconfig.json | ||
# end managed by sku | ||
" | ||
`; | ||
|
||
exports[`sku init should create .prettierignore 1`] = ` | ||
"# managed by sku | ||
.eslintcache | ||
.eslintrc | ||
.prettierrc | ||
coverage/ | ||
dist/ | ||
pnpm-lock.yaml | ||
report/ | ||
tsconfig.json | ||
# end managed by sku | ||
" | ||
`; | ||
|
||
exports[`sku init should create package.json 1`] = ` | ||
{ | ||
"dependencies": { | ||
"braid-design-system": "VERSION_IGNORED", | ||
"react": "VERSION_IGNORED", | ||
"react-dom": "VERSION_IGNORED", | ||
}, | ||
"devDependencies": { | ||
"@types/react": "VERSION_IGNORED", | ||
"@types/react-dom": "VERSION_IGNORED", | ||
"@vanilla-extract/css": "VERSION_IGNORED", | ||
"sku": "VERSION_IGNORED", | ||
}, | ||
"name": "new-project", | ||
"private": true, | ||
"scripts": { | ||
"build": "sku build", | ||
"format": "sku format", | ||
"lint": "sku lint", | ||
"serve": "sku serve", | ||
"start": "sku start", | ||
"test": "sku test", | ||
}, | ||
"version": "0.1.0", | ||
} | ||
`; | ||
|
||
exports[`sku init should create sku.config.ts 1`] = ` | ||
"import type { SkuConfig } from 'sku'; | ||
const skuConfig: SkuConfig = { | ||
clientEntry: 'src/client.tsx', | ||
renderEntry: 'src/render.tsx', | ||
environments: ['development', 'production'], | ||
publicPath: '/path/to/public/assets/', // <-- Required for sku build output | ||
}; | ||
export default skuConfig; | ||
" | ||
`; |
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