Loading
Ben Westrate
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
CIRCUIT - An Adobe Developer Event
Presented by ICF Interactive
Follow along : https://slides.com/benwestrate/deck/live
Ben Westrate
Technical Specialist at ICFI
Lets talk "server side" javascript
{
"name": "",
"version": "",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"main": "./lib/index.js",
"repository": { },
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {},
"homepage": "https://github.com/jzeltman/iron",
"dependencies": {
"gulp": "^3.9.0",
}
}
package.json
What does this gain us?
How do you use it?
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.23</version>
...
</plugin>
...
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>...</version>
<!-- optional -->
<configuration>
<workingDirectory>src/main/frontend</workingDirectory>
</configuration>
<executions>
...
</executions>
</plugin>
<execution>
<!-- optional: you don't really need execution ids,
but it looks nice in your build log. -->
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v0.10.18</nodeVersion>
<npmVersion>1.3.8</npmVersion>
<!-- optional: where to download node and npm from. Defaults to http://nodejs.org/dist/ -->
<downloadRoot>http://myproxy.example.org/nodejs/dist/</downloadRoot>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<!-- optional: The default argument is actually
"install", so unless you need to run some other npm command,
you can remove this whole <configuration> section.
-->
<arguments>install</arguments>
</configuration>
</execution>
There is a lot of set up to get these things to work.....
beta
beta
Questions?
Contact Me