├── .gitignore ├── .eslintrc.js ├── package.json ├── README.md ├── LICENSE └── src └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log* 3 | .nyc_*/ 4 | .dir-locals.el 5 | .DS_Store 6 | test 7 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | globals: { 3 | globalThis: true, 4 | }, 5 | extends: "eslint-config-next", 6 | rules: { 7 | "semi": [2, "always"], 8 | "complexity": ["warn", 25], 9 | "no-unused-vars": 'warn', 10 | 'no-restricted-globals': 'off', 11 | "no-console": 'off', 12 | "max-params": ["warn", 7], 13 | }, 14 | } 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "noscript-sfc", 3 | "version": "0.1.4", 4 | "description": "", 5 | "main": "index.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/xitu/noscript-sfc" 9 | }, 10 | "scripts": { 11 | "build": "esbuild src/index.js --bundle --outfile=index.js --minify", 12 | "test": "echo \"Error: no test specified\" && exit 1" 13 | }, 14 | "author": "akira-cn", 15 | "license": "MIT", 16 | "devDependencies": { 17 | "@vue/compiler-sfc": "^3.2.31", 18 | "esbuild": "^0.14.24", 19 | "eslint": "^8.10.0", 20 | "eslint-config-next": "^12.1.0" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NoScript SFC 2 | 3 | Load vue3 SFC component with inline `