Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
koundinya committed Jun 20, 2024
0 parents commit 66a551d
Show file tree
Hide file tree
Showing 135 changed files with 15,686 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
31 changes: 31 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
*.ipynb
.ipynb_checkpoints
!.env.example
.vercel
.output
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
19 changes: 19 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss",
"prettier-plugin-tailwindcss"
],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# translate5

Setup instructions

```
cd p5.js-website
npx setup-translate5
```

## next

- frontmatter concat on mdx
- progress tracker bug fix
- image paths handling on mdx rendering
47 changes: 47 additions & 0 deletions bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env node

import fs from 'fs';
import inquirer from 'inquirer';
import { exec } from 'child_process';
import { promisify } from 'util';
import path from 'path';

const execAsync = promisify(exec);

async function main() {
const currentDirectory = process.cwd();

const answers = await inquirer.prompt([
{
type: 'confirm',
name: 'proceedDownload',
message: `Proceed download oss-translator in ${currentDirectory}?`,
default: true
}
]);

if (answers.proceedDownload) {
// Clone the repository
const cloneCommand = 'git clone https://github.com/koundinyad/translator.git';
console.log('Cloning repository...');
await execAsync(cloneCommand);

console.log('oss-translator downloaded successfully.');

// Add 'translator' directory to .gitignore
const gitignorePath = path.join(currentDirectory, '.gitignore');
fs.appendFileSync(gitignorePath, 'translator\n', 'utf8');

console.log('Added "translator" directory to .gitignore.');

console.log('To run the project, follow these steps:');
console.log('1. Change directory to the cloned repository:');
console.log(' cd translator');
console.log('2. Install dependencies:');
console.log(' npm install');
console.log('3. Run the development server:');
console.log(' npm run dev');
}
}

main();
14 changes: 14 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "new-york",
"tailwind": {
"config": "tailwind.config.js",
"css": "src/app.pcss",
"baseColor": "slate"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils"
},
"typescript": true
}
Loading

0 comments on commit 66a551d

Please sign in to comment.