Skip to content

Commit 5c1d072

Browse files
authored
fix: change scss import path (#2812)
* fix: demo path * fix: remove useless variables
1 parent c6c639d commit 5c1d072

File tree

8 files changed

+3
-12
lines changed

8 files changed

+3
-12
lines changed

scripts/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { copy } from 'fs-extra'
88
import { deleteAsync } from 'del'
99
import { fileURLToPath } from 'url'
1010
import { execSync } from 'child_process'
11-
import { readFile, access, writeFile, mkdir, appendFile } from 'fs/promises'
11+
import { readFile, access, writeFile, mkdir } from 'fs/promises'
1212
import { dirname, join, basename, extname, resolve, relative } from 'path'
1313
import j from 'jscodeshift'
1414
import { readFileSync } from 'fs'

scripts/demo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var nameLc = 'test'
21
var demoModel = function (name) {
32
var temp = {
43
demo: `import React from 'react'

scripts/harmony/clone-jdharmony.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const fs = require('fs')
66
const fse = require('fs-extra')
77
const args = process.argv.splice(2)
88

9-
const home = os.homedir()
109
const temp = `${process.cwd()}/packages`
1110

1211
console.log('args', args)

scripts/rn/copy-file.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
* RN 自动化适配脚本
33
*/
44
const fse = require('fs-extra')
5-
const path = require('path')
65
const config = require('../../src/config.json')
7-
86
const args = process.argv.splice(2)
97

108
console.log('rn copy-file.js args',args)

scripts/taro/replace-taro-types-alias.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const vfs = require('vinyl-fs')
33
const map = require('map-stream')
44
const fs = require('fs-extra')
55
const exportPropsTypes = require('../export-props')
6-
const package = require('../../package.json')
76
const dest_docs = './dist/types'
87

98
vfs
@@ -12,7 +11,6 @@ vfs
1211
map((file, cb) => {
1312
const contents = file.contents
1413
.toString()
15-
// .replaceAll('@/packages', `.`)
1614
.replace(/^@\/packages/g, `.`)
1715
.replace(/import\s(.*)?\.scss\'\;[\t\n]/g, '')
1816
file.contents = Buffer.from(contents, 'utf8')
@@ -30,7 +28,6 @@ vfs
3028
map((file, cb) => {
3129
const contents = file.contents
3230
.toString()
33-
// .replaceAll('@/packages', `..`)
3431
.replace(/^@\/packages/g, `..`)
3532
file.contents = Buffer.from(contents, 'utf8')
3633
cb(null, file)

scripts/update-v2.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const fse = require('fs-extra')
2-
31
const fs = require('fs')
42
const path = require('path')
53
const config = require('../src/config.json')

src/packages/overlay/demo.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import Taro from '@tarojs/taro'
33
import { View } from '@tarojs/components'
44
import { useTranslate } from '@/sites/assets/locale/taro'
5-
import '@/packages/overlay/demo.scss'
5+
import './demo.scss'
66
import Header from '@/sites/components/header'
77
import Demo2 from './demos/taro/demo2'
88
import Demo3 from './demos/taro/demo3'

src/packages/skeleton/demo.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import Taro from '@tarojs/taro'
33
import { ScrollView, View } from '@tarojs/components'
44
import { Cell } from '@nutui/nutui-react-taro'
5-
import '@/packages/skeleton/demo.scss'
5+
import './demo.scss'
66
import { useTranslate } from '@/sites/assets/locale/taro'
77
import Header from '@/sites/components/header'
88
import Demo1 from './demos/taro/demo1'

0 commit comments

Comments
 (0)