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

Test CodeSandbox. #1

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7b35b09
Update ci.json
sy-records Jul 12, 2023
3d6f7c9
Update ci.json
sy-records Jul 12, 2023
148eca5
Update ci.json
sy-records Jul 12, 2023
957d8db
Update ci.json
sy-records Jul 12, 2023
f27f8e7
Update ci.json
sy-records Jul 12, 2023
88cfab1
Update package.json
sy-records Jul 12, 2023
b417fc6
Update package.json
sy-records Jul 12, 2023
bcf9236
Update ci.json
sy-records Jul 12, 2023
f0a01e6
Update package.json
sy-records Jul 12, 2023
9155fe4
Update ci.json
sy-records Jul 12, 2023
e22e6af
Update ci.json
sy-records Jul 12, 2023
fb3f8d5
Update ci.json
sy-records Jul 12, 2023
c0d64cf
Update build.js
sy-records Jul 12, 2023
622d8df
Update build.js
sy-records Jul 12, 2023
3887ffe
Update build.js
sy-records Jul 12, 2023
b9d86ea
Update build.js
sy-records Jul 12, 2023
fac0d30
Update package.json
sy-records Jul 12, 2023
5fa8dc2
Update ci.json
sy-records Jul 12, 2023
f889c4f
Update build.js
sy-records Jul 12, 2023
fe377f8
Update package.json
sy-records Jul 12, 2023
a19e2d6
Update build.js
sy-records Jul 12, 2023
6fd7a42
Update build.js
sy-records Jul 13, 2023
81e998d
Update package.json
sy-records Jul 13, 2023
786c9aa
Update ci.json
sy-records Jul 13, 2023
6e28752
Update build.js
sy-records Jul 13, 2023
ac58b49
Update ci.json
sy-records Jul 13, 2023
15c97b4
Update package.json
sy-records Jul 13, 2023
2d8c91a
Update build.js
sy-records Jul 13, 2023
65ca139
Update ci.json
sy-records Jul 13, 2023
245b3c6
Update package.json
sy-records Jul 13, 2023
9fd0f50
Update ci.json
sy-records Jul 13, 2023
a9e3666
Create tasks.json
sy-records Jul 13, 2023
d213042
Delete tasks.json
sy-records Jul 13, 2023
08239db
Update ci.json
sy-records Jul 13, 2023
95e462f
Update package.json
sy-records Jul 13, 2023
a23d974
Update package.json
sy-records Jul 13, 2023
f12eb3f
Update build.js
sy-records Jul 13, 2023
7f8054a
Update package.json
sy-records Jul 13, 2023
ab3a7c6
Update package.json
sy-records Jul 13, 2023
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
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"buildCommand": false,
"sandboxes": ["2d17z"],
"packages": ["."],
"node": "16"
}
3 changes: 2 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const nodeResolve = require('rollup-plugin-node-resolve')
const { uglify } = require('rollup-plugin-uglify')
const replace = require('rollup-plugin-replace')
const isProd = process.env.NODE_ENV === 'production'
const isWatch = process.env.NODE_ENV === 'watch'
const version = process.env.VERSION || require('../package.json').version
const chokidar = require('chokidar')
const path = require('path')
Expand Down Expand Up @@ -110,7 +111,7 @@ async function buildAllPlugin() {
}

async function main() {
if (!isProd) {
if (isWatch) {
chokidar
.watch(['src/core', 'src/plugins'], {
atomic: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"test:unit": "jest --selectProjects unit",
"test": "jest && run-s test:e2e",
"watch:css": "npm run css -- -o themes -w",
"watch:js": "node build/build.js"
"watch:js": "cross-env NODE_ENV=watch node build/build.js"
},
"husky": {
"hooks": {
Expand Down
Loading