-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor code to es module (#336)
* chore: refactor code to es module * switch to pnpm * convert tests to vitest * convert tests to vitest * prettier code formatting * update dependencies * fix husky setup * move bundles to dist * one more test * convert css2rgb test * migrate more tests, upgrade eslint, prettier check in lint * migrate more tests * 3 more * fix chroma.luminance bug see #334 * link to discord chat in readme * two more tests * bump travis node version * migrate more tests * test: migrate to vitest (#337) * 2.5.0-0 * fix imports * 2.5.0-1 * fix imports * 2.5.0-2 * fix imports * 2.5.0-3 * update version number in src instead of relying on rollup replace * 2.5.0-4 * prepare version bump * 2.5.0 * npm publish --------- Co-authored-by: Chris <[email protected]>
- Loading branch information
Showing
178 changed files
with
12,573 additions
and
10,298 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,15 @@ | ||
// update-version.js | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const packageJsonPath = path.join(__dirname, '../package.json'); | ||
const versionFilePath = path.join(__dirname, '../src', 'version.js'); | ||
|
||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); | ||
const version = packageJson.version; | ||
|
||
const versionFileContent = `// this gets updated automatically\nexport const version = '${version}';\n`; | ||
|
||
fs.writeFileSync(versionFilePath, versionFileContent); | ||
|
||
console.log(`Updated version to ${version} in ${versionFilePath}`); |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npm run lint | ||
npm test -- --run |
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,5 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "20" | ||
before_script: "npm install" | ||
script: "npm 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.