Skip to content

Commit

Permalink
fluid-projectGH-32: modify the npm build script
Browse files Browse the repository at this point in the history
  • Loading branch information
cindyli committed Dec 8, 2022
1 parent 6402f55 commit 4565f2c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 53 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Infusion components may be prefixed with `flc-`
1. Run tests: `npm test`
2. Lint: `npm run lint`
3. Manual test build.
1. Create a developer build: "npm run dev"
1. Create a build: "npm run build"
2. Load unpacked extension into Chrome.
1. In Chrome, go to [chrome://extensions](chrome://extensions)
2. Ensure that "Developer mode" is enabled.
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ can also be run as an unpacked extension.
npm run build
```

#### Dev Build

Dev builds can be generated as well, although at the moment they are very similar to a production build. The only
difference being that laravel-mix is run in dev mode.

```bash
npm run dev
```

## Testing

### Node
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"homepage": "https://github.com/fluid-project/uio-plus#ui-options-plus-uio",
"scripts": {
"lint": "fluid-lint-all",
"pretest": "run-s -l clean:test dev",
"pretest": "run-s -l clean:test",
"test": "run-s test:node test:browser",
"test:node": "nyc node tests/node/all-tests.js",
"test:browser": "testem ci --file tests/browser/testem.js",
Expand All @@ -37,18 +37,16 @@
"clean:build": "rimraf dist",
"clean:test": "rimraf reports coverage",
"build": "run-s -l clean:build build:*",
"build:webpack": "mix --production",
"dev": "run-s -l clean:build dev:*",
"dev:webpack": "mix"
"build:dist": "cpy . ../dist --cwd=src; cpy . ../../dist/lib/infusion --cwd=node_modules/infusion"
},
"dependencies": {
"infusion": "4.5.0"
"infusion": "4.6.0"
},
"devDependencies": {
"cpy-cli": "4.2.0",
"eslint-config-fluid": "2.1.1",
"fluid-lint-all": "1.2.3",
"fluid-testem": "2.1.15",
"laravel-mix": "6.0.49",
"node-jqunit": "1.1.9",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
Expand Down
3 changes: 1 addition & 2 deletions tests/browser/testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ fluid.defaults("fluid.tests.testem", {
testPages: ["tests/browser/all-tests.html"],
instrumentationOptions: {
nonSources: [
"./**/*.!(js)",
"./webpack.mix.js"
"./**/*.!(js)"
]
},
sourceDirs: {
Expand Down
35 changes: 0 additions & 35 deletions webpack.mix.js

This file was deleted.

0 comments on commit 4565f2c

Please sign in to comment.