Skip to content

Commit

Permalink
Merge pull request #10 from Glowstudent777/Glowstudent777-CoreMigration
Browse files Browse the repository at this point in the history
Core Migration
  • Loading branch information
Glowstudent777 authored Dec 30, 2024
2 parents cf096aa + fe4fe03 commit ea7beab
Show file tree
Hide file tree
Showing 16 changed files with 2,058 additions and 1,516 deletions.
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

0 comments on commit ea7beab

Please sign in to comment.