Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core Migration #10

Merged
merged 4 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
steps:
- name : Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Set up Node
uses: actions/setup-node@v3

- name: Install dependencies
run: npm install

- run: npm run test
- run: npm run test
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/core"]
path = src/core
url = https://github.com/Glowstudent777/YouVersion-Core.git
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = function (api) {
api.cache(true);

const presets = ["@babel/preset-env", "@babel/preset-typescript"];
const ignore = ["**/__tests__", "**/*.test.ts", "!src/db/**"];

return {
presets,
ignore
};
}
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const gulp = require('gulp');
const babel = require('gulp-babel');

gulp.task('default', () =>
gulp.src('src')
.pipe(babel())
.pipe(gulp.dest('dist'))
);
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@
"cheerio-select": "2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@types/node": "^18.11.9",
"@vitest/coverage-v8": "^1.6.0",
"gulp": "^5.0.0",
"gulp-babel": "^8.0.0",
"rimraf": "^6.0.1",
"typescript": "^4.9.3",
"vitest": "^1.6.0"
},
"scripts": {
"clean": "npx rimraf --glob dist/ ./*.tgz",
"copyfiles": "cp ./src/core/db/ ./dist/core/db/ -r",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"test:coverage": "vitest run --coverage",
"babel": "npm run clean && npx babel src -d dist --extensions .ts --no-copy-ignored && npm run copyfiles",
"build": "npm run babel && npm run tsc && npm run pack",
"babel": "babel src -d dist --copy-files",
"tsc": "npx tsc",
"pack": "npm pack"
},
Expand All @@ -41,4 +47,4 @@
"url": "https://github.com/Glowstudent777/YouVersion-API-NPM/issues"
},
"homepage": "https://github.com/Glowstudent777/YouVersion-API-NPM#readme"
}
}
2,858 changes: 2,004 additions & 854 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/core
Submodule core added at 01bff5
Loading
Loading