From 2f13481dbf9818629a45e4b8dc1aeaeeffb8c4c4 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Thu, 14 May 2015 22:04:06 -0700 Subject: [PATCH] Moves from Grunt tooling to Polyserve --- .gitignore | 1 - Gruntfile.js | 30 ------------------------------ README.md | 18 ++++++------------ bower.json | 3 +-- index.html | 3 ++- 5 files changed, 9 insertions(+), 46 deletions(-) delete mode 100644 Gruntfile.js diff --git a/.gitignore b/.gitignore index c346b13..fbe05fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ bower_components/ -node_modules/ diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 3f34847..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,30 +0,0 @@ -module.exports = function(grunt) { - - grunt.initConfig({ - 'connect': { - demo: { - options: { - open: true, - keepalive: true - } - } - }, - 'gh-pages': { - options: { - clone: 'bower_components/hello-world-element' - }, - src: [ - 'bower_components/**/*', - '!bower_components/hello-world-element/**/*', - 'src/*', 'index.html' - ] - } - }); - - grunt.loadNpmTasks('grunt-contrib-connect'); - grunt.loadNpmTasks('grunt-gh-pages'); - - grunt.registerTask('deploy', ['gh-pages']); - grunt.registerTask('server', ['connect']); - -}; diff --git a/README.md b/README.md index c14ab2d..11ca236 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Or [download as ZIP](https://github.com/webcomponents/hello-world-element/archiv 2. Import custom element: ```html - + ``` 3. Start using it! @@ -48,28 +48,22 @@ Attribute | Options | Default | Description In order to run it locally you'll need to fetch some dependencies and a basic server setup. -1. Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/): +1. Install [bower](http://bower.io/) & [polyserve](https://npmjs.com/polyserve): ```sh - $ [sudo] npm install -g bower grunt-cli + $ npm install -g bower polyserve ``` 2. Install local dependencies: ```sh - $ bower install && npm install + $ bower install ``` -3. To test your project, start the development server and open `http://localhost:8000`. +3. Start development server and open `http://localhost:8080/components/hello-world-element/`. ```sh - $ grunt server - ``` - -4. To provide a live demo, send everything to `gh-pages` branch. - - ```sh - $ grunt deploy + $ polyserve ``` ## History diff --git a/bower.json b/bower.json index 9010d61..6b529ad 100644 --- a/bower.json +++ b/bower.json @@ -6,13 +6,12 @@ "WebComponents.org" ], "license": "MIT", - "main": "src/hello-world.html", + "main": "hello-world.html", "keywords": [ "web-components" ], "ignore": [ "**/.*", - "node_modules", "bower_components" ], "dependencies": { diff --git a/index.html b/index.html index 8a6de79..5a58e9c 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,11 @@ <hello-world> + + -