Skip to content

Commit

Permalink
Changed the build setup.
Browse files Browse the repository at this point in the history
Also updated dev dependencies.
  • Loading branch information
vanruesc committed Jun 29, 2018
1 parent 5e5aef1 commit 3e29d72
Show file tree
Hide file tree
Showing 72 changed files with 420 additions and 5,652 deletions.
11 changes: 6 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{

"presets": [
[
"env", {
"modules": false
}
]
["env", {
"modules": false
}]
],

"plugins": ["external-helpers"],
"comments": false

}
10 changes: 10 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{

"source": "src",
"destination": "public/docs",

"plugins": [{
"name": "esdoc-standard-plugin"
}]

}
30 changes: 10 additions & 20 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,16 @@ A proposed change should be focused and concise. Do not include generated build

### Development :wrench:

This project contains Grunt tasks that will help you during development. You have two options that allow you to use them:

1. Install the [Grunt CLI](https://github.com/gruntjs/grunt-cli) globally. Grunt tasks can then be executed with `grunt [task]`.
2. Use a copy of [this grunt runner](https://gist.github.com/vanruesc/b9e8d8a5b749ab83958aecce890297b3#file-grunt-cli-js).
Grunt tasks can then be executed with `node grunt-cli.js [task]`.

The following table provides an overview of the relevant tasks:

| Task | Description |
|------------|---------------------------------------|
| | The default task `build, nodeunit` |
| build | Alias for `eslint, rollup` |
| build:lib | Alias for `eslint:lib, rollup:lib` |
| build:demo | Alias for `eslint:demo, rollup:demo` |
| test | Alias for `eslint, nodeunit` |
| eslint | Checks source files for syntax errors |
| nodeunit | Runs unit tests |
| rollup | Builds the library and demo bundle |

__Note__: Using the `--production` flag enables source code transpilation and bundle minification which considerably slows down the build process.
This project contains scripts that will help you during development. All scripts can be executed with `npm run [script]`.
The following table provides an overview of the most important scripts:

| Task | Description |
|-------|---------------------------------------|
| lint | Checks source files for syntax errors |
| build | Generates the final bundle |
| test | Runs unit tests |

__Note__: Setting `BABEL_ENV` to `production` enables source code transpilation and minification which considerably slows down the build process.


### Testing :heavy_check_mark:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ node_modules
.vscore

# Backup
backup
.backup

# Temporary files
*.tmp
14 changes: 14 additions & 0 deletions .inline-import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{

"src": [
"src/materials/*.js"
],

"options": {
"extensions": {
".frag": "utf8",
".vert": "utf8"
}
}

}
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
language: node_js
node_js:
- "node"
- "node"

script:
- npm run lint
- npm run build:production
- npm test
32 changes: 0 additions & 32 deletions Gruntfile.js

This file was deleted.

4,671 changes: 0 additions & 4,671 deletions build/postprocessing.js

This file was deleted.

7 changes: 0 additions & 7 deletions build/postprocessing.min.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/config/clean.js

This file was deleted.

19 changes: 0 additions & 19 deletions grunt/config/copy.js

This file was deleted.

15 changes: 0 additions & 15 deletions grunt/config/esdoc.js

This file was deleted.

20 changes: 0 additions & 20 deletions grunt/config/eslint.js

This file was deleted.

14 changes: 0 additions & 14 deletions grunt/config/inlineImport.js

This file was deleted.

9 changes: 0 additions & 9 deletions grunt/config/nodeunit.js

This file was deleted.

63 changes: 0 additions & 63 deletions grunt/config/rollup.js

This file was deleted.

18 changes: 0 additions & 18 deletions grunt/config/uglify.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/tasks/backup.js

This file was deleted.

8 changes: 0 additions & 8 deletions grunt/tasks/build.js

This file was deleted.

8 changes: 0 additions & 8 deletions grunt/tasks/default.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/tasks/postpublish.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/tasks/prepublish.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/tasks/restore.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/tasks/test.js

This file was deleted.

Loading

0 comments on commit 3e29d72

Please sign in to comment.