Skip to content

Commit

Permalink
Remove unnecessary scripts, rename scripts and update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
LuudJanssen committed Jan 28, 2019
1 parent 732a8a2 commit 964b2a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You can also create pull requests when you've fixed a bug or introduced a new fe
1. Clone the repository using `git clone https://github.com/<github-username>/angularjs-nouislider.git` (replace `<github-username>` with your own github username on which you forked the repository).
2. Install all development dependencies using NPM by running `npm install` inside the project root folder.
3. Start the development server by running `npm start` to start the examples development server which exposes and points your browser to the `index.html` file found in `src-examples` to `localhost:8080`.
4. In a different terminal run `npm run minify-watch`, this will watch the files in `src` and transpile and minify them to be used by the examples page.
4. In a different terminal run `npm run watch`, this will watch the files in `src` and transpile and minify them to be used by the examples page.

Using this setup you can test your code using the examples page. As an extra it encourages you to make an example specific to your use, if you're building a new feature.

Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
"description": "An AngularJS wrapper for the noUiSlider range slider with minimal overhead.",
"main": "dist/angularjs-nouislider.js",
"scripts": {
"build": "webpack --config webpack.build.js && webpack --config webpack.minify.js",
"transpile": "webpack --config webpack.build.js",
"transpile-watch": "webpack --watch --config webpack.build.js",
"minify": "webpack --config webpack.minify.js",
"minify-watch": "webpack --watch --config webpack.minify.js",
"build": "webpack --config webpack.minify.js",
"watch": "webpack --watch --config webpack.minify.js",
"examples": "webpack --config webpack.examples.js",
"start": "webpack-dev-server --open --config webpack.examples.js",
"start-build-first": "webpack --config webpack.minify.js && webpack-dev-server --open --config webpack.examples.js"
Expand Down

0 comments on commit 964b2a4

Please sign in to comment.